7fd59977 |
1 | // File: ShapeAnalysis_ShapeContents.lxx |
2 | // Created: Mon Mar 1 11:06:12 1999 |
3 | // Author: Pavel DURANDIN |
4 | // <pdn@nnov.matra-dtv.fr> |
5 | |
6 | |
7 | //======================================================================= |
8 | //function : NbSolids |
9 | //purpose : |
10 | //======================================================================= |
11 | |
12 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbSolids() const |
13 | { |
14 | return myNbSolids; |
15 | } |
16 | |
17 | //======================================================================= |
18 | //function : NbShells |
19 | //purpose : |
20 | //======================================================================= |
21 | |
22 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbShells() const |
23 | { |
24 | return myNbShells; |
25 | } |
26 | |
27 | //======================================================================= |
28 | //function : NbFaces |
29 | //purpose : |
30 | //======================================================================= |
31 | |
32 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbFaces() const |
33 | { |
34 | return myNbFaces; |
35 | } |
36 | |
37 | //======================================================================= |
38 | //function : NbWires |
39 | //purpose : |
40 | //======================================================================= |
41 | |
42 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbWires() const |
43 | { |
44 | return myNbWires; |
45 | } |
46 | |
47 | //======================================================================= |
48 | //function : NbEdges |
49 | //purpose : |
50 | //======================================================================= |
51 | |
52 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbEdges() const |
53 | { |
54 | return myNbEdges; |
55 | } |
56 | |
57 | //======================================================================= |
58 | //function : NbVertices |
59 | //purpose : |
60 | //======================================================================= |
61 | |
62 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbVertices() const |
63 | { |
64 | return myNbVertices; |
65 | } |
66 | |
67 | //======================================================================= |
68 | //function : NbSolidsWithVoids |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbSolidsWithVoids() const |
73 | { |
74 | return myNbSolidsWithVoids; |
75 | } |
76 | |
77 | //======================================================================= |
78 | //function : NbBigSplines |
79 | //purpose : |
80 | //======================================================================= |
81 | |
82 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbBigSplines() const |
83 | { |
84 | return myNbBigSplines; |
85 | } |
86 | |
87 | //======================================================================= |
88 | //function : NbC0Surfaces |
89 | //purpose : |
90 | //======================================================================= |
91 | |
92 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbC0Surfaces() const |
93 | { |
94 | return myNbC0Surfaces; |
95 | } |
96 | |
97 | //======================================================================= |
98 | //function : |
99 | //purpose : |
100 | //======================================================================= |
101 | |
102 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbC0Curves() const |
103 | { |
104 | return myNbC0Curves; |
105 | } |
106 | |
107 | //======================================================================= |
108 | //function : NbOffsetSurf |
109 | //purpose : |
110 | //======================================================================= |
111 | |
112 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbOffsetSurf() const |
113 | { |
114 | return myNbOffsetSurf; |
115 | } |
116 | |
117 | //======================================================================= |
118 | //function : NbIndirectSurf |
119 | //purpose : |
120 | //======================================================================= |
121 | |
122 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbIndirectSurf() const |
123 | { |
124 | return myNbIndirectSurf; |
125 | } |
126 | |
127 | //======================================================================= |
128 | //function : NbOffsetCurves |
129 | //purpose : |
130 | //======================================================================= |
131 | |
132 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbOffsetCurves() const |
133 | { |
134 | return myNbOffsetCurves; |
135 | } |
136 | |
137 | //======================================================================= |
138 | //function : NbTrimmedCurve2d |
139 | //purpose : |
140 | //======================================================================= |
141 | |
142 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbTrimmedCurve2d() const |
143 | { |
144 | return myNbTrimmedCurve2d; |
145 | } |
146 | |
147 | //======================================================================= |
148 | //function : |
149 | //purpose : |
150 | //======================================================================= |
151 | |
152 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbTrimmedCurve3d() const |
153 | { |
154 | return myNbTrimmedCurve3d; |
155 | } |
156 | |
157 | //======================================================================= |
158 | //function : NbBSplibeSurf |
159 | //purpose : |
160 | //======================================================================= |
161 | |
162 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbBSplibeSurf() const |
163 | { |
164 | return myNbBSplibeSurf; |
165 | } |
166 | |
167 | //======================================================================= |
168 | //function : NbBezierSurf |
169 | //purpose : |
170 | //======================================================================= |
171 | |
172 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbBezierSurf() const |
173 | { |
174 | return myNbBezierSurf; |
175 | } |
176 | |
177 | //======================================================================= |
178 | //function : NbTrimSurf |
179 | //purpose : |
180 | //======================================================================= |
181 | |
182 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbTrimSurf() const |
183 | { |
184 | return myNbTrimSurf; |
185 | } |
186 | |
187 | //======================================================================= |
188 | //function : NbWireWitnSeam |
189 | //purpose : |
190 | //======================================================================= |
191 | |
192 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbWireWitnSeam() const |
193 | { |
194 | return myNbWireWitnSeam; |
195 | } |
196 | |
197 | //======================================================================= |
198 | //function :NbWireWithSevSeams |
199 | //purpose : |
200 | //======================================================================= |
201 | |
202 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbWireWithSevSeams() const |
203 | { |
204 | return myNbWireWithSevSeams; |
205 | } |
206 | |
207 | //======================================================================= |
208 | //function : NbFaceWithSevWires |
209 | //purpose : |
210 | //======================================================================= |
211 | |
212 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbFaceWithSevWires() const |
213 | { |
214 | return myNbFaceWithSevWires; |
215 | } |
216 | |
217 | //======================================================================= |
218 | //function : NbNoPCurve |
219 | //purpose : |
220 | //======================================================================= |
221 | |
222 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbNoPCurve() const |
223 | { |
224 | return myNbNoPCurve; |
225 | } |
226 | |
227 | //======================================================================= |
228 | //function : NbFreeFaces |
229 | //purpose : |
230 | //======================================================================= |
231 | |
232 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbFreeFaces() const |
233 | { |
234 | return myNbFreeFaces; |
235 | } |
236 | |
237 | //======================================================================= |
238 | //function : NbFreeWires |
239 | //purpose : |
240 | //======================================================================= |
241 | |
242 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbFreeWires() const |
243 | { |
244 | return myNbFreeWires; |
245 | } |
246 | |
247 | //======================================================================= |
248 | //function : NbFreeEdges |
249 | //purpose : |
250 | //======================================================================= |
251 | |
252 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbFreeEdges() const |
253 | { |
254 | return myNbFreeEdges; |
255 | } |
256 | |
257 | //======================================================================= |
258 | //function : NbSharedSolids |
259 | //purpose : |
260 | //======================================================================= |
261 | |
262 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbSharedSolids() const |
263 | { |
264 | return myNbSharedSolids; |
265 | } |
266 | |
267 | //======================================================================= |
268 | //function : NbSharedShells |
269 | //purpose : |
270 | //======================================================================= |
271 | |
272 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbSharedShells() const |
273 | { |
274 | return myNbSharedShells; |
275 | } |
276 | |
277 | //======================================================================= |
278 | //function : NbSharedFaces |
279 | //purpose : |
280 | //======================================================================= |
281 | |
282 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbSharedFaces() const |
283 | { |
284 | return myNbSharedFaces; |
285 | } |
286 | |
287 | //======================================================================= |
288 | //function : NbSharedWires |
289 | //purpose : |
290 | //======================================================================= |
291 | |
292 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbSharedWires() const |
293 | { |
294 | return myNbSharedWires; |
295 | } |
296 | |
297 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbSharedFreeWires() const |
298 | { |
299 | return myNbSharedFreeWires; |
300 | } |
301 | |
302 | //======================================================================= |
303 | //function : NbSharedFreeEdges |
304 | //purpose : |
305 | //======================================================================= |
306 | |
307 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbSharedFreeEdges() const |
308 | { |
309 | return myNbSharedFreeEdges; |
310 | } |
311 | |
312 | //======================================================================= |
313 | //function : NbSharedEdges |
314 | //purpose : |
315 | //======================================================================= |
316 | |
317 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbSharedEdges() const |
318 | { |
319 | return myNbSharedEdges; |
320 | } |
321 | |
322 | //======================================================================= |
323 | //function : NbSharedVertices |
324 | //purpose : |
325 | //======================================================================= |
326 | |
327 | inline Standard_Integer ShapeAnalysis_ShapeContents::NbSharedVertices() const |
328 | { |
329 | return myNbSharedVertices; |
330 | } |
331 | |
332 | //======================================================================= |
333 | //function : BigSplineSec |
334 | //purpose : |
335 | //======================================================================= |
336 | |
337 | inline Handle(TopTools_HSequenceOfShape) ShapeAnalysis_ShapeContents::BigSplineSec() const |
338 | { |
339 | return myBigSplineSec; |
340 | } |
341 | |
342 | //======================================================================= |
343 | //function : IndirectSec |
344 | //purpose : |
345 | //======================================================================= |
346 | |
347 | inline Handle(TopTools_HSequenceOfShape) ShapeAnalysis_ShapeContents::IndirectSec() const |
348 | { |
349 | return myIndirectSec; |
350 | } |
351 | |
352 | //======================================================================= |
353 | //function : OffsetSurfaceSec |
354 | //purpose : |
355 | //======================================================================= |
356 | |
357 | inline Handle(TopTools_HSequenceOfShape) ShapeAnalysis_ShapeContents::OffsetSurfaceSec() const |
358 | { |
359 | return myOffsetSurfaceSec; |
360 | } |
361 | |
362 | //======================================================================= |
363 | //function : Trimmed3dSec |
364 | //purpose : |
365 | //======================================================================= |
366 | |
367 | inline Handle(TopTools_HSequenceOfShape) ShapeAnalysis_ShapeContents::Trimmed3dSec() const |
368 | { |
369 | return myTrimmed3dSec; |
370 | } |
371 | |
372 | //======================================================================= |
373 | //function : OffsetCurveSec |
374 | //purpose : |
375 | //======================================================================= |
376 | |
377 | inline Handle(TopTools_HSequenceOfShape) ShapeAnalysis_ShapeContents::OffsetCurveSec() const |
378 | { |
379 | return myOffsetCurveSec; |
380 | } |
381 | |
382 | //======================================================================= |
383 | //function : Trimmed2dSec |
384 | //purpose : |
385 | //======================================================================= |
386 | |
387 | inline Handle(TopTools_HSequenceOfShape) ShapeAnalysis_ShapeContents::Trimmed2dSec() const |
388 | { |
389 | return myTrimmed2dSec; |
390 | } |
391 | |
392 | |
393 | //======================================================================= |
394 | //function : ModifyBigSplineMode |
395 | //purpose : |
396 | //======================================================================= |
397 | |
398 | inline Standard_Boolean& ShapeAnalysis_ShapeContents::ModifyBigSplineMode() |
399 | { |
400 | return myBigSplineMode; |
401 | } |
402 | |
403 | //======================================================================= |
404 | //function : ModifyIndirectMode |
405 | //purpose : |
406 | //======================================================================= |
407 | |
408 | inline Standard_Boolean& ShapeAnalysis_ShapeContents::ModifyIndirectMode() |
409 | { |
410 | return myIndirectMode; |
411 | } |
412 | |
413 | //======================================================================= |
414 | //function : ModifyOffestSurfaceMode |
415 | //purpose : |
416 | //======================================================================= |
417 | |
418 | inline Standard_Boolean& ShapeAnalysis_ShapeContents::ModifyOffestSurfaceMode() |
419 | { |
420 | return myOffestSurfaceMode; |
421 | } |
422 | |
423 | //======================================================================= |
424 | //function : ModifyTrimmed3dMode |
425 | //purpose : |
426 | //======================================================================= |
427 | |
428 | inline Standard_Boolean& ShapeAnalysis_ShapeContents::ModifyTrimmed3dMode() |
429 | { |
430 | return myTrimmed3dMode; |
431 | } |
432 | |
433 | //======================================================================= |
434 | //function : ModifyOffsetCurveMode |
435 | //purpose : |
436 | //======================================================================= |
437 | |
438 | inline Standard_Boolean& ShapeAnalysis_ShapeContents::ModifyOffsetCurveMode() |
439 | { |
440 | return myOffsetCurveMode; |
441 | } |
442 | |
443 | //======================================================================= |
444 | //function : ModifyTrimmed2dMode |
445 | //purpose : |
446 | //======================================================================= |
447 | |
448 | inline Standard_Boolean& ShapeAnalysis_ShapeContents::ModifyTrimmed2dMode() |
449 | { |
450 | return myTrimmed2dMode; |
451 | } |