b311480e |
1 | -- Created on: 2001-02-20 |
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 DSFiller from BOPTools |
23 | |
24 | ---Purpose: |
25 | --- class that provides |
26 | --- 1. creation of the data structure (DS) |
27 | --- 2. creation of the interferences' pool |
28 | --- 3. invokation of PaveFiller->Perform() to fill the DS |
29 | --- |
30 | uses |
31 | Shape from TopoDS, |
32 | ShapesDataStructure from BooleanOperations, |
33 | PShapesDataStructure from BooleanOperations, |
34 | InterferencePool from BOPTools, |
35 | PInterferencePool from BOPTools, |
36 | PavePool from BOPTools, |
37 | PPaveFiller from BOPTools, |
38 | PaveFiller from BOPTools, |
39 | SSIntersectionAttribute from BOPTools, |
40 | SplitShapesPool from BOPTools, |
41 | CommonBlockPool from BOPTools, |
42 | DataMapOfIntegerListOfInteger from TColStd, |
43 | SetOfInteger from TColStd |
44 | |
45 | is |
46 | Create |
47 | returns DSFiller from BOPTools; |
48 | ---Purpose: |
49 | --- Empty constructor |
50 | --- |
51 | Destroy (me:out); |
52 | ---C++: alias ~ |
53 | ---Purpose: Destructor |
54 | --- |
55 | SetShapes (me:out; aS1, aS2: Shape from TopoDS); |
56 | ---Purpose: |
57 | --- Modifier |
58 | --- Sets the arguments of boolean operation |
59 | --- |
60 | Shape1(me) |
61 | returns Shape from TopoDS; |
62 | ---C++: return const& |
63 | ---Purpose: |
64 | --- Selector |
65 | --- |
66 | Shape2(me) |
67 | returns Shape from TopoDS; |
68 | ---C++: return const& |
69 | ---Purpose: |
70 | --- Selector |
71 | --- |
72 | Perform (me:out); |
73 | ---Purpose: |
74 | --- Performs the filling of the DS |
75 | --- |
76 | |
77 | InitFillersAndPools(me:out); |
78 | |
79 | PartialPerform(me:out; anObjSubSet, aToolSubSet: SetOfInteger from TColStd); |
80 | |
81 | ToCompletePerform(me:out); |
82 | |
83 | Perform (me:out; theSectionAttribute: SSIntersectionAttribute from BOPTools); |
84 | ---Purpose: |
85 | --- Performs the filling of the DS |
86 | --- |
87 | DS (me) |
88 | returns ShapesDataStructure from BooleanOperations; |
89 | ---C++: return const& |
90 | ---Purpose: |
91 | --- Selector |
92 | --- |
93 | InterfPool (me) |
94 | returns InterferencePool from BOPTools; |
95 | ---C++: return const & |
96 | ---Purpose: |
97 | --- Selector |
98 | --- |
99 | PavePool (me) |
100 | returns PavePool from BOPTools; |
101 | ---C++: return const& |
102 | ---Purpose: |
103 | --- Selector |
104 | --- |
105 | CommonBlockPool(me) |
106 | returns CommonBlockPool from BOPTools; |
107 | ---C++:return const & |
108 | ---Purpose: |
109 | --- Selector |
110 | --- |
111 | SplitShapesPool(me) |
112 | returns SplitShapesPool from BOPTools; |
113 | ---C++:return const & |
114 | ---Purpose: |
115 | --- Selector |
116 | --- |
117 | PaveFiller (me) |
118 | returns PaveFiller from BOPTools; |
119 | ---C++:return const & |
120 | ---Purpose: |
121 | --- Selector |
122 | --- |
123 | Clear (me:out) |
124 | is private; |
125 | ---Purpose: |
126 | --- Clear contents of the DS and the interferences' pool |
127 | --- |
128 | IsNewFiller(me) |
129 | returns Boolean from Standard; |
130 | ---Purpose: |
131 | --- Returns TRUE if new DS and the interferences' pool has been created |
132 | --- |
133 | SetNewFiller(me; |
134 | aFlag:Boolean from Standard); |
135 | ---Purpose: |
136 | --- Modifier |
137 | --- |
138 | IsDone(me) |
139 | returns Boolean from Standard; |
140 | ---Purpose: |
141 | --- Selector |
142 | --- |
143 | SplitFacePool(me) |
144 | ---C++: return const& |
145 | ---C++: inline |
146 | returns DataMapOfIntegerListOfInteger from TColStd; |
147 | |
148 | ChangeSplitFacePool(me: out) |
149 | ---C++: return & |
150 | ---C++: inline |
151 | returns DataMapOfIntegerListOfInteger from TColStd; |
152 | |
153 | --modified by NIZHNY-MKK Tue Sep 7 12:03:34 2004 |
154 | TreatCompound(myclass; theShape: Shape from TopoDS; |
155 | theShapeResult: out Shape from TopoDS) |
156 | returns Integer from Standard; |
157 | ---Purpose: Finds sub-shapes of theShape having equal type |
158 | -- and store them in theShapeResult. |
159 | -- Returns the following status codes: |
160 | -- 0 - OK |
161 | -- 1 - Error: theShape is a COMPSOLID |
162 | -- 2 - Error: theShape is not a COMPOUND |
163 | -- 3 - Error: theShape contains shapes of COMPSOLID type |
164 | -- 4 - Error: Subshape of theShape have unkown type |
165 | -- 5 - Error: theShape contains shapes of different type |
166 | |
167 | fields |
168 | myShape1 : Shape from TopoDS; |
169 | myShape2 : Shape from TopoDS; |
170 | myDS : PShapesDataStructure from BooleanOperations; |
171 | myInterfPool : PInterferencePool from BOPTools; |
172 | myPaveFiller : PPaveFiller from BOPTools; |
173 | myIsDone : Boolean from Standard; |
174 | mySplitFacePool: DataMapOfIntegerListOfInteger from TColStd; |
175 | |
176 | myNewFiller : Boolean from Standard; |
177 | |
178 | end DSFiller; |