1 -- Created on: 1993-07-28
2 -- Created by: Martine LANGLOIS
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.
19 --- Purpose: This package implements the mapping between AP214
20 -- Shape representation and CAS.CAD Shape Representation.
21 -- The source schema is Part42 (which is included in AP214)
23 uses TopoDS, StdFail, TCollection, TColStd, BRep, Geom, Geom2d,
24 GeomAdaptor, Extrema, gp, Transfer, Geom2dAPI,
25 StepRepr, StepGeom, StepShape, TopTools, STEPControl
33 enumeration BuilderError is
38 enumeration TranslateShellError is
43 enumeration TranslateFaceError is
48 enumeration TranslateEdgeLoopError is
49 TranslateEdgeLoopDone,
50 TranslateEdgeLoopOther
53 enumeration TranslateEdgeError is
58 enumeration TranslateVertexError is
63 enumeration TranslateVertexLoopError is
64 TranslateVertexLoopDone,
65 TranslateVertexLoopOther
68 enumeration TranslatePolyLoopError is
69 TranslatePolyLoopDone,
70 TranslatePolyLoopOther
73 enumeration GeometricToolError is
75 GeometricToolIsDegenerated,
76 GeometricToolHasNoPCurve,
77 GeometricToolWrong3dParameters,
78 GeometricToolNoProjectiOnCurve,
86 private deferred class Root;
92 class TranslateEdgeLoop;
96 class TranslateVertex;
98 class TranslatePolyLoop;
100 class TranslateVertexLoop;
102 class TranslateCompositeCurve;
104 class TranslateCurveBoundedSurface;
108 class MakeTransformed;
112 -- class DegeneratedTool;
116 class CartesianPointHasher;
120 class PointPairHasher;
124 -- --------------------
125 -- Instanciated Classes
126 -- --------------------
128 class DataMapOfRI instantiates
129 DataMap from TCollection
130 (RepresentationItem from StepRepr,
132 MapTransientHasher from TColStd);
134 class DataMapOfRINames instantiates
135 DataMap from TCollection
136 (AsciiString from TCollection,
138 AsciiString from TCollection);
141 class DataMapOfTRI instantiates
142 DataMap from TCollection
143 (TopologicalRepresentationItem from StepShape,
145 MapTransientHasher from TColStd);
147 class PointEdgeMap instantiates
148 DataMap from TCollection
149 (PointPair from StepToTopoDS,
151 PointPairHasher from StepToTopoDS);
153 class PointVertexMap instantiates
154 DataMap from TCollection
155 (CartesianPoint from StepGeom,
157 CartesianPointHasher from StepToTopoDS);
159 -- class ExtPCOnS instantiates
160 -- GExtPC from Extrema(CurveOnSurface from GeomAdaptor,
161 -- CurveOnSurfaceTool from GeomAdaptor,
162 -- ExtPElC from Extrema,
165 -- POnCurv from Extrema,
166 -- SequenceOfPOnCurv from Extrema);
172 DecodeBuilderError (Error : BuilderError from StepToTopoDS)
173 returns HAsciiString from TCollection;
175 DecodeShellError (Error : TranslateShellError from StepToTopoDS)
176 returns HAsciiString from TCollection;
178 DecodeFaceError (Error : TranslateFaceError from StepToTopoDS)
179 returns HAsciiString from TCollection;
181 DecodeEdgeError (Error : TranslateEdgeError from StepToTopoDS)
182 returns HAsciiString from TCollection;
184 DecodeVertexError (Error : TranslateVertexError from StepToTopoDS)
185 returns HAsciiString from TCollection;
187 DecodeVertexLoopError (Error : TranslateVertexLoopError from StepToTopoDS)
188 returns HAsciiString from TCollection;
190 DecodePolyLoopError (Error : TranslatePolyLoopError from StepToTopoDS)
191 returns HAsciiString from TCollection;
193 DecodeGeometricToolError (Error : GeometricToolError from StepToTopoDS)
194 returns CString from Standard;