1 -- Created on: 2004-09-03
2 -- Created by: Oleg FEDYAEV
3 -- Copyright (c) 2004-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 class ArgumentAnalyzer from BOPAlgo
17 ---Purpose: check the validity of argument(s) for Boolean Operations
21 Operation from BOPAlgo,
22 CheckStatus from BOPAlgo,
23 ShapeEnum from TopAbs,
24 ListOfCheckResult from BOPAlgo
28 returns ArgumentAnalyzer;
29 ---Purpose: empty constructor
31 SetShape1(me: in out; TheShape: Shape from TopoDS);
32 ---Purpose: sets object shape
34 SetShape2(me: in out; TheShape: Shape from TopoDS);
35 ---Purpose: sets tool shape
38 returns Shape from TopoDS;
39 ---C++: return const &
40 ---Purpose: returns object shape;
43 returns Shape from TopoDS;
44 ---C++: return const &
45 ---Purpose: returns tool shape
48 OperationType(me: in out)
49 returns Operation from BOPAlgo;
51 ---Purpose: returns ref
53 StopOnFirstFaulty(me: in out)
54 returns Boolean from Standard;
56 ---Purpose: returns ref
58 ArgumentTypeMode(me: in out)
59 returns Boolean from Standard;
62 ---Purpose: Returns (modifiable) mode
63 -- that means checking types of shapes.
67 ---Purpose: Prepares data;
69 SelfInterMode(me: in out)
70 returns Boolean from Standard;
73 ---Purpose: Returns (modifiable) mode that means
74 -- checking of self-intersection of shapes.
76 SmallEdgeMode(me: in out)
77 returns Boolean from Standard;
80 ---Purpose: Returns (modifiable) mode that means
81 -- checking of small edges.
83 RebuildFaceMode(me: in out)
84 returns Boolean from Standard;
87 ---Purpose: Returns (modifiable) mode that means
88 -- checking of possibility to split or rebuild faces.
90 TangentMode(me: in out)
91 returns Boolean from Standard;
94 ---Purpose: Returns (modifiable) mode that means
95 -- checking of tangency between subshapes.
97 MergeVertexMode(me: in out)
98 returns Boolean from Standard;
101 ---Purpose: Returns (modifiable) mode that means
102 -- checking of problem of merging vertices.
104 MergeEdgeMode(me: in out)
105 returns Boolean from Standard;
108 ---Purpose: Returns (modifiable) mode that means
109 -- checking of problem of merging edges.
111 ContinuityMode(me: in out)
112 returns Boolean from Standard;
115 ---Purpose: Returns (modifiable) mode that means
116 -- checking of problem of continuity of the shape.
120 ---Purpose: performs analysis
123 returns Boolean from Standard;
124 ---Purpose: result of test
127 returns ListOfCheckResult from BOPAlgo;
128 ---C++: return const &
129 ---Purpose: returns a result of test
135 TestSelfInterferences(me: out)
138 TestSmallEdge(me: out)
141 TestRebuildFace(me: out)
147 TestMergeSubShapes(me: out; theType: ShapeEnum from TopAbs)
150 TestMergeVertex(me: out)
153 TestMergeEdge(me: out)
156 TestContinuity(me: out)
159 -- TestMergeFace(me: out)
165 myShape1 : Shape from TopoDS;
166 myShape2 : Shape from TopoDS;
167 myStopOnFirst : Boolean from Standard;
168 myOperation : Operation from BOPAlgo;
169 myArgumentTypeMode : Boolean from Standard;
170 mySelfInterMode : Boolean from Standard;
171 mySmallEdgeMode : Boolean from Standard;
172 myRebuildFaceMode : Boolean from Standard;
173 myTangentMode : Boolean from Standard;
174 myMergeVertexMode : Boolean from Standard;
175 myMergeEdgeMode : Boolean from Standard;
176 myContinuityMode : Boolean from Standard;
177 myEmpty1,myEmpty2 : Boolean from Standard;
178 myResult : ListOfCheckResult from BOPAlgo;
181 end ArgumentAnalyzer;