summaryrefslogtreecommitdiff
path: root/inc/StepToTopoDS_Tool.hxx
blob: 8aa90fefe8454527c4b8371e30e197b540243e2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _StepToTopoDS_Tool_HeaderFile
#define _StepToTopoDS_Tool_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _StepToTopoDS_DataMapOfTRI_HeaderFile
#include <StepToTopoDS_DataMapOfTRI.hxx>
#endif
#ifndef _StepToTopoDS_PointVertexMap_HeaderFile
#include <StepToTopoDS_PointVertexMap.hxx>
#endif
#ifndef _StepToTopoDS_PointEdgeMap_HeaderFile
#include <StepToTopoDS_PointEdgeMap.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_Transfer_TransientProcess_HeaderFile
#include <Handle_Transfer_TransientProcess.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_StepShape_TopologicalRepresentationItem_HeaderFile
#include <Handle_StepShape_TopologicalRepresentationItem.hxx>
#endif
#ifndef _Handle_StepGeom_CartesianPoint_HeaderFile
#include <Handle_StepGeom_CartesianPoint.hxx>
#endif
#ifndef _Handle_Geom_Surface_HeaderFile
#include <Handle_Geom_Surface.hxx>
#endif
#ifndef _Handle_Geom_Curve_HeaderFile
#include <Handle_Geom_Curve.hxx>
#endif
#ifndef _Handle_Geom2d_Curve_HeaderFile
#include <Handle_Geom2d_Curve.hxx>
#endif
class Transfer_TransientProcess;
class StepToTopoDS_DataMapOfTRI;
class StepShape_TopologicalRepresentationItem;
class TopoDS_Shape;
class StepToTopoDS_PointPair;
class TopoDS_Edge;
class StepGeom_CartesianPoint;
class TopoDS_Vertex;
class Geom_Surface;
class Geom_Curve;
class Geom2d_Curve;


//! This Tool Class provides Information to build <br>
//!          a Cas.Cad BRep from a ProSTEP Shape model. <br>
class StepToTopoDS_Tool  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  
  Standard_EXPORT   StepToTopoDS_Tool();
  
  Standard_EXPORT   StepToTopoDS_Tool(const StepToTopoDS_DataMapOfTRI& Map,const Handle(Transfer_TransientProcess)& TP);
  
  Standard_EXPORT     void Init(const StepToTopoDS_DataMapOfTRI& Map,const Handle(Transfer_TransientProcess)& TP) ;
  
  Standard_EXPORT     Standard_Boolean IsBound(const Handle(StepShape_TopologicalRepresentationItem)& TRI) ;
  
  Standard_EXPORT     void Bind(const Handle(StepShape_TopologicalRepresentationItem)& TRI,const TopoDS_Shape& S) ;
  
  Standard_EXPORT    const TopoDS_Shape& Find(const Handle(StepShape_TopologicalRepresentationItem)& TRI) ;
  
  Standard_EXPORT     void ClearEdgeMap() ;
  
  Standard_EXPORT     Standard_Boolean IsEdgeBound(const StepToTopoDS_PointPair& PP) ;
  
  Standard_EXPORT     void BindEdge(const StepToTopoDS_PointPair& PP,const TopoDS_Edge& E) ;
  
  Standard_EXPORT    const TopoDS_Edge& FindEdge(const StepToTopoDS_PointPair& PP) ;
  
  Standard_EXPORT     void ClearVertexMap() ;
  
  Standard_EXPORT     Standard_Boolean IsVertexBound(const Handle(StepGeom_CartesianPoint)& PG) ;
  
  Standard_EXPORT     void BindVertex(const Handle(StepGeom_CartesianPoint)& P,const TopoDS_Vertex& V) ;
  
  Standard_EXPORT    const TopoDS_Vertex& FindVertex(const Handle(StepGeom_CartesianPoint)& P) ;
  
  Standard_EXPORT     void ComputePCurve(const Standard_Boolean B) ;
  
  Standard_EXPORT     Standard_Boolean ComputePCurve() const;
  
  Standard_EXPORT     Handle_Transfer_TransientProcess TransientProcess() const;
  
  Standard_EXPORT     void AddContinuity(const Handle(Geom_Surface)& GeomSurf) ;
  
  Standard_EXPORT     void AddContinuity(const Handle(Geom_Curve)& GeomCurve) ;
  
  Standard_EXPORT     void AddContinuity(const Handle(Geom2d_Curve)& GeomCur2d) ;
  
  Standard_EXPORT     Standard_Integer C0Surf() const;
  
  Standard_EXPORT     Standard_Integer C1Surf() const;
  
  Standard_EXPORT     Standard_Integer C2Surf() const;
  
  Standard_EXPORT     Standard_Integer C0Cur2() const;
  
  Standard_EXPORT     Standard_Integer C1Cur2() const;
  
  Standard_EXPORT     Standard_Integer C2Cur2() const;
  
  Standard_EXPORT     Standard_Integer C0Cur3() const;
  
  Standard_EXPORT     Standard_Integer C1Cur3() const;
  
  Standard_EXPORT     Standard_Integer C2Cur3() const;





protected:





private:



StepToTopoDS_DataMapOfTRI myDataMap;
StepToTopoDS_PointVertexMap myVertexMap;
StepToTopoDS_PointEdgeMap myEdgeMap;
Standard_Boolean myComputePC;
Handle_Transfer_TransientProcess myTransProc;
Standard_Integer myNbC0Surf;
Standard_Integer myNbC1Surf;
Standard_Integer myNbC2Surf;
Standard_Integer myNbC0Cur2;
Standard_Integer myNbC1Cur2;
Standard_Integer myNbC2Cur2;
Standard_Integer myNbC0Cur3;
Standard_Integer myNbC1Cur3;
Standard_Integer myNbC2Cur3;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif