0031313: Foundation Classes - Dump improvement for classes
[occt.git] / src / ShapeAnalysis / ShapeAnalysis_Wire.lxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14 //:pdn 05.01.99: renaming method ...Little to ...Small
15 #include <ShapeExtend.hxx>
16 #include <ShapeExtend_WireData.hxx>
17
18
19 //=======================================================================
20 //function : IsLoaded
21 //purpose  : 
22 //=======================================================================
23
24 inline Standard_Boolean ShapeAnalysis_Wire::IsLoaded() const
25 {
26   return ! myWire.IsNull() && myWire->NbEdges() >0;
27 }
28
29  
30 //=======================================================================
31 //function : IsReady
32 //purpose  : 
33 //=======================================================================
34
35 inline Standard_Boolean ShapeAnalysis_Wire::IsReady() const
36 {
37   return IsLoaded() && !myFace.IsNull();
38 }
39
40  
41 //=======================================================================
42 //function : Precision
43 //purpose  : 
44 //=======================================================================
45
46 inline Standard_Real ShapeAnalysis_Wire::Precision() const
47 {
48   return myPrecision;
49 }
50
51  
52 //=======================================================================
53 //function : WireData
54 //purpose  : 
55 //=======================================================================
56
57 inline const Handle(ShapeExtend_WireData)& ShapeAnalysis_Wire::WireData() const
58 {
59   return myWire;
60 }
61
62  
63 //=======================================================================
64 //function : NbEdges
65 //purpose  : 
66 //=======================================================================
67
68 inline Standard_Integer ShapeAnalysis_Wire::NbEdges() const
69 {
70   return myWire.IsNull() ? 0 : myWire->NbEdges();
71 }
72
73  
74 //=======================================================================
75 //function : Face
76 //purpose  : 
77 //=======================================================================
78
79 inline const TopoDS_Face& ShapeAnalysis_Wire::Face() const
80 {
81   return myFace;
82 }
83
84  
85 //=======================================================================
86 //function : Surface
87 //purpose  : 
88 //=======================================================================
89
90 inline const Handle(ShapeAnalysis_Surface)& ShapeAnalysis_Wire::Surface() const
91 {
92   return mySurf;
93 }
94
95
96 //=======================================================================
97 //function : StatusOrder
98 //purpose  : 
99 //=======================================================================
100
101 inline Standard_Boolean ShapeAnalysis_Wire::StatusOrder (const ShapeExtend_Status Status) const
102 {
103   return ShapeExtend::DecodeStatus ( myStatusOrder, Status );
104 }
105
106
107 //=======================================================================
108 //function : StatusConnected
109 //purpose  : 
110 //=======================================================================
111
112 inline Standard_Boolean ShapeAnalysis_Wire::StatusConnected (const ShapeExtend_Status Status) const
113 {
114   return ShapeExtend::DecodeStatus ( myStatusConnected, Status );
115 }
116
117
118 //=======================================================================
119 //function : StatusEdgeCurves
120 //purpose  : 
121 //=======================================================================
122
123 inline Standard_Boolean ShapeAnalysis_Wire::StatusEdgeCurves (const ShapeExtend_Status Status) const
124 {
125   return ShapeExtend::DecodeStatus ( myStatusEdgeCurves, Status );
126 }
127
128
129 //=======================================================================
130 //function : StatusDegenerated
131 //purpose  : 
132 //=======================================================================
133
134 inline Standard_Boolean ShapeAnalysis_Wire::StatusDegenerated (const ShapeExtend_Status Status) const
135 {
136   return ShapeExtend::DecodeStatus ( myStatusDegenerated, Status );
137 }
138
139
140 //=======================================================================
141 //function : StatusClosed
142 //purpose  : 
143 //=======================================================================
144
145 inline Standard_Boolean ShapeAnalysis_Wire::StatusClosed (const ShapeExtend_Status Status) const
146 {
147   return ShapeExtend::DecodeStatus ( myStatusClosed, Status );
148 }
149
150
151 //=======================================================================
152 //function : StatusSmall
153 //purpose  : 
154 //=======================================================================
155
156 inline Standard_Boolean ShapeAnalysis_Wire::StatusSmall (const ShapeExtend_Status Status) const
157 {
158   return ShapeExtend::DecodeStatus ( myStatusSmall, Status );
159 }
160
161
162 //=======================================================================
163 //function : StatusSelfIntersection
164 //purpose  : 
165 //=======================================================================
166
167 inline Standard_Boolean ShapeAnalysis_Wire::StatusSelfIntersection (const ShapeExtend_Status Status) const
168 {
169   return ShapeExtend::DecodeStatus ( myStatusSelfIntersection, Status );
170 }
171
172
173 //=======================================================================
174 //function : StatusLacking
175 //purpose  : 
176 //=======================================================================
177
178 inline Standard_Boolean ShapeAnalysis_Wire::StatusLacking (const ShapeExtend_Status Status) const
179 {
180   return ShapeExtend::DecodeStatus ( myStatusLacking, Status );
181 }
182
183
184 //=======================================================================
185 //function : StatusGaps3d
186 //purpose  : 
187 //=======================================================================
188
189 inline  Standard_Boolean ShapeAnalysis_Wire::StatusGaps3d(const ShapeExtend_Status Status) const
190 {
191   return ShapeExtend::DecodeStatus ( myStatusGaps3d, Status );
192 }
193
194
195 //=======================================================================
196 //function : StatusGaps2d
197 //purpose  : 
198 //=======================================================================
199
200 inline  Standard_Boolean ShapeAnalysis_Wire::StatusGaps2d(const ShapeExtend_Status Status) const
201 {
202   return ShapeExtend::DecodeStatus ( myStatusGaps2d, Status );
203 }
204
205
206 //=======================================================================
207 //function : StatusCurveGaps
208 //purpose  : 
209 //=======================================================================
210
211 inline  Standard_Boolean ShapeAnalysis_Wire::StatusCurveGaps(const ShapeExtend_Status Status) const
212 {
213   return ShapeExtend::DecodeStatus ( myStatusCurveGaps, Status );
214 }
215
216 //=======================================================================
217 //function : StatusLoop
218 //purpose  : 
219 //=======================================================================
220
221 inline  Standard_Boolean ShapeAnalysis_Wire::StatusLoop(const ShapeExtend_Status Status) const
222 {
223   return ShapeExtend::DecodeStatus ( myStatusLoop, Status );
224 }
225
226 //=======================================================================
227 //function : Status
228 //purpose  : 
229 //=======================================================================
230
231 inline Standard_Boolean ShapeAnalysis_Wire::LastCheckStatus (const ShapeExtend_Status Status) const
232 {
233   return ShapeExtend::DecodeStatus ( myStatus, Status );
234 }
235
236
237 //=======================================================================
238 //function : MinDistance3d
239 //purpose  : 
240 //=======================================================================
241
242 inline Standard_Real ShapeAnalysis_Wire::MinDistance3d() const
243 {
244   return myMin3d;
245 }
246
247
248 //=======================================================================
249 //function : MinDistance2d
250 //purpose  : 
251 //=======================================================================
252
253 inline Standard_Real ShapeAnalysis_Wire::MinDistance2d() const
254 {
255   return myMin2d;
256 }
257
258
259 //=======================================================================
260 //function : MaxDistance3d
261 //purpose  : 
262 //=======================================================================
263
264 inline Standard_Real ShapeAnalysis_Wire::MaxDistance3d() const
265 {
266   return myMax3d;
267 }
268
269
270 //=======================================================================
271 //function : MaxDistance2d
272 //purpose  : 
273 //=======================================================================
274
275 inline Standard_Real ShapeAnalysis_Wire::MaxDistance2d() const
276 {
277   return myMax2d;
278 }