42cf5bc1 |
1 | // Created on: 1993-06-17 |
2 | // Created by: Jean Yves LEBEY |
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 | #ifndef _TopOpeBRepDS_HeaderFile |
18 | #define _TopOpeBRepDS_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <TopAbs_State.hxx> |
25 | #include <Standard_OStream.hxx> |
26 | #include <TopOpeBRepDS_Kind.hxx> |
27 | #include <Standard_Integer.hxx> |
28 | #include <TCollection_AsciiString.hxx> |
29 | #include <TopAbs_ShapeEnum.hxx> |
30 | #include <TopAbs_Orientation.hxx> |
31 | #include <TopOpeBRepDS_Config.hxx> |
32 | #include <Standard_Boolean.hxx> |
33 | class TCollection_AsciiString; |
34 | class TopOpeBRepDS_Interference; |
35 | class TopOpeBRepDS_InterferenceIterator; |
36 | class TopOpeBRepDS_TKI; |
37 | class TopOpeBRepDS_Transition; |
38 | class TopOpeBRepDS_CurvePointInterference; |
39 | class TopOpeBRepDS_SurfaceCurveInterference; |
40 | class TopOpeBRepDS_SolidSurfaceInterference; |
41 | class TopOpeBRepDS_ShapeShapeInterference; |
42 | class TopOpeBRepDS_EdgeVertexInterference; |
43 | class TopOpeBRepDS_FaceEdgeInterference; |
44 | class TopOpeBRepDS_Surface; |
45 | class TopOpeBRepDS_Curve; |
46 | class TopOpeBRepDS_Point; |
47 | class TopOpeBRepDS_GeometryData; |
48 | class TopOpeBRepDS_SurfaceData; |
49 | class TopOpeBRepDS_CurveData; |
50 | class TopOpeBRepDS_PointData; |
51 | class TopOpeBRepDS_ShapeData; |
52 | class TopOpeBRepDS_DSS; |
53 | class TopOpeBRepDS_DataStructure; |
54 | class TopOpeBRepDS_SurfaceIterator; |
55 | class TopOpeBRepDS_CurveIterator; |
56 | class TopOpeBRepDS_PointIterator; |
57 | class TopOpeBRepDS_SurfaceExplorer; |
58 | class TopOpeBRepDS_CurveExplorer; |
59 | class TopOpeBRepDS_PointExplorer; |
60 | class TopOpeBRepDS_InterferenceTool; |
61 | class TopOpeBRepDS_BuildTool; |
62 | class TopOpeBRepDS_Dumper; |
63 | class TopOpeBRepDS_Marker; |
64 | class TopOpeBRepDS_HDataStructure; |
65 | class TopOpeBRepDS_EdgeInterferenceTool; |
66 | class TopOpeBRepDS_Edge3dInterferenceTool; |
67 | class TopOpeBRepDS_FaceInterferenceTool; |
68 | class TopOpeBRepDS_Filter; |
69 | class TopOpeBRepDS_Reducer; |
70 | class TopOpeBRepDS_TOOL; |
71 | class TopOpeBRepDS_FIR; |
72 | class TopOpeBRepDS_EIR; |
73 | class TopOpeBRepDS_Check; |
74 | class TopOpeBRepDS_GapFiller; |
75 | class TopOpeBRepDS_GapTool; |
76 | class TopOpeBRepDS_Association; |
77 | class TopOpeBRepDS_ListOfShapeOn1State; |
78 | class TopOpeBRepDS_Explorer; |
79 | class TopOpeBRepDS_ShapeWithState; |
80 | |
81 | |
82 | //! This package provides services used by the TopOpeBRepBuild |
83 | //! package performing topological operations on the BRep |
84 | //! data structure. |
85 | class TopOpeBRepDS |
86 | { |
87 | public: |
88 | |
89 | DEFINE_STANDARD_ALLOC |
90 | |
91 | |
92 | //! IN OU ON UN |
93 | Standard_EXPORT static TCollection_AsciiString SPrint (const TopAbs_State S); |
94 | |
95 | Standard_EXPORT static Standard_OStream& Print (const TopAbs_State S, Standard_OStream& OS); |
96 | |
97 | //! <K> |
98 | Standard_EXPORT static TCollection_AsciiString SPrint (const TopOpeBRepDS_Kind K); |
99 | |
100 | //! S1(<K>,<I>)S2 |
101 | Standard_EXPORT static TCollection_AsciiString SPrint (const TopOpeBRepDS_Kind K, const Standard_Integer I, const TCollection_AsciiString& B = "", const TCollection_AsciiString& A = ""); |
102 | |
103 | Standard_EXPORT static Standard_OStream& Print (const TopOpeBRepDS_Kind K, Standard_OStream& S); |
104 | |
105 | Standard_EXPORT static Standard_OStream& Print (const TopOpeBRepDS_Kind K, const Standard_Integer I, Standard_OStream& S, const TCollection_AsciiString& B = "", const TCollection_AsciiString& A = ""); |
106 | |
107 | Standard_EXPORT static TCollection_AsciiString SPrint (const TopAbs_ShapeEnum T); |
108 | |
109 | //! (<T>,<I>) |
110 | Standard_EXPORT static TCollection_AsciiString SPrint (const TopAbs_ShapeEnum T, const Standard_Integer I); |
111 | |
112 | Standard_EXPORT static Standard_OStream& Print (const TopAbs_ShapeEnum T, const Standard_Integer I, Standard_OStream& S); |
113 | |
114 | Standard_EXPORT static TCollection_AsciiString SPrint (const TopAbs_Orientation O); |
115 | |
116 | Standard_EXPORT static TCollection_AsciiString SPrint (const TopOpeBRepDS_Config C); |
117 | |
118 | Standard_EXPORT static Standard_OStream& Print (const TopOpeBRepDS_Config C, Standard_OStream& S); |
119 | |
120 | Standard_EXPORT static Standard_Boolean IsGeometry (const TopOpeBRepDS_Kind K); |
121 | |
122 | Standard_EXPORT static Standard_Boolean IsTopology (const TopOpeBRepDS_Kind K); |
123 | |
124 | Standard_EXPORT static TopAbs_ShapeEnum KindToShape (const TopOpeBRepDS_Kind K); |
125 | |
126 | Standard_EXPORT static TopOpeBRepDS_Kind ShapeToKind (const TopAbs_ShapeEnum S); |
127 | |
128 | |
129 | |
130 | |
131 | protected: |
132 | |
133 | |
134 | |
135 | |
136 | |
137 | private: |
138 | |
139 | |
140 | |
141 | |
142 | friend class TopOpeBRepDS_Interference; |
143 | friend class TopOpeBRepDS_InterferenceIterator; |
144 | friend class TopOpeBRepDS_TKI; |
145 | friend class TopOpeBRepDS_Transition; |
146 | friend class TopOpeBRepDS_CurvePointInterference; |
147 | friend class TopOpeBRepDS_SurfaceCurveInterference; |
148 | friend class TopOpeBRepDS_SolidSurfaceInterference; |
149 | friend class TopOpeBRepDS_ShapeShapeInterference; |
150 | friend class TopOpeBRepDS_EdgeVertexInterference; |
151 | friend class TopOpeBRepDS_FaceEdgeInterference; |
152 | friend class TopOpeBRepDS_Surface; |
153 | friend class TopOpeBRepDS_Curve; |
154 | friend class TopOpeBRepDS_Point; |
155 | friend class TopOpeBRepDS_GeometryData; |
156 | friend class TopOpeBRepDS_SurfaceData; |
157 | friend class TopOpeBRepDS_CurveData; |
158 | friend class TopOpeBRepDS_PointData; |
159 | friend class TopOpeBRepDS_ShapeData; |
160 | friend class TopOpeBRepDS_DSS; |
161 | friend class TopOpeBRepDS_DataStructure; |
162 | friend class TopOpeBRepDS_SurfaceIterator; |
163 | friend class TopOpeBRepDS_CurveIterator; |
164 | friend class TopOpeBRepDS_PointIterator; |
165 | friend class TopOpeBRepDS_SurfaceExplorer; |
166 | friend class TopOpeBRepDS_CurveExplorer; |
167 | friend class TopOpeBRepDS_PointExplorer; |
168 | friend class TopOpeBRepDS_InterferenceTool; |
169 | friend class TopOpeBRepDS_BuildTool; |
170 | friend class TopOpeBRepDS_Dumper; |
171 | friend class TopOpeBRepDS_Marker; |
172 | friend class TopOpeBRepDS_HDataStructure; |
173 | friend class TopOpeBRepDS_EdgeInterferenceTool; |
174 | friend class TopOpeBRepDS_Edge3dInterferenceTool; |
175 | friend class TopOpeBRepDS_FaceInterferenceTool; |
176 | friend class TopOpeBRepDS_Filter; |
177 | friend class TopOpeBRepDS_Reducer; |
178 | friend class TopOpeBRepDS_TOOL; |
179 | friend class TopOpeBRepDS_FIR; |
180 | friend class TopOpeBRepDS_EIR; |
181 | friend class TopOpeBRepDS_Check; |
182 | friend class TopOpeBRepDS_GapFiller; |
183 | friend class TopOpeBRepDS_GapTool; |
184 | friend class TopOpeBRepDS_Association; |
185 | friend class TopOpeBRepDS_ListOfShapeOn1State; |
186 | friend class TopOpeBRepDS_Explorer; |
187 | friend class TopOpeBRepDS_ShapeWithState; |
188 | |
189 | }; |
190 | |
191 | |
192 | |
193 | |
194 | |
195 | |
196 | |
197 | #endif // _TopOpeBRepDS_HeaderFile |