42cf5bc1 |
1 | // Created on: 1994-12-16 |
2 | // Created by: Frederic MAUPAS |
3 | // Copyright (c) 1994-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 | #ifndef _StepToTopoDS_Tool_HeaderFile |
18 | #define _StepToTopoDS_Tool_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <StepToTopoDS_DataMapOfTRI.hxx> |
25 | #include <StepToTopoDS_PointVertexMap.hxx> |
26 | #include <StepToTopoDS_PointEdgeMap.hxx> |
27 | #include <Standard_Boolean.hxx> |
28 | #include <Standard_Integer.hxx> |
29 | class Transfer_TransientProcess; |
30 | class StepShape_TopologicalRepresentationItem; |
31 | class TopoDS_Shape; |
32 | class StepToTopoDS_PointPair; |
33 | class TopoDS_Edge; |
34 | class StepGeom_CartesianPoint; |
35 | class TopoDS_Vertex; |
36 | class Geom_Surface; |
37 | class Geom_Curve; |
38 | class Geom2d_Curve; |
39 | |
40 | |
41 | //! This Tool Class provides Information to build |
42 | //! a Cas.Cad BRep from a ProSTEP Shape model. |
43 | class StepToTopoDS_Tool |
44 | { |
45 | public: |
46 | |
47 | DEFINE_STANDARD_ALLOC |
48 | |
49 | |
50 | Standard_EXPORT StepToTopoDS_Tool(); |
51 | |
52 | Standard_EXPORT StepToTopoDS_Tool(const StepToTopoDS_DataMapOfTRI& Map, const Handle(Transfer_TransientProcess)& TP); |
53 | |
54 | Standard_EXPORT void Init (const StepToTopoDS_DataMapOfTRI& Map, const Handle(Transfer_TransientProcess)& TP); |
55 | |
56 | Standard_EXPORT Standard_Boolean IsBound (const Handle(StepShape_TopologicalRepresentationItem)& TRI); |
57 | |
58 | Standard_EXPORT void Bind (const Handle(StepShape_TopologicalRepresentationItem)& TRI, const TopoDS_Shape& S); |
59 | |
60 | Standard_EXPORT const TopoDS_Shape& Find (const Handle(StepShape_TopologicalRepresentationItem)& TRI); |
61 | |
62 | Standard_EXPORT void ClearEdgeMap(); |
63 | |
64 | Standard_EXPORT Standard_Boolean IsEdgeBound (const StepToTopoDS_PointPair& PP); |
65 | |
66 | Standard_EXPORT void BindEdge (const StepToTopoDS_PointPair& PP, const TopoDS_Edge& E); |
67 | |
68 | Standard_EXPORT const TopoDS_Edge& FindEdge (const StepToTopoDS_PointPair& PP); |
69 | |
70 | Standard_EXPORT void ClearVertexMap(); |
71 | |
72 | Standard_EXPORT Standard_Boolean IsVertexBound (const Handle(StepGeom_CartesianPoint)& PG); |
73 | |
74 | Standard_EXPORT void BindVertex (const Handle(StepGeom_CartesianPoint)& P, const TopoDS_Vertex& V); |
75 | |
76 | Standard_EXPORT const TopoDS_Vertex& FindVertex (const Handle(StepGeom_CartesianPoint)& P); |
77 | |
78 | Standard_EXPORT void ComputePCurve (const Standard_Boolean B); |
79 | |
80 | Standard_EXPORT Standard_Boolean ComputePCurve() const; |
81 | |
82 | Standard_EXPORT Handle(Transfer_TransientProcess) TransientProcess() const; |
83 | |
84 | Standard_EXPORT void AddContinuity (const Handle(Geom_Surface)& GeomSurf); |
85 | |
86 | Standard_EXPORT void AddContinuity (const Handle(Geom_Curve)& GeomCurve); |
87 | |
88 | Standard_EXPORT void AddContinuity (const Handle(Geom2d_Curve)& GeomCur2d); |
89 | |
90 | Standard_EXPORT Standard_Integer C0Surf() const; |
91 | |
92 | Standard_EXPORT Standard_Integer C1Surf() const; |
93 | |
94 | Standard_EXPORT Standard_Integer C2Surf() const; |
95 | |
96 | Standard_EXPORT Standard_Integer C0Cur2() const; |
97 | |
98 | Standard_EXPORT Standard_Integer C1Cur2() const; |
99 | |
100 | Standard_EXPORT Standard_Integer C2Cur2() const; |
101 | |
102 | Standard_EXPORT Standard_Integer C0Cur3() const; |
103 | |
104 | Standard_EXPORT Standard_Integer C1Cur3() const; |
105 | |
106 | Standard_EXPORT Standard_Integer C2Cur3() const; |
107 | |
108 | |
109 | |
110 | |
111 | protected: |
112 | |
113 | |
114 | |
115 | |
116 | |
117 | private: |
118 | |
119 | |
120 | |
121 | StepToTopoDS_DataMapOfTRI myDataMap; |
122 | StepToTopoDS_PointVertexMap myVertexMap; |
123 | StepToTopoDS_PointEdgeMap myEdgeMap; |
124 | Standard_Boolean myComputePC; |
125 | Handle(Transfer_TransientProcess) myTransProc; |
126 | Standard_Integer myNbC0Surf; |
127 | Standard_Integer myNbC1Surf; |
128 | Standard_Integer myNbC2Surf; |
129 | Standard_Integer myNbC0Cur2; |
130 | Standard_Integer myNbC1Cur2; |
131 | Standard_Integer myNbC2Cur2; |
132 | Standard_Integer myNbC0Cur3; |
133 | Standard_Integer myNbC1Cur3; |
134 | Standard_Integer myNbC2Cur3; |
135 | |
136 | |
137 | }; |
138 | |
139 | |
140 | |
141 | |
142 | |
143 | |
144 | |
145 | #endif // _StepToTopoDS_Tool_HeaderFile |