b311480e |
1 | -- Created on: 1999-09-27 |
2 | -- Created by: Open CASCADE Support |
3 | -- Copyright (c) 1999-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | -- |
6 | -- The content of this file is subject to the Open CASCADE Technology Public |
7 | -- License Version 6.5 (the "License"). You may not use the content of this file |
8 | -- except in compliance with the License. Please obtain a copy of the License |
9 | -- at http://www.opencascade.org and read it completely before using this file. |
10 | -- |
11 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | -- |
14 | -- The Original Code and all software distributed under the License is |
15 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | -- Initial Developer hereby disclaims all such warranties, including without |
17 | -- limitation, any warranties of merchantability, fitness for a particular |
18 | -- purpose or non-infringement. Please see the License for the specific terms |
19 | -- and conditions governing the rights and limitations under the License. |
20 | |
21 | |
7fd59977 |
22 | |
7fd59977 |
23 | deferred class BooleanOperationFeat from QANewBRepNaming inherits TopNaming from QANewBRepNaming |
24 | |
25 | ---Purpose: To load the BooleanOperationFeat results |
26 | |
27 | uses BooleanOperation from BRepAlgoAPI, |
28 | Label from TDF, |
29 | Builder from TNaming, |
30 | Shape from TopoDS, |
31 | ShapeEnum from TopAbs |
32 | is |
33 | |
34 | Initialize returns BooleanOperationFeat from QANewBRepNaming; |
35 | |
36 | Initialize(ResultLabel : Label from TDF) |
37 | returns BooleanOperationFeat from QANewBRepNaming; |
38 | |
39 | Init(me : in out; ResultLabel : Label from TDF); |
40 | |
41 | ModifiedFaces (me) |
42 | ---Purpose : Returns the label to insert modified faces of an Object. |
43 | returns Label from TDF; |
44 | |
45 | ModifiedEdges (me) |
46 | ---Purpose : Returns the label to insert modified edges of an Object. |
47 | returns Label from TDF; |
48 | |
49 | DeletedFaces (me) |
50 | ---Purpose : Returns the label to insert deleted faces of an Object. |
51 | returns Label from TDF; |
52 | |
53 | DeletedEdges (me) |
54 | ---Purpose : Returns the label to insert deleted edges of an Object. |
55 | returns Label from TDF; |
56 | |
57 | DeletedVertices (me) |
58 | ---Purpose : Returns the label to insert deleted vertices of an Object. |
59 | returns Label from TDF; |
60 | |
61 | NewShapes (me) |
62 | ---Purpose : Returns the label to insert added shapes to an Object |
63 | -- (given from tool). |
64 | returns Label from TDF; |
65 | |
66 | Content (me) |
67 | ---Purpose : |
68 | returns Label from TDF; |
69 | |
70 | DeletedDegeneratedEdges (me) |
71 | ---Purpose : |
72 | returns Label from TDF; |
73 | |
74 | IsResultChanged(me; MakeShape : in out BooleanOperation from BRepAlgoAPI) |
75 | ---Purpose: Returns true if the result is not the same as the object shape. |
76 | returns Boolean from Standard; |
77 | |
78 | |
79 | ShapeType(myclass; theShape : Shape from TopoDS) |
80 | ---Purpose: If the shape is a compound the method |
81 | -- returns the underlying shape type. |
82 | returns ShapeEnum from TopAbs; |
83 | |
84 | |
85 | IsWRCase(myclass; theMS : BooleanOperation from BRepAlgoAPI) |
86 | ---Purpose: Returns true if workaround case identified |
87 | returns Boolean from Standard; |
88 | |
89 | IsWRCase2(myclass; theMS : BooleanOperation from BRepAlgoAPI) |
90 | ---Purpose: Returns true if workaround case identified |
91 | returns Boolean from Standard; |
92 | |
93 | |
94 | ---Category: Protected methods |
95 | |
96 | GetShape(me; theShape : Shape from TopoDS) |
97 | ---Purpose: If the shape is a compound the method |
98 | -- returns the underlying shape. |
99 | returns Shape from TopoDS |
100 | is protected; |
101 | |
102 | LoadWire(me; MakeShape : in out BooleanOperation from BRepAlgoAPI) |
103 | ---Purpose: A default implementation for naming of a wire as an object of |
104 | -- a boolean operation. |
105 | is protected; |
106 | |
107 | LoadShell(me; MakeShape : in out BooleanOperation from BRepAlgoAPI) |
108 | ---Purpose: A default implementation for naming of a shell as an object of |
109 | -- a boolean operation. |
110 | is protected; |
111 | |
112 | LoadContent(me; MakeShape : in out BooleanOperation from BRepAlgoAPI) |
113 | ---Purpose: Loads the content of the result. |
114 | is protected; |
115 | |
116 | LoadResult(me; MakeShape : in out BooleanOperation from BRepAlgoAPI) |
117 | ---Purpose: Loads the result. |
118 | is protected; |
119 | LoadDegenerated(me; MakeShape : in out BooleanOperation from BRepAlgoAPI) |
120 | ---Purpose: Loads the deletion of the degenerated edges. |
121 | is protected; |
122 | |
123 | LoadModified1n(me; theMS : in out BooleanOperation from BRepAlgoAPI; |
124 | theShapeIn : Shape from TopoDS; theKindOfShape : ShapeEnum from TopAbs) |
125 | ---Purpose: To process special cases with evolution 1 to n |
126 | is protected; |
127 | |
128 | Load1nFaces(me; theMS : in out BooleanOperation from BRepAlgoAPI; |
129 | theShapeIn : Shape from TopoDS) |
130 | ---Purpose: used inside LoadModified1n |
131 | is private; |
132 | |
133 | LoadModified11(me; theMS : in out BooleanOperation from BRepAlgoAPI; |
134 | theShapeIn : Shape from TopoDS; theKindOfShape : ShapeEnum from TopAbs) |
135 | ---Purpose: To process special cases with evolution 1 to 1 |
136 | is protected; |
137 | |
138 | LoadSymmetricalEdges(me; theMS : in out BooleanOperation from BRepAlgoAPI) |
139 | ---Purpose: To process special case when result has symmetrical edges |
140 | is protected; |
141 | |
142 | LoadWRCase(me; theMS : in out BooleanOperation from BRepAlgoAPI) |
143 | ---Purpose: |
144 | is protected; |
145 | |
146 | |
147 | end BooleanOperationFeat; |