b311480e |
1 | -- Created on: 1993-03-09 |
2 | -- Created by: Remi LEQUETTE |
3 | -- Copyright (c) 1993-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. |
b311480e |
16 | |
7fd59977 |
17 | -- Update: frederic MAUPAS |
7fd59977 |
18 | |
19 | |
b311480e |
20 | |
7fd59977 |
21 | deferred class TranslateTool from MgtTopoDS inherits TShared from MMgt |
22 | |
23 | ---Purpose: The TranslateTool class is provided to support the |
24 | -- translation of inherited parts of topological data |
25 | -- structures. |
26 | |
27 | uses |
28 | |
29 | TransientPersistentMap from PTColStd, |
30 | PersistentTransientMap from PTColStd, |
31 | Shape from TopoDS, |
32 | HShape from PTopoDS |
33 | |
34 | raises |
35 | TypeMismatch from Standard |
36 | |
37 | is |
38 | |
39 | -- |
40 | -- The Add method is used to insert a shape in an other shape. |
41 | -- |
42 | |
43 | Add(me; |
44 | S1 : in out Shape from TopoDS; |
45 | S2 : Shape from TopoDS) |
46 | ---Level: Internal |
47 | raises |
48 | TypeMismatch from Standard |
49 | is deferred; |
50 | |
51 | -- |
52 | -- The Make methods should create a new empty object of the |
53 | -- given type with the given Model. They should raise the |
54 | -- TypeMismatch exception if the Model is not of the |
55 | -- expected type. |
56 | -- |
57 | |
58 | |
59 | MakeVertex(me; |
60 | S : out Shape from TopoDS) |
61 | ---Level: Internal |
62 | raises |
63 | TypeMismatch from Standard |
64 | is deferred; |
65 | |
66 | MakeVertex(me; |
6e33d3ce |
67 | S : HShape from PTopoDS) |
7fd59977 |
68 | ---Level: Internal |
69 | raises |
70 | TypeMismatch from Standard |
71 | is deferred; |
72 | |
73 | MakeEdge(me; |
74 | S : out Shape from TopoDS) |
75 | ---Level: Internal |
76 | raises |
77 | TypeMismatch from Standard |
78 | is deferred; |
79 | |
80 | MakeEdge(me; |
6e33d3ce |
81 | S : HShape from PTopoDS) |
7fd59977 |
82 | ---Level: Internal |
83 | raises |
84 | TypeMismatch from Standard |
85 | is deferred; |
86 | |
87 | MakeWire(me; |
88 | S : out Shape from TopoDS) |
89 | ---Level: Internal |
90 | raises |
91 | TypeMismatch from Standard |
92 | is deferred; |
93 | |
94 | MakeWire(me; |
6e33d3ce |
95 | S : HShape from PTopoDS) |
7fd59977 |
96 | ---Level: Internal |
97 | raises |
98 | TypeMismatch from Standard |
99 | is deferred; |
100 | |
101 | MakeFace(me; |
102 | S : out Shape from TopoDS) |
103 | ---Level: Internal |
104 | raises |
105 | TypeMismatch from Standard |
106 | is deferred; |
107 | |
108 | MakeFace(me; |
6e33d3ce |
109 | S : HShape from PTopoDS) |
7fd59977 |
110 | ---Level: Internal |
111 | raises |
112 | TypeMismatch from Standard |
113 | is deferred; |
114 | |
115 | MakeShell(me; |
116 | S : out Shape from TopoDS) |
117 | ---Level: Internal |
118 | raises |
119 | TypeMismatch from Standard |
120 | is deferred; |
121 | |
122 | MakeShell(me; |
6e33d3ce |
123 | S : HShape from PTopoDS) |
7fd59977 |
124 | ---Level: Internal |
125 | raises |
126 | TypeMismatch from Standard |
127 | is deferred; |
128 | |
129 | MakeSolid(me; |
130 | S : out Shape from TopoDS) |
131 | ---Level: Internal |
132 | raises |
133 | TypeMismatch from Standard |
134 | is deferred; |
135 | |
136 | MakeSolid(me; |
6e33d3ce |
137 | S : HShape from PTopoDS) |
7fd59977 |
138 | ---Level: Internal |
139 | raises |
140 | TypeMismatch from Standard |
141 | is deferred; |
142 | |
143 | MakeCompSolid(me; |
144 | S : out Shape from TopoDS) |
145 | ---Level: Internal |
146 | raises |
147 | TypeMismatch from Standard |
148 | is deferred; |
149 | |
150 | MakeCompSolid(me; |
6e33d3ce |
151 | S : HShape from PTopoDS) |
7fd59977 |
152 | ---Level: Internal |
153 | raises |
154 | TypeMismatch from Standard |
155 | is deferred; |
156 | |
157 | MakeCompound(me; |
158 | S : out Shape from TopoDS) |
159 | ---Level: Internal |
160 | raises |
161 | TypeMismatch from Standard |
162 | is deferred; |
163 | |
164 | MakeCompound(me; |
6e33d3ce |
165 | S : HShape from PTopoDS) |
7fd59977 |
166 | ---Level: Internal |
167 | raises |
168 | TypeMismatch from Standard |
169 | is deferred; |
170 | |
171 | -- |
172 | -- The Update methods should transfer the data from the first |
173 | -- shape to the second. |
174 | -- |
175 | -- When an update method is redefined it should transfer the |
176 | -- data then call the Update redefined method to transfer the |
177 | -- inherited data. |
178 | -- |
179 | |
180 | UpdateShape(me; |
181 | S1 : Shape from TopoDS; |
6e33d3ce |
182 | S2 : HShape from PTopoDS) |
7fd59977 |
183 | ---Purpose: Basic update method |
184 | ---Level: Internal |
185 | is static; |
186 | |
187 | UpdateShape(me; |
188 | S1 : HShape from PTopoDS; |
189 | S2 : in out Shape from TopoDS) |
190 | ---Purpose: Basic update method |
191 | ---Level: Internal |
192 | is static; |
193 | |
194 | UpdateVertex(me; |
195 | S1 : Shape from TopoDS; |
6e33d3ce |
196 | S2 : HShape from PTopoDS; |
7fd59977 |
197 | M : in out TransientPersistentMap from PTColStd) |
198 | ---Level: Internal |
199 | is virtual; |
200 | |
201 | UpdateVertex(me; |
202 | S1 : HShape from PTopoDS; |
203 | S2 : in out Shape from TopoDS; |
204 | M : in out PersistentTransientMap from PTColStd) |
205 | ---Level: Internal |
206 | is virtual; |
207 | |
208 | UpdateEdge(me; |
209 | S1 : Shape from TopoDS; |
6e33d3ce |
210 | S2 : HShape from PTopoDS; |
7fd59977 |
211 | M : in out TransientPersistentMap from PTColStd) |
212 | ---Level: Internal |
213 | is virtual; |
214 | |
215 | UpdateEdge(me; |
216 | S1 : HShape from PTopoDS; |
217 | S2 : in out Shape from TopoDS; |
218 | M : in out PersistentTransientMap from PTColStd) |
219 | ---Level: Internal |
220 | is virtual; |
221 | |
222 | UpdateWire(me; |
223 | S1 : Shape from TopoDS; |
6e33d3ce |
224 | S2 : HShape from PTopoDS) |
7fd59977 |
225 | ---Level: Internal |
226 | is virtual; |
227 | |
228 | UpdateWire(me; |
229 | S1 : HShape from PTopoDS; |
230 | S2 : in out Shape from TopoDS) |
231 | ---Level: Internal |
232 | is virtual; |
233 | |
234 | UpdateFace(me; |
235 | S1 : Shape from TopoDS; |
6e33d3ce |
236 | S2 : HShape from PTopoDS; |
7fd59977 |
237 | M : in out TransientPersistentMap from PTColStd) |
238 | ---Level: Internal |
239 | is virtual; |
240 | |
241 | UpdateFace(me; |
242 | S1 : HShape from PTopoDS; |
243 | S2 : in out Shape from TopoDS; |
244 | M : in out PersistentTransientMap from PTColStd) |
245 | ---Level: Internal |
246 | is virtual; |
247 | |
248 | UpdateShell(me; |
249 | S1 : Shape from TopoDS; |
6e33d3ce |
250 | S2 : HShape from PTopoDS) |
7fd59977 |
251 | ---Level: Internal |
252 | is virtual; |
253 | |
254 | UpdateShell(me; |
255 | S1 : HShape from PTopoDS; |
256 | S2 : in out Shape from TopoDS) |
257 | ---Level: Internal |
258 | is virtual; |
259 | |
260 | UpdateSolid(me; |
261 | S1 : Shape from TopoDS; |
6e33d3ce |
262 | S2 : HShape from PTopoDS) |
7fd59977 |
263 | ---Level: Internal |
264 | is virtual; |
265 | |
266 | UpdateSolid(me; |
267 | S1 : HShape from PTopoDS; |
268 | S2 : in out Shape from TopoDS) |
269 | ---Level: Internal |
270 | is virtual; |
271 | |
272 | UpdateCompSolid(me; |
273 | S1 : Shape from TopoDS; |
6e33d3ce |
274 | S2 : HShape from PTopoDS) |
7fd59977 |
275 | ---Level: Internal |
276 | is virtual; |
277 | |
278 | UpdateCompSolid(me; |
279 | S1 : HShape from PTopoDS; |
280 | S2 : in out Shape from TopoDS) |
281 | ---Level: Internal |
282 | is virtual; |
283 | |
284 | UpdateCompound(me; |
285 | S1 : Shape from TopoDS; |
6e33d3ce |
286 | S2 : HShape from PTopoDS) |
7fd59977 |
287 | ---Level: Internal |
288 | is virtual; |
289 | |
290 | UpdateCompound(me; |
291 | S1 : HShape from PTopoDS; |
292 | S2 : in out Shape from TopoDS) |
293 | ---Level: Internal |
294 | is virtual; |
295 | |
296 | end TranslateTool; |
297 | |