0024157: Parallelization of assembly part of BO
[occt.git] / src / StepToTopoDS / StepToTopoDS.cdl
CommitLineData
b311480e 1-- Created on: 1993-07-28
2-- Created by: Martine LANGLOIS
3-- Copyright (c) 1993-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22package StepToTopoDS
23
24 --- Purpose: This package implements the mapping between AP214
25 -- Shape representation and CAS.CAD Shape Representation.
26 -- The source schema is Part42 (which is included in AP214)
27
28uses TopoDS, StdFail, TCollection, TColStd, BRep, Geom, Geom2d,
29 GeomAdaptor, Extrema, gp, Transfer, Geom2dAPI,
30 StepRepr, StepGeom, StepShape, TopTools
31
32is
33
34 -- -----------
35 -- enumeration
36 -- -----------
37
38 enumeration BuilderError is
39 BuilderDone,
40 BuilderOther
41 end;
42
43 enumeration TranslateShellError is
44 TranslateShellDone,
45 TranslateShellOther
46 end;
47
48 enumeration TranslateFaceError is
49 TranslateFaceDone,
50 TranslateFaceOther
51 end;
52
53 enumeration TranslateEdgeLoopError is
54 TranslateEdgeLoopDone,
55 TranslateEdgeLoopOther
56 end;
57
58 enumeration TranslateEdgeError is
59 TranslateEdgeDone,
60 TranslateEdgeOther
61 end;
62
63 enumeration TranslateVertexError is
64 TranslateVertexDone,
65 TranslateVertexOther
66 end;
67
68 enumeration TranslateVertexLoopError is
69 TranslateVertexLoopDone,
70 TranslateVertexLoopOther
71 end;
72
73 enumeration TranslatePolyLoopError is
74 TranslatePolyLoopDone,
75 TranslatePolyLoopOther
76 end;
77
78 enumeration GeometricToolError is
79 GeometricToolDone,
80 GeometricToolIsDegenerated,
81 GeometricToolHasNoPCurve,
82 GeometricToolWrong3dParameters,
83 GeometricToolNoProjectiOnCurve,
84 GeometricToolOther
85 end;
86
87 -- ---------------
88 -- Package Classes
89 -- ---------------
90
91 private deferred class Root;
92
93 class TranslateShell;
94
95 class TranslateFace;
96
97 class TranslateEdgeLoop;
98
99 class TranslateEdge;
100
101 class TranslateVertex;
102
103 class TranslatePolyLoop;
104
105 class TranslateVertexLoop;
106
107 class TranslateCompositeCurve;
108
109 class TranslateCurveBoundedSurface;
110
111 class Builder;
112
113 class MakeTransformed;
114
115 class GeometricTool;
116
117-- class DegeneratedTool;
118
119 class Tool;
120
121 class CartesianPointHasher;
122
123 class PointPair;
124
125 class PointPairHasher;
126
127 class NMTool;
128
129 -- --------------------
130 -- Instanciated Classes
131 -- --------------------
132
133 class DataMapOfRI instantiates
134 DataMap from TCollection
135 (RepresentationItem from StepRepr,
136 Shape from TopoDS,
137 MapTransientHasher from TColStd);
138
139 class DataMapOfRINames instantiates
140 DataMap from TCollection
141 (AsciiString from TCollection,
142 Shape from TopoDS,
143 AsciiString from TCollection);
144
145
146 class DataMapOfTRI instantiates
147 DataMap from TCollection
148 (TopologicalRepresentationItem from StepShape,
149 Shape from TopoDS,
150 MapTransientHasher from TColStd);
151
152 class PointEdgeMap instantiates
153 DataMap from TCollection
154 (PointPair from StepToTopoDS,
155 Edge from TopoDS,
156 PointPairHasher from StepToTopoDS);
157
158 class PointVertexMap instantiates
159 DataMap from TCollection
160 (CartesianPoint from StepGeom,
161 Vertex from TopoDS,
162 CartesianPointHasher from StepToTopoDS);
163
164-- class ExtPCOnS instantiates
165-- GExtPC from Extrema(CurveOnSurface from GeomAdaptor,
166-- CurveOnSurfaceTool from GeomAdaptor,
167-- ExtPElC from Extrema,
168-- Pnt from gp,
169-- Vec from gp,
170-- POnCurv from Extrema,
171-- SequenceOfPOnCurv from Extrema);
172
173 -- --------------
174 -- Package Method
175 -- --------------
176
177 DecodeBuilderError (Error : BuilderError from StepToTopoDS)
178 returns HAsciiString from TCollection;
179
180 DecodeShellError (Error : TranslateShellError from StepToTopoDS)
181 returns HAsciiString from TCollection;
182
183 DecodeFaceError (Error : TranslateFaceError from StepToTopoDS)
184 returns HAsciiString from TCollection;
185
186 DecodeEdgeError (Error : TranslateEdgeError from StepToTopoDS)
187 returns HAsciiString from TCollection;
188
189 DecodeVertexError (Error : TranslateVertexError from StepToTopoDS)
190 returns HAsciiString from TCollection;
191
192 DecodeVertexLoopError (Error : TranslateVertexLoopError from StepToTopoDS)
193 returns HAsciiString from TCollection;
194
195 DecodePolyLoopError (Error : TranslatePolyLoopError from StepToTopoDS)
196 returns HAsciiString from TCollection;
197
198 DecodeGeometricToolError (Error : GeometricToolError from StepToTopoDS)
199 returns CString from Standard;
200
201end StepToTopoDS;