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