1 -- Created on: 2001-01-26
2 -- Created by: Peter KURNEV
3 -- Copyright (c) 2001-2012 OPEN CASCADE SAS
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.
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.
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.
22 class InterferencePool from BOPTools
25 -- Class for storing information about
26 --- results of all interferences for all shapes
29 ShapesDataStructure from BooleanOperations,
30 PShapesDataStructure from BooleanOperations,
31 KindOfInterference from BooleanOperations,
33 CArray1OfInterferenceLine from BOPTools,
34 CArray1OfSSInterference from BOPTools,
35 CArray1OfESInterference from BOPTools,
36 CArray1OfVSInterference from BOPTools,
37 CArray1OfEEInterference from BOPTools,
38 CArray1OfVEInterference from BOPTools,
39 CArray1OfVVInterference from BOPTools,
40 PShapeShapeInterference from BOPTools
43 returns InterferencePool from BOPTools ;
47 Create (aDS:ShapesDataStructure from BooleanOperations)
48 returns InterferencePool from BOPTools ;
52 SetDS (me:out;aDS:ShapesDataStructure from BooleanOperations);
57 returns PShapesDataStructure from BooleanOperations;
62 anInd :Integer from Standard)
63 returns Boolean from Standard;
65 --- Returns TRUE if the shape with DS_index <anInd>
66 --- has at least one interference with non-empty result
69 anInd1 : Integer from Standard;
70 anInd2 : Integer from Standard)
71 returns Boolean from Standard;
73 --- Returns TRUE if the interference between shapes
74 --- <anInd1> and <anInd2> has already been computed.
77 anInd1:in out Integer from Standard;
78 anInd2:in out Integer from Standard);
80 --- Sorts types of shapes <anInd1> and <anInd2> in increasing order
83 anInd1: Integer from Standard;
84 anInd2: Integer from Standard)
85 returns KindOfInterference from BooleanOperations;
87 --- Gets the type of interference in accordance with the types of
88 --- shapes <anInd1> and <anInd2>
90 AddInterference (me:out;
91 anInd1: Integer from Standard;
92 anInd2: Integer from Standard;
93 aType: KindOfInterference from BooleanOperations;
94 anIndex: Integer from Standard);
96 --- Adds the info about interference in InterferenceLine-s for
97 --- shapes <anInd1> and <anInd2>
99 InterferenceTable (me)
100 returns CArray1OfInterferenceLine from BOPTools;
101 ---C++: return const&
103 --- Returns the reference to complete array of interference line-s
105 SSInterferences (me:out)
106 returns CArray1OfSSInterference from BOPTools;
109 --- Returns the reference to array Of F/F interferences
111 ESInterferences (me:out)
112 returns CArray1OfESInterference from BOPTools;
115 --- Returns the reference to array Of E/F interferences
117 VSInterferences (me:out)
118 returns CArray1OfVSInterference from BOPTools;
121 --- Returns the reference to array Of V/F interferences
123 EEInterferences (me:out)
124 returns CArray1OfEEInterference from BOPTools;
127 --- Returns the reference to arrray Of E/E interferences
129 VEInterferences (me:out)
130 returns CArray1OfVEInterference from BOPTools;
133 --- Returns the reference to arrray Of V/E interferences
135 VVInterferences (me:out)
136 returns CArray1OfVVInterference from BOPTools;
139 --- Returns the reference to arrray Of V/V interferences
143 returns CArray1OfSSInterference from BOPTools;
144 ---C++: return const &
147 returns CArray1OfESInterference from BOPTools;
148 ---C++: return const &
151 returns CArray1OfVSInterference from BOPTools;
152 ---C++: return const &
155 returns CArray1OfEEInterference from BOPTools;
156 ---C++: return const &
159 returns CArray1OfVEInterference from BOPTools;
160 ---C++: return const &
163 returns CArray1OfVVInterference from BOPTools;
164 ---C++: return const &
168 anIndex: Integer from Standard;
169 aType : KindOfInterference from BooleanOperations)
170 returns PShapeShapeInterference from BOPTools;
175 myDS : PShapesDataStructure from BooleanOperations;
176 myNbSourceShapes : Integer from Standard;
178 myInterferenceTable: CArray1OfInterferenceLine from BOPTools;
179 mySSInterferences : CArray1OfSSInterference from BOPTools;
180 myESInterferences : CArray1OfESInterference from BOPTools;
181 myVSInterferences : CArray1OfVSInterference from BOPTools;
182 myEEInterferences : CArray1OfEEInterference from BOPTools;
183 myVEInterferences : CArray1OfVEInterference from BOPTools;
184 myVVInterferences : CArray1OfVVInterference from BOPTools;
186 end InterferencePool;