1 -- File: StepToTopoDS.cdl
2 -- Created: Wed Jul 28 11:00:52 1993
3 -- Author: Martine LANGLOIS
5 ---Copyright: Matra Datavision 1993
9 --- Purpose: This package implements the mapping between AP214
10 -- Shape representation and CAS.CAD Shape Representation.
11 -- The source schema is Part42 (which is included in AP214)
13 uses TopoDS, StdFail, TCollection, TColStd, BRep, Geom, Geom2d,
14 GeomAdaptor, Extrema, gp, Transfer, Geom2dAPI,
15 StepRepr, StepGeom, StepShape, TopTools
23 enumeration BuilderError is
28 enumeration TranslateShellError is
33 enumeration TranslateFaceError is
38 enumeration TranslateEdgeLoopError is
39 TranslateEdgeLoopDone,
40 TranslateEdgeLoopOther
43 enumeration TranslateEdgeError is
48 enumeration TranslateVertexError is
53 enumeration TranslateVertexLoopError is
54 TranslateVertexLoopDone,
55 TranslateVertexLoopOther
58 enumeration TranslatePolyLoopError is
59 TranslatePolyLoopDone,
60 TranslatePolyLoopOther
63 enumeration GeometricToolError is
65 GeometricToolIsDegenerated,
66 GeometricToolHasNoPCurve,
67 GeometricToolWrong3dParameters,
68 GeometricToolNoProjectiOnCurve,
76 private deferred class Root;
82 class TranslateEdgeLoop;
86 class TranslateVertex;
88 class TranslatePolyLoop;
90 class TranslateVertexLoop;
92 class TranslateCompositeCurve;
94 class TranslateCurveBoundedSurface;
98 class MakeTransformed;
102 -- class DegeneratedTool;
106 class CartesianPointHasher;
110 class PointPairHasher;
114 -- --------------------
115 -- Instanciated Classes
116 -- --------------------
118 class DataMapOfRI instantiates
119 DataMap from TCollection
120 (RepresentationItem from StepRepr,
122 MapTransientHasher from TColStd);
124 class DataMapOfRINames instantiates
125 DataMap from TCollection
126 (AsciiString from TCollection,
128 AsciiString from TCollection);
131 class DataMapOfTRI instantiates
132 DataMap from TCollection
133 (TopologicalRepresentationItem from StepShape,
135 MapTransientHasher from TColStd);
137 class PointEdgeMap instantiates
138 DataMap from TCollection
139 (PointPair from StepToTopoDS,
141 PointPairHasher from StepToTopoDS);
143 class PointVertexMap instantiates
144 DataMap from TCollection
145 (CartesianPoint from StepGeom,
147 CartesianPointHasher from StepToTopoDS);
149 -- class ExtPCOnS instantiates
150 -- GExtPC from Extrema(CurveOnSurface from GeomAdaptor,
151 -- CurveOnSurfaceTool from GeomAdaptor,
152 -- ExtPElC from Extrema,
155 -- POnCurv from Extrema,
156 -- SequenceOfPOnCurv from Extrema);
162 DecodeBuilderError (Error : BuilderError from StepToTopoDS)
163 returns HAsciiString from TCollection;
165 DecodeShellError (Error : TranslateShellError from StepToTopoDS)
166 returns HAsciiString from TCollection;
168 DecodeFaceError (Error : TranslateFaceError from StepToTopoDS)
169 returns HAsciiString from TCollection;
171 DecodeEdgeError (Error : TranslateEdgeError from StepToTopoDS)
172 returns HAsciiString from TCollection;
174 DecodeVertexError (Error : TranslateVertexError from StepToTopoDS)
175 returns HAsciiString from TCollection;
177 DecodeVertexLoopError (Error : TranslateVertexLoopError from StepToTopoDS)
178 returns HAsciiString from TCollection;
180 DecodePolyLoopError (Error : TranslatePolyLoopError from StepToTopoDS)
181 returns HAsciiString from TCollection;
183 DecodeGeometricToolError (Error : GeometricToolError from StepToTopoDS)
184 returns CString from Standard;