0022627: Change OCCT memory management defaults
[occt.git] / src / StepToTopoDS / StepToTopoDS.cdl
1 -- File:        StepToTopoDS.cdl
2 -- Created:     Wed Jul 28 11:00:52 1993
3 -- Author:      Martine LANGLOIS
4 --              <mla@mastox>
5 ---Copyright:    Matra Datavision 1993
6
7 package StepToTopoDS
8
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)
12
13 uses TopoDS, StdFail, TCollection, TColStd, BRep, Geom, Geom2d,
14      GeomAdaptor, Extrema, gp, Transfer, Geom2dAPI,
15      StepRepr, StepGeom, StepShape, TopTools
16
17 is
18
19     -- -----------
20     -- enumeration
21     -- -----------
22
23     enumeration BuilderError is
24         BuilderDone,
25         BuilderOther
26     end;
27
28     enumeration TranslateShellError is
29         TranslateShellDone,
30         TranslateShellOther
31     end;
32     
33     enumeration TranslateFaceError is
34         TranslateFaceDone,
35         TranslateFaceOther
36     end;
37     
38     enumeration TranslateEdgeLoopError is
39         TranslateEdgeLoopDone,
40         TranslateEdgeLoopOther
41     end;
42
43     enumeration TranslateEdgeError is
44         TranslateEdgeDone,
45         TranslateEdgeOther
46     end;
47     
48     enumeration TranslateVertexError is
49         TranslateVertexDone,
50         TranslateVertexOther
51     end;
52     
53     enumeration TranslateVertexLoopError is
54         TranslateVertexLoopDone,
55         TranslateVertexLoopOther
56     end;
57     
58     enumeration TranslatePolyLoopError is
59         TranslatePolyLoopDone,
60         TranslatePolyLoopOther
61     end;
62
63     enumeration GeometricToolError is
64         GeometricToolDone,
65         GeometricToolIsDegenerated,
66         GeometricToolHasNoPCurve,
67         GeometricToolWrong3dParameters,
68         GeometricToolNoProjectiOnCurve,
69         GeometricToolOther
70     end;
71
72     -- ---------------
73     -- Package Classes
74     -- ---------------
75
76     private deferred class Root;
77
78         class TranslateShell;
79     
80         class TranslateFace;
81     
82         class TranslateEdgeLoop;
83         
84         class TranslateEdge;
85     
86         class TranslateVertex;
87     
88         class TranslatePolyLoop;
89     
90         class TranslateVertexLoop;
91     
92         class TranslateCompositeCurve;
93         
94         class TranslateCurveBoundedSurface;
95
96         class Builder;
97         
98         class MakeTransformed;
99
100     class GeometricTool;
101     
102 --    class DegeneratedTool;
103     
104     class Tool;
105
106     class CartesianPointHasher;
107
108     class PointPair;
109     
110     class PointPairHasher;
111
112     class NMTool;
113
114     -- --------------------
115     -- Instanciated Classes
116     -- --------------------
117
118     class DataMapOfRI instantiates 
119         DataMap from TCollection
120             (RepresentationItem from StepRepr,
121              Shape              from TopoDS,
122              MapTransientHasher from TColStd);
123
124     class DataMapOfRINames instantiates 
125         DataMap from TCollection
126             (AsciiString from TCollection,
127              Shape       from TopoDS,
128              AsciiString from TCollection);
129
130
131     class DataMapOfTRI instantiates 
132         DataMap from TCollection
133             (TopologicalRepresentationItem from StepShape,
134              Shape                         from TopoDS,
135              MapTransientHasher            from TColStd);
136
137     class PointEdgeMap instantiates
138         DataMap from TCollection
139             (PointPair       from StepToTopoDS,
140              Edge            from TopoDS,
141              PointPairHasher from StepToTopoDS);
142
143     class PointVertexMap instantiates
144         DataMap from TCollection
145                 (CartesianPoint       from StepGeom,
146                  Vertex               from TopoDS,
147                  CartesianPointHasher from StepToTopoDS);
148
149 --    class ExtPCOnS instantiates
150 --      GExtPC from Extrema(CurveOnSurface      from GeomAdaptor,
151 --                          CurveOnSurfaceTool  from GeomAdaptor,
152 --                          ExtPElC             from Extrema,
153 --                          Pnt                 from gp,
154 --                          Vec                 from gp,
155 --                          POnCurv             from Extrema,
156 --                          SequenceOfPOnCurv   from Extrema);
157
158     -- --------------
159     -- Package Method
160     -- --------------
161
162     DecodeBuilderError (Error : BuilderError from StepToTopoDS)
163         returns HAsciiString from TCollection;
164     
165     DecodeShellError (Error : TranslateShellError from StepToTopoDS)
166         returns HAsciiString from TCollection;
167
168     DecodeFaceError (Error : TranslateFaceError from StepToTopoDS)
169         returns HAsciiString from TCollection;
170
171     DecodeEdgeError (Error : TranslateEdgeError from StepToTopoDS)
172         returns HAsciiString from TCollection;
173
174     DecodeVertexError (Error : TranslateVertexError from StepToTopoDS)
175         returns HAsciiString from TCollection;
176
177     DecodeVertexLoopError (Error : TranslateVertexLoopError from StepToTopoDS)
178         returns HAsciiString from TCollection;
179
180     DecodePolyLoopError (Error : TranslatePolyLoopError from StepToTopoDS)
181         returns HAsciiString from TCollection;
182         
183     DecodeGeometricToolError (Error : GeometricToolError from StepToTopoDS)
184         returns CString from Standard;
185         
186 end StepToTopoDS;