7fd59977 |
1 | |
2 | #include <Adaptor3d_Surface.hxx> |
3 | |
4 | //======================================================================= |
5 | //function : FirstUParameter |
6 | //purpose : |
7 | //======================================================================= |
8 | |
9 | inline Standard_Real Adaptor3d_HSurface::FirstUParameter() const |
10 | { |
11 | return Surface().FirstUParameter(); |
12 | } |
13 | |
14 | //======================================================================= |
15 | //function : LastUParameter |
16 | //purpose : |
17 | //======================================================================= |
18 | |
19 | inline Standard_Real Adaptor3d_HSurface::LastUParameter() const |
20 | { |
21 | return Surface().LastUParameter(); |
22 | } |
23 | |
24 | //======================================================================= |
25 | //function : FirstVParameter |
26 | //purpose : |
27 | //======================================================================= |
28 | |
29 | inline Standard_Real Adaptor3d_HSurface::FirstVParameter() const |
30 | { |
31 | return Surface().FirstVParameter(); |
32 | } |
33 | |
34 | //======================================================================= |
35 | //function : LastVParameter |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | inline Standard_Real Adaptor3d_HSurface::LastVParameter() const |
40 | { |
41 | return Surface().LastVParameter(); |
42 | } |
43 | |
44 | //======================================================================= |
45 | //function : UContinuity |
46 | //purpose : |
47 | //======================================================================= |
48 | |
49 | inline GeomAbs_Shape Adaptor3d_HSurface::UContinuity() const |
50 | { |
51 | return Surface().UContinuity(); |
52 | } |
53 | |
54 | //======================================================================= |
55 | //function : VContinuity |
56 | //purpose : |
57 | //======================================================================= |
58 | |
59 | inline GeomAbs_Shape Adaptor3d_HSurface::VContinuity() const |
60 | { |
61 | return Surface().VContinuity(); |
62 | } |
63 | |
64 | //======================================================================= |
65 | //function : NbUIntervals |
66 | //purpose : |
67 | //======================================================================= |
68 | |
69 | inline Standard_Integer Adaptor3d_HSurface::NbUIntervals(const GeomAbs_Shape S) const |
70 | { |
71 | return Surface().NbUIntervals(S); |
72 | } |
73 | |
74 | //======================================================================= |
75 | //function : NbVIntervals |
76 | //purpose : |
77 | //======================================================================= |
78 | |
79 | inline Standard_Integer Adaptor3d_HSurface::NbVIntervals(const GeomAbs_Shape S) const |
80 | { |
81 | return Surface().NbVIntervals(S); |
82 | } |
83 | |
84 | //======================================================================= |
85 | //function : UInterval |
86 | //purpose : |
87 | //======================================================================= |
88 | |
89 | inline void Adaptor3d_HSurface::UIntervals(TColStd_Array1OfReal& T, |
90 | const GeomAbs_Shape S) const |
91 | { |
92 | Surface().UIntervals(T,S); |
93 | } |
94 | |
95 | //======================================================================= |
96 | //function : VInterval |
97 | //purpose : |
98 | //======================================================================= |
99 | |
100 | inline void Adaptor3d_HSurface::VIntervals(TColStd_Array1OfReal& T, |
101 | const GeomAbs_Shape S) const |
102 | { |
103 | Surface().VIntervals(T, S); |
104 | } |
105 | |
106 | //======================================================================= |
107 | //function : inline |
108 | //purpose : |
109 | //======================================================================= |
110 | |
111 | inline Handle(Adaptor3d_HSurface) Adaptor3d_HSurface::UTrim |
112 | (const Standard_Real First, |
113 | const Standard_Real Last, |
114 | const Standard_Real Tol) const |
115 | { |
116 | return Surface().UTrim(First,Last,Tol); |
117 | } |
118 | |
119 | |
120 | //======================================================================= |
121 | //function : inline |
122 | //purpose : |
123 | //======================================================================= |
124 | |
125 | inline Handle(Adaptor3d_HSurface) Adaptor3d_HSurface::VTrim |
126 | (const Standard_Real First, |
127 | const Standard_Real Last, |
128 | const Standard_Real Tol) const |
129 | { |
130 | return Surface().VTrim(First,Last,Tol); |
131 | } |
132 | |
133 | |
134 | //======================================================================= |
135 | //function : IsUClosed |
136 | //purpose : |
137 | //======================================================================= |
138 | |
139 | inline Standard_Boolean Adaptor3d_HSurface::IsUClosed() const |
140 | { |
141 | return Surface().IsUClosed(); |
142 | } |
143 | |
144 | //======================================================================= |
145 | //function : IsVClosed |
146 | //purpose : |
147 | //======================================================================= |
148 | |
149 | inline Standard_Boolean Adaptor3d_HSurface::IsVClosed() const |
150 | { |
151 | return Surface().IsVClosed(); |
152 | } |
153 | |
154 | //======================================================================= |
155 | //function : IsUPeriodic |
156 | //purpose : |
157 | //======================================================================= |
158 | |
159 | inline Standard_Boolean Adaptor3d_HSurface::IsUPeriodic() const |
160 | { |
161 | return Surface().IsUPeriodic(); |
162 | } |
163 | |
164 | //======================================================================= |
165 | //function : UPeriod |
166 | //purpose : |
167 | //======================================================================= |
168 | |
169 | inline Standard_Real Adaptor3d_HSurface::UPeriod() const |
170 | { |
171 | return Surface().UPeriod(); |
172 | } |
173 | |
174 | //======================================================================= |
175 | //function : IsVPeriodic |
176 | //purpose : |
177 | //======================================================================= |
178 | |
179 | inline Standard_Boolean Adaptor3d_HSurface::IsVPeriodic() const |
180 | { |
181 | return Surface().IsVPeriodic(); |
182 | } |
183 | |
184 | //======================================================================= |
185 | //function : VPeriod |
186 | //purpose : |
187 | //======================================================================= |
188 | |
189 | inline Standard_Real Adaptor3d_HSurface::VPeriod() const |
190 | { |
191 | return Surface().VPeriod(); |
192 | } |
193 | |
194 | //======================================================================= |
195 | //function : Value |
196 | //purpose : |
197 | //======================================================================= |
198 | |
199 | inline gp_Pnt Adaptor3d_HSurface::Value(const Standard_Real U, const Standard_Real V) const |
200 | { |
201 | return Surface().Value(U,V); |
202 | } |
203 | |
204 | //======================================================================= |
205 | //function : D0 |
206 | //purpose : |
207 | //======================================================================= |
208 | |
209 | inline void Adaptor3d_HSurface::D0(const Standard_Real U, const Standard_Real V, gp_Pnt& P) const |
210 | { |
211 | Surface().D0(U,V,P); |
212 | } |
213 | |
214 | //======================================================================= |
215 | //function : D1 |
216 | //purpose : |
217 | //======================================================================= |
218 | |
219 | inline void Adaptor3d_HSurface::D1(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const |
220 | { |
221 | Surface().D1(U,V,P,D1U,D1V); |
222 | } |
223 | |
224 | //======================================================================= |
225 | //function : D2 |
226 | //purpose : |
227 | //======================================================================= |
228 | |
229 | inline void Adaptor3d_HSurface::D2(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV) const |
230 | { |
231 | Surface().D2(U,V,P,D1U,D1V,D2U,D2V,D2UV); |
232 | } |
233 | |
234 | //======================================================================= |
235 | //function : D3 |
236 | //purpose : |
237 | //======================================================================= |
238 | |
239 | inline void Adaptor3d_HSurface::D3(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV, gp_Vec& D3U, gp_Vec& D3V, gp_Vec& D3UUV, gp_Vec& D3UVV) const |
240 | { |
241 | Surface().D3(U,V,P,D1U,D1V,D2U,D2V,D2UV,D3U,D3V,D3UUV,D3UVV); |
242 | } |
243 | |
244 | //======================================================================= |
245 | //function : DN |
246 | //purpose : |
247 | //======================================================================= |
248 | |
249 | inline gp_Vec Adaptor3d_HSurface::DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const |
250 | { |
251 | return Surface().DN(U,V,Nu,Nv); |
252 | } |
253 | |
254 | //======================================================================= |
255 | //function : UResolution |
256 | //purpose : |
257 | //======================================================================= |
258 | |
259 | inline Standard_Real Adaptor3d_HSurface::UResolution(const Standard_Real R3d) const |
260 | { |
261 | return Surface().UResolution(R3d); |
262 | } |
263 | |
264 | //======================================================================= |
265 | //function : VResolution |
266 | //purpose : |
267 | //======================================================================= |
268 | |
269 | inline Standard_Real Adaptor3d_HSurface::VResolution(const Standard_Real R3d) const |
270 | { |
271 | return Surface().VResolution(R3d); |
272 | } |
273 | |
274 | //======================================================================= |
275 | //function : GetType |
276 | //purpose : |
277 | //======================================================================= |
278 | |
279 | inline GeomAbs_SurfaceType Adaptor3d_HSurface::GetType() const |
280 | { |
281 | return Surface().GetType(); |
282 | } |
283 | |
284 | //======================================================================= |
285 | //function : Plane |
286 | //purpose : |
287 | //======================================================================= |
288 | |
289 | inline gp_Pln Adaptor3d_HSurface::Plane() const |
290 | { |
291 | return Surface().Plane(); |
292 | } |
293 | |
294 | //======================================================================= |
295 | //function : Cylinder |
296 | //purpose : |
297 | //======================================================================= |
298 | |
299 | inline gp_Cylinder Adaptor3d_HSurface::Cylinder() const |
300 | { |
301 | return Surface().Cylinder(); |
302 | } |
303 | |
304 | //======================================================================= |
305 | //function : Cone |
306 | //purpose : |
307 | //======================================================================= |
308 | |
309 | inline gp_Cone Adaptor3d_HSurface::Cone() const |
310 | { |
311 | return Surface().Cone(); |
312 | } |
313 | |
314 | //======================================================================= |
315 | //function : Sphere |
316 | //purpose : |
317 | //======================================================================= |
318 | |
319 | inline gp_Sphere Adaptor3d_HSurface::Sphere() const |
320 | { |
321 | return Surface().Sphere(); |
322 | } |
323 | |
324 | //======================================================================= |
325 | //function : Torus |
326 | //purpose : |
327 | //======================================================================= |
328 | |
329 | inline gp_Torus Adaptor3d_HSurface::Torus() const |
330 | { |
331 | return Surface().Torus(); |
332 | } |
333 | //======================================================================= |
334 | //function : UDegree |
335 | //purpose : |
336 | //======================================================================= |
337 | |
338 | inline Standard_Integer Adaptor3d_HSurface::UDegree() const |
339 | { |
340 | return Surface().UDegree(); |
341 | } |
342 | //======================================================================= |
343 | //function : NbUPoles |
344 | //purpose : |
345 | //======================================================================= |
346 | |
347 | inline Standard_Integer Adaptor3d_HSurface::NbUPoles() const |
348 | { |
349 | return Surface().NbUPoles(); |
350 | } |
351 | //======================================================================= |
352 | //function : VDegree |
353 | //purpose : |
354 | //======================================================================= |
355 | |
356 | inline Standard_Integer Adaptor3d_HSurface::VDegree() const |
357 | { |
358 | return Surface().VDegree(); |
359 | } |
360 | //======================================================================= |
361 | //function : NbVPoles |
362 | //purpose : |
363 | //======================================================================= |
364 | |
365 | inline Standard_Integer Adaptor3d_HSurface::NbVPoles() const |
366 | { |
367 | return Surface().NbVPoles(); |
368 | } |
369 | //======================================================================= |
370 | //function : NbUKnots |
371 | //purpose : |
372 | //======================================================================= |
373 | |
374 | inline Standard_Integer Adaptor3d_HSurface::NbUKnots() const |
375 | { |
376 | return Surface().NbUKnots(); |
377 | } |
378 | //======================================================================= |
379 | //function : NbVKnots |
380 | //purpose : |
381 | //======================================================================= |
382 | |
383 | inline Standard_Integer Adaptor3d_HSurface::NbVKnots() const |
384 | { |
385 | return Surface().NbVKnots(); |
386 | } |
387 | //======================================================================= |
388 | //function : IsURational |
389 | //purpose : |
390 | //======================================================================= |
391 | |
392 | inline Standard_Boolean Adaptor3d_HSurface::IsURational() const |
393 | { |
394 | return Surface().IsURational(); |
395 | } |
396 | //======================================================================= |
397 | //function : NbVKnots |
398 | //purpose : |
399 | //======================================================================= |
400 | |
401 | inline Standard_Boolean Adaptor3d_HSurface::IsVRational() const |
402 | { |
403 | return Surface().IsVRational(); |
404 | } |
405 | //======================================================================= |
406 | //function : Bezier |
407 | //purpose : |
408 | //======================================================================= |
409 | |
410 | inline Handle(Geom_BezierSurface) Adaptor3d_HSurface::Bezier() const |
411 | { |
412 | return Surface().Bezier(); |
413 | } |
414 | |
415 | //======================================================================= |
416 | //function : BSpline |
417 | //purpose : |
418 | //======================================================================= |
419 | |
420 | inline Handle(Geom_BSplineSurface) Adaptor3d_HSurface::BSpline() const |
421 | { |
422 | return Surface().BSpline(); |
423 | } |
424 | |
425 | //======================================================================= |
426 | //function : Axis |
427 | //purpose : |
428 | //======================================================================= |
429 | |
430 | inline gp_Ax1 Adaptor3d_HSurface::AxeOfRevolution() const |
431 | { |
432 | return Surface().AxeOfRevolution(); |
433 | } |
434 | |
435 | //======================================================================= |
436 | //function : Direction |
437 | //purpose : |
438 | //======================================================================= |
439 | |
440 | inline gp_Dir Adaptor3d_HSurface::Direction() const |
441 | { |
442 | return Surface().Direction(); |
443 | } |
444 | |
445 | //======================================================================= |
446 | //function : BasisCurve |
447 | //purpose : |
448 | //======================================================================= |
449 | |
450 | inline Handle(Adaptor3d_HCurve) Adaptor3d_HSurface::BasisCurve() const |
451 | { |
452 | return Surface().BasisCurve(); |
453 | } |
454 | |
455 | //======================================================================= |
456 | //function : BasisSurface |
457 | //purpose : |
458 | //======================================================================= |
459 | |
460 | inline Handle(Adaptor3d_HSurface) Adaptor3d_HSurface::BasisSurface() const |
461 | { |
462 | return Surface().BasisSurface(); |
463 | } |
464 | |
465 | //======================================================================= |
466 | //function : OffsetValue |
467 | //purpose : |
468 | //======================================================================= |
469 | |
470 | inline Standard_Real Adaptor3d_HSurface::OffsetValue() const |
471 | { |
472 | return Surface().OffsetValue(); |
473 | } |