b311480e |
1 | -- Created on: 2001-05-08 |
2 | -- Created by: Peter KURNEV |
3 | -- Copyright (c) 2001-2012 OPEN CASCADE SAS |
4 | -- |
5 | -- The content of this file is subject to the Open CASCADE Technology Public |
6 | -- License Version 6.5 (the "License"). You may not use the content of this file |
7 | -- except in compliance with the License. Please obtain a copy of the License |
8 | -- at http://www.opencascade.org and read it completely before using this file. |
9 | -- |
10 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | -- |
13 | -- The Original Code and all software distributed under the License is |
14 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | -- Initial Developer hereby disclaims all such warranties, including without |
16 | -- limitation, any warranties of merchantability, fitness for a particular |
17 | -- purpose or non-infringement. Please see the License for the specific terms |
18 | -- and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | |
21 | |
22 | class Curve from BOPTools |
23 | |
24 | ---Purpose: |
25 | -- Class holds the structure for storing information about |
26 | --- intersection curve and set of paves on it |
27 | --- |
28 | |
29 | uses |
30 | ListOfInteger from TColStd, |
31 | Curve from IntTools, |
32 | PaveSet from BOPTools, |
33 | PaveBlock from BOPTools, |
34 | ListOfPaveBlock from BOPTools |
35 | |
36 | |
37 | is |
38 | Create |
39 | returns Curve from BOPTools; |
40 | ---Purpose: |
41 | --- Empty constructor |
42 | --- |
43 | Create (aIC:Curve from IntTools) |
44 | returns Curve from BOPTools; |
45 | ---Purpose: |
46 | --- Constructor |
47 | --- |
48 | SetCurve(me:out; |
49 | aIC:Curve from IntTools); |
50 | ---Purpose: |
51 | --- Modifier |
52 | --- |
53 | Curve(me) |
54 | returns Curve from IntTools; |
55 | ---C++: return const & |
56 | ---Purpose: |
57 | --- Selector |
58 | --- |
59 | Set(me:out) |
60 | returns PaveSet from BOPTools; |
61 | ---C++: return & |
62 | ---Purpose: |
63 | --- Selector |
64 | --- |
65 | AppendNewBlock(me:out; |
66 | aPB:PaveBlock from BOPTools); |
67 | ---Purpose: |
68 | --- Adds the PaveBlock <aPB> to the pave set |
69 | --- |
70 | NewPaveBlocks(me) |
71 | returns ListOfPaveBlock from BOPTools; |
72 | ---C++: return const & |
73 | ---Purpose: |
74 | --- Returns the PaveBlock-s attached to the curve |
75 | --- |
76 | TechnoVertices (me:out) |
77 | returns ListOfInteger from TColStd; |
78 | ---C++: return & |
79 | ---Purpose: |
80 | --- Returns indices TechnoVertices attached to the curve |
81 | --- |
82 | |
83 | fields |
84 | myCurve : Curve from IntTools; |
85 | myPaveSet: PaveSet from BOPTools; |
86 | myNewPBs : ListOfPaveBlock from BOPTools; |
87 | myTechnoVertices : ListOfInteger from TColStd; |
88 | |
89 | end Curve; |