0024077: Build errors on master branch on Mac OS X
[occt.git] / src / StepToTopoDS / StepToTopoDS_Tool.cdl
1 -- Created on: 1994-12-16
2 -- Created by: Frederic MAUPAS
3 -- Copyright (c) 1994-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
21
22 class Tool from StepToTopoDS
23
24     ---Purpose: This Tool Class provides Information to build
25     --          a Cas.Cad BRep from a ProSTEP Shape model.  
26
27 uses
28
29     DataMapOfTRI                  from StepToTopoDS,
30     PointPair                     from StepToTopoDS,
31     PointVertexMap                from StepToTopoDS,
32     PointEdgeMap                  from StepToTopoDS,
33     TopologicalRepresentationItem from StepShape,
34     CartesianPoint                from StepGeom,
35     Edge                          from TopoDS,
36     Vertex                        from TopoDS,
37     Shape                         from TopoDS,
38     Curve                         from Geom2d,
39     Curve                         from Geom,
40     Surface                       from Geom,
41     TransientProcess              from Transfer
42 is
43
44     Create returns Tool from StepToTopoDS;
45     
46     Create(Map : DataMapOfTRI from StepToTopoDS;
47            TP  : TransientProcess from Transfer)
48         returns Tool from StepToTopoDS;
49     
50     Init(me : in out;
51          Map : DataMapOfTRI from StepToTopoDS;
52          TP  : TransientProcess from Transfer);
53
54     IsBound(me   : in out;
55             TRI  : TopologicalRepresentationItem from StepShape) 
56         returns Boolean from Standard;
57         
58     Bind(me  : in out;
59          TRI : TopologicalRepresentationItem from StepShape;
60          S   : Shape from TopoDS);
61          
62     Find(me  : in out;
63          TRI : TopologicalRepresentationItem from StepShape) 
64         returns Shape from TopoDS;
65         ---C++: return const &
66     
67     ClearEdgeMap(me : in out);
68     
69     IsEdgeBound(me : in out;
70                 PP : PointPair from StepToTopoDS)
71         returns Boolean from Standard;
72         
73     BindEdge(me : in out;
74              PP : PointPair from StepToTopoDS;
75              E  : Edge from TopoDS);
76              
77     FindEdge(me : in out;
78              PP : PointPair from StepToTopoDS)
79         returns Edge from TopoDS;
80         ---C++: return const &
81     
82     ClearVertexMap(me : in out);
83                  
84     IsVertexBound(me : in out;
85                   PG : CartesianPoint from StepGeom)
86         returns Boolean from Standard;
87         
88     BindVertex(me : in out;
89                P  : CartesianPoint from StepGeom;
90                V  : Vertex from TopoDS);
91              
92     FindVertex(me : in out;
93                P  : CartesianPoint from StepGeom)
94         returns Vertex from TopoDS;
95         ---C++: return const &
96
97
98     ComputePCurve(me : in out;
99                   B  : Boolean from Standard);
100
101     ComputePCurve(me) returns Boolean from Standard;    
102     
103     TransientProcess(me) returns TransientProcess from Transfer;
104
105     -- Statistics
106
107     AddContinuity  (me : in out; GeomSurf  : Surface from Geom);
108     AddContinuity  (me : in out; GeomCurve : Curve   from Geom);
109     AddContinuity  (me : in out; GeomCur2d : Curve   from Geom2d);
110
111     
112     C0Surf(me) returns Integer from Standard;
113     C1Surf(me) returns Integer from Standard;
114     C2Surf(me) returns Integer from Standard;
115
116     C0Cur2(me) returns Integer from Standard;
117     C1Cur2(me) returns Integer from Standard;
118     C2Cur2(me) returns Integer from Standard;
119     
120     C0Cur3(me) returns Integer from Standard;
121     C1Cur3(me) returns Integer from Standard;
122     C2Cur3(me) returns Integer from Standard;
123     
124 fields
125
126     myDataMap   : DataMapOfTRI     from StepToTopoDS;
127     
128     myVertexMap : PointVertexMap   from StepToTopoDS;
129     
130     myEdgeMap   : PointEdgeMap     from StepToTopoDS;
131
132     myComputePC : Boolean          from Standard;
133     
134     myTransProc : TransientProcess from Transfer;
135
136     -- Statistics : 
137     -- Surface continuity 
138              
139     myNbC0Surf  : Integer             from Standard;
140     myNbC1Surf  : Integer             from Standard;
141     myNbC2Surf  : Integer             from Standard;
142
143     -- Curve2d continuity 
144              
145     myNbC0Cur2  : Integer             from Standard;
146     myNbC1Cur2  : Integer             from Standard;
147     myNbC2Cur2  : Integer             from Standard;    
148
149     -- Curve3d continuity 
150              
151     myNbC0Cur3  : Integer             from Standard;
152     myNbC1Cur3  : Integer             from Standard;
153     myNbC2Cur3  : Integer             from Standard;    
154
155 end Tool;