1 -- Created on: 1993-06-14
2 -- Created by: Remi LEQUETTE
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 -- Update: Frederic MAUPAS
20 class TranslateTool from MgtBRep inherits TranslateTool from MgtTopoDS
22 ---Purpose: The TranslateTool class is provided to support the
23 -- translation of BRep topological data structures.
26 TransientPersistentMap from PTColStd,
27 PersistentTransientMap from PTColStd,
28 CurveRepresentation from PBRep,
29 CurveRepresentation from BRep,
38 TriangleMode from MgtBRep
41 TypeMismatch from Standard
45 Create(aTriMode : TriangleMode from MgtBRep)
46 returns TranslateTool from MgtBRep;
47 ---Purpose: Creates a new TranslateTool
50 -- Auxiliairy Protected Methods for Shape Geometrical Rep
55 M : in out TransientPersistentMap from PTColStd)
56 returns Curve from PGeom
58 ---Purpose: Translates a Transient Curve onto a Persistent Curve
61 PC : Curve from PGeom;
62 M : in out PersistentTransientMap from PTColStd)
63 returns Curve from Geom
65 ---Purpose: Translates a Persistent Curve onto a Transient Curve
69 TC : Curve from Geom2d;
70 M : in out TransientPersistentMap from PTColStd)
71 returns Curve from PGeom2d
73 ---Purpose: Translates a Transient Curve2d onto a Persistent Curve
76 PC : Curve from PGeom2d;
77 M : in out PersistentTransientMap from PTColStd)
78 returns Curve from Geom2d
80 ---Purpose: Translates a Persistent Curve2d onto a Transient Curve
84 TS : Surface from Geom;
85 M : in out TransientPersistentMap from PTColStd)
86 returns Surface from PGeom
88 ---Purpose: Translates a Transient Surface onto a Persistent Curve
91 PS : Surface from PGeom;
92 M : in out PersistentTransientMap from PTColStd)
93 returns Surface from Geom
95 ---Purpose: Translates a Persistent Surface onto a Transient Curve
98 -- The Add method is used to insert a shape in an other shape.
102 S1 : in out Shape from TopoDS;
103 S2 : Shape from TopoDS)
106 TypeMismatch from Standard;
109 -- The Make methods should create a new empty object of the
110 -- given type with the given Model. They should raise the
111 -- TypeMismatch exception if the Model is not of the
117 S : out Shape from TopoDS)
120 TypeMismatch from Standard;
123 S : HShape from PTopoDS)
126 TypeMismatch from Standard;
129 S : out Shape from TopoDS)
132 TypeMismatch from Standard;
135 S : HShape from PTopoDS)
138 TypeMismatch from Standard;
141 S : out Shape from TopoDS)
144 TypeMismatch from Standard;
147 S : HShape from PTopoDS)
150 TypeMismatch from Standard;
153 S : out Shape from TopoDS)
156 TypeMismatch from Standard;
159 S : HShape from PTopoDS)
162 TypeMismatch from Standard;
165 S : out Shape from TopoDS)
168 TypeMismatch from Standard;
171 S : HShape from PTopoDS)
174 TypeMismatch from Standard;
177 S : out Shape from TopoDS)
180 TypeMismatch from Standard;
183 S : HShape from PTopoDS)
186 TypeMismatch from Standard;
189 S : out Shape from TopoDS)
192 TypeMismatch from Standard;
195 S : HShape from PTopoDS)
198 TypeMismatch from Standard;
201 S : out Shape from TopoDS)
204 TypeMismatch from Standard;
207 S : HShape from PTopoDS)
210 TypeMismatch from Standard;
213 -- The Update methods should transfer the data from the first
214 -- shape to the second.
216 -- When an update method is redefined it should transfer the
217 -- data then call the Update redefined method to transfer the
222 S1 : Shape from TopoDS;
223 S2 : HShape from PTopoDS;
224 M : in out TransientPersistentMap from PTColStd)
229 S1 : HShape from PTopoDS;
230 S2 : in out Shape from TopoDS;
231 M : in out PersistentTransientMap from PTColStd)
236 S1 : Shape from TopoDS;
237 S2 : HShape from PTopoDS;
238 M : in out TransientPersistentMap from PTColStd)
243 S1 : HShape from PTopoDS;
244 S2 : in out Shape from TopoDS;
245 M : in out PersistentTransientMap from PTColStd)
250 S1 : Shape from TopoDS;
251 S2 : HShape from PTopoDS;
252 M : in out TransientPersistentMap from PTColStd)
257 S1 : HShape from PTopoDS;
258 S2 : in out Shape from TopoDS;
259 M : in out PersistentTransientMap from PTColStd)
265 myTriangleMode : TriangleMode from MgtBRep;