b311480e |
1 | -- Created on: 1999-10-25 |
2 | -- Created by: Sergey ZARITCHNY <szy@philipox.nnov.matra-dtv.fr> |
3 | -- Copyright (c) 1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class Loader from QANewBRepNaming |
18 | |
19 | ---Purpose: |
20 | |
21 | uses MakeShape from BRepBuilderAPI, |
22 | Shape from TopoDS, |
23 | Edge from TopoDS, |
24 | ShapeEnum from TopAbs, |
25 | Builder from TNaming, |
26 | DataMapOfShapeShape from TopTools, |
27 | MapOfShape from TopTools, |
28 | Label from TDF, |
29 | TagSource from TDF |
30 | |
31 | is |
32 | |
33 | LoadGeneratedShapes (myclass; |
34 | MakeShape : in out MakeShape from BRepBuilderAPI; |
35 | ShapeIn : in Shape from TopoDS; |
36 | GeneratedFrom : in ShapeEnum from TopAbs; |
37 | Buider : in out Builder from TNaming); |
38 | ---Purpose : Load in the naming data-structure the shape |
39 | -- generated from FACE, EDGE, VERTEX,..., after the |
40 | -- MakeShape operation. <ShapeIn> is the initial |
41 | -- shape. <GeneratedFrom> defines the kind of |
42 | -- shape generation to record in the naming |
43 | -- data-structure. The <builder> is used to store the |
44 | -- set of evolutions in the data-framework of TDF. |
45 | |
46 | |
47 | LoadModifiedShapes (myclass; |
48 | MakeShape : in out MakeShape from BRepBuilderAPI; |
49 | ShapeIn : in Shape from TopoDS; |
50 | ModifiedFrom : in ShapeEnum from TopAbs; |
51 | Buider : in out Builder from TNaming; |
52 | theBool : Boolean from Standard = Standard_False); |
53 | ---Purpose : Load in the naming data-structure the shape |
54 | -- modified from FACE, EDGE, VERTEX,..., |
55 | -- after the MakeShape operation. |
56 | -- <ShapeIn> is the initial shape. |
57 | -- <ModifiedFrom> defines the kind of shape modification |
58 | -- to record in the naming data-structure. |
59 | -- The <builder> is used to store the set of evolutions |
60 | -- in the data-framework of TDF. |
61 | |
62 | LoadDeletedShapes (myclass; |
63 | MakeShape : in out MakeShape from BRepBuilderAPI; |
64 | ShapeIn : in Shape from TopoDS; |
65 | KindOfDeletedShape : in ShapeEnum from TopAbs; |
66 | Buider : in out Builder from TNaming); |
67 | ---Purpose : Load in the naming data-structure the shape |
68 | -- deleted after the MakeShape operation. |
69 | -- <ShapeIn> is the initial shape. |
70 | -- <KindOfDeletedShape> defines the kind of |
71 | -- deletion to record in the naming data-structure. |
72 | -- The <builder> is used to store the set of evolutions |
73 | -- in the data-framework of TDF. |
74 | |
75 | LoadAndOrientGeneratedShapes (myclass; |
76 | MakeShape : in out MakeShape from BRepBuilderAPI; |
77 | ShapeIn : in Shape from TopoDS; |
78 | GeneratedFrom : in ShapeEnum from TopAbs; |
79 | Buider : in out Builder from TNaming; |
80 | SubShapesOfResult : in DataMapOfShapeShape from TopTools); |
81 | ---Purpose : The same as LoadGeneratedShapes plus performs orientation of |
82 | -- loaded shapes according orientation of SubShapes |
83 | |
84 | |
85 | LoadAndOrientModifiedShapes (myclass; |
86 | MakeShape : in out MakeShape from BRepBuilderAPI; |
87 | ShapeIn : in Shape from TopoDS; |
88 | ModifiedFrom : in ShapeEnum from TopAbs; |
89 | Buider : in out Builder from TNaming; |
90 | SubShapesOfResult : in DataMapOfShapeShape from TopTools); |
91 | ---Purpose : The same as LoadModifiedShapes plus performs orientation of |
92 | -- loaded shapes according orientation of SubShapes |
93 | |
94 | |
95 | ModifyPart (myclass; |
96 | PartShape : in Shape from TopoDS; |
97 | Primitive : in Shape from TopoDS; |
98 | Label : in Label from TDF); |
99 | ---Category: Tool |
100 | ---Level: Internal |
101 | |
102 | HasDangleShapes(myclass; ShapeIn : in Shape from TopoDS) |
103 | returns Boolean from Standard; |
104 | |
105 | LoadGeneratedDangleShapes(myclass; |
106 | ShapeIn : in Shape from TopoDS; |
107 | GeneratedFrom : in ShapeEnum from TopAbs; |
108 | GenBuider : in out Builder from TNaming); |
109 | |
110 | LoadGeneratedDangleShapes(myclass; |
111 | ShapeIn : in Shape from TopoDS; |
112 | GeneratedFrom : in ShapeEnum from TopAbs; |
113 | OnlyThese : in MapOfShape from TopTools; |
114 | GenBuider : in out Builder from TNaming); |
115 | |
116 | LoadModifiedDangleShapes(myclass; |
117 | MakeShape : in out MakeShape from BRepBuilderAPI; |
118 | ShapeIn : in Shape from TopoDS; |
119 | GeneratedFrom : in ShapeEnum from TopAbs; |
120 | GenBuider : in out Builder from TNaming); |
121 | |
122 | LoadDeletedDangleShapes(myclass; |
123 | MakeShape : in out MakeShape from BRepBuilderAPI; |
124 | ShapeIn : in Shape from TopoDS; |
125 | ShapeType : in ShapeEnum from TopAbs; |
126 | DelBuider : in out Builder from TNaming); |
127 | |
128 | LoadDangleShapes(myclass; |
129 | theShape : Shape from TopoDS; |
130 | theLabelGenerator : Label from TDF); |
131 | |
132 | LoadDangleShapes(myclass; |
133 | theShape : Shape from TopoDS; |
134 | ignoredShape : Shape from TopoDS; |
135 | theLabelGenerator : Label from TDF); |
136 | |
137 | GetDangleShapes(myclass; |
138 | ShapeIn : Shape from TopoDS; |
139 | GeneratedFrom : ShapeEnum from TopAbs; |
140 | Dangles : out DataMapOfShapeShape from TopTools) |
141 | ---Purpose: Returns dangle sub shapes Generator - Dangle. |
142 | returns Boolean from Standard; |
143 | |
144 | GetDangleShapes(myclass; |
145 | ShapeIn : Shape from TopoDS; |
146 | GeneratedFrom : ShapeEnum from TopAbs; |
147 | Dangles : out MapOfShape from TopTools) |
148 | ---Purpose: Returns dangle sub shapes. |
149 | returns Boolean from Standard; |
150 | |
151 | IsDangle(myclass; |
152 | theDangle : Shape from TopoDS; |
153 | theShape : Shape from TopoDS) |
154 | ---Warning!: Don't use this method inside an iteration process! |
155 | returns Boolean from Standard; |
156 | |
157 | end Loader; |