0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / Adaptor3d / Adaptor3d_Surface.cxx
1 // Created on: 1993-07-01
2 // Created by: Bruno DUMORTIER
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
18 #include <Adaptor3d_HCurve.hxx>
19 #include <Adaptor3d_HSurface.hxx>
20 #include <Adaptor3d_Surface.hxx>
21 #include <Geom_BezierSurface.hxx>
22 #include <Geom_BSplineSurface.hxx>
23 #include <gp_Ax1.hxx>
24 #include <gp_Cone.hxx>
25 #include <gp_Cylinder.hxx>
26 #include <gp_Dir.hxx>
27 #include <gp_Pln.hxx>
28 #include <gp_Pnt.hxx>
29 #include <gp_Sphere.hxx>
30 #include <gp_Torus.hxx>
31 #include <gp_Vec.hxx>
32 #include <Standard_DomainError.hxx>
33 #include <Standard_NoSuchObject.hxx>
34 #include <Standard_NotImplemented.hxx>
35 #include <Standard_OutOfRange.hxx>
36
37 //=======================================================================
38 //function : ~Adaptor3d_Surface
39 //purpose  : Destructor
40 //=======================================================================
41 Adaptor3d_Surface::~Adaptor3d_Surface()
42 {
43 }
44
45 //=======================================================================
46 //function : FirstUParameter
47 //purpose  : 
48 //=======================================================================
49
50 Standard_Real Adaptor3d_Surface::FirstUParameter() const 
51 {
52   Standard_NotImplemented::Raise("Adaptor3d_Surface::FirstUParameter");
53   return 0.;
54 }
55
56
57 //=======================================================================
58 //function : LastUParameter
59 //purpose  : 
60 //=======================================================================
61
62 Standard_Real Adaptor3d_Surface::LastUParameter() const 
63 {
64   Standard_NotImplemented::Raise("Adaptor3d_Surface::LastUParameter");
65   return 0.;
66 }
67
68
69 //=======================================================================
70 //function : FirstVParameter
71 //purpose  : 
72 //=======================================================================
73
74 Standard_Real Adaptor3d_Surface::FirstVParameter() const 
75 {
76   Standard_NotImplemented::Raise("Adaptor3d_Surface::FirstVParameter");
77   return 0.;
78 }
79
80
81 //=======================================================================
82 //function : LastVParameter
83 //purpose  : 
84 //=======================================================================
85
86 Standard_Real Adaptor3d_Surface::LastVParameter() const 
87 {
88   Standard_NotImplemented::Raise("Adaptor3d_Surface::LastVParameter");
89   return 0.;
90 }
91
92
93 //=======================================================================
94 //function : UContinuity
95 //purpose  : 
96 //=======================================================================
97
98 GeomAbs_Shape Adaptor3d_Surface::UContinuity() const 
99 {
100   Standard_NotImplemented::Raise("Adaptor3d_Surface::UContinuity");
101   return GeomAbs_C0;
102 }
103
104
105 //=======================================================================
106 //function : VContinuity
107 //purpose  : 
108 //=======================================================================
109
110 GeomAbs_Shape Adaptor3d_Surface::VContinuity() const 
111 {
112   Standard_NotImplemented::Raise("Adaptor3d_Surface::VContinuity");
113   return GeomAbs_C0;
114 }
115
116
117 //=======================================================================
118 //function : NbUIntervals
119 //purpose  : 
120 //=======================================================================
121
122 //Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape S) const 
123 Standard_Integer Adaptor3d_Surface::NbUIntervals(const GeomAbs_Shape ) const 
124 {
125   Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUIntervals");
126   return 0;
127 }
128
129
130 //=======================================================================
131 //function : NbVIntervals
132 //purpose  : 
133 //=======================================================================
134
135 //Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape S) const 
136 Standard_Integer Adaptor3d_Surface::NbVIntervals(const GeomAbs_Shape ) const 
137 {
138   Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVIntervals");
139   return 0;
140 }
141
142
143 //=======================================================================
144 //function : UIntervals
145 //purpose  : 
146 //=======================================================================
147
148 //void Adaptor3d_Surface::UIntervals(TColStd_Array1OfReal& T, const GeomAbs_Shape S) const 
149 void Adaptor3d_Surface::UIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const 
150 {
151   Standard_NotImplemented::Raise("Adaptor3d_Surface::UIntervals");
152 }
153
154
155 //=======================================================================
156 //function : VIntervals
157 //purpose  : 
158 //=======================================================================
159
160 //void Adaptor3d_Surface::VIntervals(TColStd_Array1OfReal& T, const GeomAbs_Shape S) const 
161 void Adaptor3d_Surface::VIntervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const 
162 {
163   Standard_NotImplemented::Raise("Adaptor3d_Surface::VIntervals");
164 }
165
166
167 //=======================================================================
168 //function : UTrim
169 //purpose  : 
170 //=======================================================================
171
172 //Handle(Adaptor3d_HSurface) Adaptor3d_Surface::UTrim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const 
173 Handle(Adaptor3d_HSurface) Adaptor3d_Surface::UTrim(const Standard_Real , const Standard_Real , const Standard_Real ) const 
174 {
175   Standard_NotImplemented::Raise("Adaptor3d_Surface::UTrim");
176   return Handle(Adaptor3d_HSurface)();
177 }
178
179
180 //=======================================================================
181 //function : VTrim
182 //purpose  : 
183 //=======================================================================
184
185 //Handle(Adaptor3d_HSurface) Adaptor3d_Surface::VTrim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const 
186 Handle(Adaptor3d_HSurface) Adaptor3d_Surface::VTrim(const Standard_Real , const Standard_Real , const Standard_Real ) const 
187 {
188   Standard_NotImplemented::Raise("Adaptor3d_Surface::VTrim");
189   return Handle(Adaptor3d_HSurface)();
190 }
191
192
193 //=======================================================================
194 //function : IsUClosed
195 //purpose  : 
196 //=======================================================================
197
198 Standard_Boolean Adaptor3d_Surface::IsUClosed() const 
199 {
200   Standard_NotImplemented::Raise("Adaptor3d_Surface::IsUClosed");
201   return 0;
202 }
203
204
205 //=======================================================================
206 //function : IsVClosed
207 //purpose  : 
208 //=======================================================================
209
210 Standard_Boolean Adaptor3d_Surface::IsVClosed() const 
211 {
212   Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVClosed");
213   return 0;
214 }
215
216
217 //=======================================================================
218 //function : IsUPeriodic
219 //purpose  : 
220 //=======================================================================
221
222 Standard_Boolean Adaptor3d_Surface::IsUPeriodic() const 
223 {
224   Standard_NotImplemented::Raise("Adaptor3d_Surface::IsUPeriodic");
225   return 0;
226 }
227
228
229 //=======================================================================
230 //function : UPeriod
231 //purpose  : 
232 //=======================================================================
233
234 Standard_Real Adaptor3d_Surface::UPeriod() const 
235 {
236   Standard_NotImplemented::Raise("Adaptor3d_Surface::UPeriod");
237   return 0.;
238 }
239
240
241 //=======================================================================
242 //function : IsVPeriodic
243 //purpose  : 
244 //=======================================================================
245
246 Standard_Boolean Adaptor3d_Surface::IsVPeriodic() const 
247 {
248   Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVPeriodic");
249   return 0;
250 }
251
252
253 //=======================================================================
254 //function : VPeriod
255 //purpose  : 
256 //=======================================================================
257
258 Standard_Real Adaptor3d_Surface::VPeriod() const 
259 {
260   Standard_NotImplemented::Raise("Adaptor3d_Surface::VPeriod");
261   return 0.;
262 }
263
264
265 //=======================================================================
266 //function : Value
267 //purpose  : 
268 //=======================================================================
269
270 //gp_Pnt Adaptor3d_Surface::Value(const Standard_Real U, const Standard_Real V) const 
271 gp_Pnt Adaptor3d_Surface::Value(const Standard_Real , const Standard_Real ) const 
272 {
273   Standard_NotImplemented::Raise("Adaptor3d_Surface::Value");
274   return gp_Pnt();
275 }
276
277
278 //=======================================================================
279 //function : D0
280 //purpose  : 
281 //=======================================================================
282
283 //void Adaptor3d_Surface::D0(const Standard_Real U, const Standard_Real V, gp_Pnt& P) const 
284 void Adaptor3d_Surface::D0(const Standard_Real , const Standard_Real , gp_Pnt& ) const 
285 {
286   Standard_NotImplemented::Raise("Adaptor3d_Surface::D0");
287 }
288
289
290 //=======================================================================
291 //function : D1
292 //purpose  : 
293 //=======================================================================
294
295 //void Adaptor3d_Surface::D1(const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V) const 
296 void Adaptor3d_Surface::D1(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& ) const 
297 {
298   Standard_NotImplemented::Raise("Adaptor3d_Surface::D1");
299 }
300
301
302 //=======================================================================
303 //function : D2
304 //purpose  : 
305 //=======================================================================
306
307 //void Adaptor3d_Surface::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 
308 void Adaptor3d_Surface::D2(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& ) const 
309 {
310   Standard_NotImplemented::Raise("Adaptor3d_Surface::D2");
311 }
312
313
314 //=======================================================================
315 //function : D3
316 //purpose  : 
317 //=======================================================================
318
319 //void Adaptor3d_Surface::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 
320 void Adaptor3d_Surface::D3(const Standard_Real , const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& , gp_Vec& ) const 
321 {
322   Standard_NotImplemented::Raise("Adaptor3d_Surface::D3");
323 }
324
325
326 //=======================================================================
327 //function : DN
328 //purpose  : 
329 //=======================================================================
330
331 //gp_Vec Adaptor3d_Surface::DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv) const 
332 gp_Vec Adaptor3d_Surface::DN(const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Integer ) const 
333 {
334   Standard_NotImplemented::Raise("Adaptor3d_Surface::DN");
335   return gp_Vec();
336 }
337
338
339 //=======================================================================
340 //function : UResolution
341 //purpose  : 
342 //=======================================================================
343
344 //Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real R3d) const 
345 Standard_Real Adaptor3d_Surface::UResolution(const Standard_Real ) const 
346 {
347   Standard_NotImplemented::Raise("Adaptor3d_Surface::UResolution");
348   return 0.;
349 }
350
351
352 //=======================================================================
353 //function : VResolution
354 //purpose  : 
355 //=======================================================================
356
357 //Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real R3d) const 
358 Standard_Real Adaptor3d_Surface::VResolution(const Standard_Real ) const 
359 {
360   Standard_NotImplemented::Raise("Adaptor3d_Surface::VResolution");
361   return 0.;
362 }
363
364
365 //=======================================================================
366 //function : GetType
367 //purpose  : 
368 //=======================================================================
369
370 GeomAbs_SurfaceType Adaptor3d_Surface::GetType() const 
371 {
372   Standard_NotImplemented::Raise("Adaptor3d_Surface::GetType");
373   return GeomAbs_OtherSurface;
374 }
375
376
377 //=======================================================================
378 //function : Plane
379 //purpose  : 
380 //=======================================================================
381
382 gp_Pln Adaptor3d_Surface::Plane() const 
383 {
384   Standard_NotImplemented::Raise("Adaptor3d_Surface::Plane");
385   return gp_Pln();
386 }
387
388
389 //=======================================================================
390 //function : Cylinder
391 //purpose  : 
392 //=======================================================================
393
394 gp_Cylinder Adaptor3d_Surface::Cylinder() const 
395 {
396   Standard_NotImplemented::Raise("Adaptor3d_Surface::Cylinder");
397   return gp_Cylinder();
398 }
399
400
401 //=======================================================================
402 //function : Cone
403 //purpose  : 
404 //=======================================================================
405
406 gp_Cone Adaptor3d_Surface::Cone() const 
407 {
408   Standard_NotImplemented::Raise("Adaptor3d_Surface::Cone");
409   return gp_Cone();
410 }
411
412
413 //=======================================================================
414 //function : Sphere
415 //purpose  : 
416 //=======================================================================
417
418 gp_Sphere Adaptor3d_Surface::Sphere() const 
419 {
420   Standard_NotImplemented::Raise("Adaptor3d_Surface::Sphere");
421   return gp_Sphere();
422 }
423
424
425 //=======================================================================
426 //function : Torus
427 //purpose  : 
428 //=======================================================================
429
430 gp_Torus Adaptor3d_Surface::Torus() const 
431 {
432   Standard_NotImplemented::Raise("Adaptor3d_Surface::Torus");
433   return gp_Torus();
434 }
435
436
437 //=======================================================================
438 //function : UDegree
439 //purpose  : 
440 //=======================================================================
441
442 Standard_Integer Adaptor3d_Surface::UDegree() const 
443 {
444   Standard_NotImplemented::Raise("Adaptor3d_Surface::UDegree");
445   return 0;
446 }
447
448
449 //=======================================================================
450 //function : NbUPoles
451 //purpose  : 
452 //=======================================================================
453
454 Standard_Integer Adaptor3d_Surface::NbUPoles() const 
455 {
456   Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUPoles");
457   return 0;
458 }
459
460
461 //=======================================================================
462 //function : VDegree
463 //purpose  : 
464 //=======================================================================
465
466 Standard_Integer Adaptor3d_Surface::VDegree() const 
467 {
468   Standard_NotImplemented::Raise("Adaptor3d_Surface::VDegree");
469   return 0;
470 }
471
472
473 //=======================================================================
474 //function : NbVPoles
475 //purpose  : 
476 //=======================================================================
477
478 Standard_Integer Adaptor3d_Surface::NbVPoles() const 
479 {
480   Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVPoles");
481   return 0;
482 }
483
484
485 //=======================================================================
486 //function : NbUKnots
487 //purpose  : 
488 //=======================================================================
489
490 Standard_Integer Adaptor3d_Surface::NbUKnots() const 
491 {
492   Standard_NotImplemented::Raise("Adaptor3d_Surface::NbUKnots");
493   return 0;
494 }
495
496
497 //=======================================================================
498 //function : NbVKnots
499 //purpose  : 
500 //=======================================================================
501
502 Standard_Integer Adaptor3d_Surface::NbVKnots() const 
503 {
504   Standard_NotImplemented::Raise("Adaptor3d_Surface::NbVKnots");
505   return 0;
506 }
507
508
509 //=======================================================================
510 //function : IsURational
511 //purpose  : 
512 //=======================================================================
513
514 Standard_Boolean Adaptor3d_Surface::IsURational() const 
515 {
516   Standard_NotImplemented::Raise("Adaptor3d_Surface::IsURational");
517   return 0;
518 }
519
520
521 //=======================================================================
522 //function : IsVRational
523 //purpose  : 
524 //=======================================================================
525
526 Standard_Boolean Adaptor3d_Surface::IsVRational() const 
527 {
528   Standard_NotImplemented::Raise("Adaptor3d_Surface::IsVRational");
529   return 0;
530 }
531
532
533 //=======================================================================
534 //function : Bezier
535 //purpose  : 
536 //=======================================================================
537
538 Handle(Geom_BezierSurface) Adaptor3d_Surface::Bezier() const 
539 {
540   Standard_NotImplemented::Raise("Adaptor3d_Surface::Bezier");
541   return Handle(Geom_BezierSurface)();
542 }
543
544
545 //=======================================================================
546 //function : BSpline
547 //purpose  : 
548 //=======================================================================
549
550 Handle(Geom_BSplineSurface) Adaptor3d_Surface::BSpline() const 
551 {
552   Standard_NotImplemented::Raise("Adaptor3d_Surface::BSpline");
553   return Handle(Geom_BSplineSurface)();
554 }
555
556
557 //=======================================================================
558 //function : AxeOfRevolution
559 //purpose  : 
560 //=======================================================================
561
562 gp_Ax1 Adaptor3d_Surface::AxeOfRevolution() const 
563 {
564   Standard_NotImplemented::Raise("Adaptor3d_Surface::AxeOfRevolution");
565   return gp_Ax1();
566 }
567
568
569 //=======================================================================
570 //function : Direction
571 //purpose  : 
572 //=======================================================================
573
574 gp_Dir Adaptor3d_Surface::Direction() const 
575 {
576   Standard_NotImplemented::Raise("Adaptor3d_Surface::Direction");
577   return gp_Dir();
578 }
579
580
581 //=======================================================================
582 //function : BasisCurve
583 //purpose  : 
584 //=======================================================================
585
586 Handle(Adaptor3d_HCurve) Adaptor3d_Surface::BasisCurve() const 
587 {
588   Standard_NotImplemented::Raise("Adaptor3d_Surface::BasisCurve");
589   return Handle(Adaptor3d_HCurve)();
590 }
591
592
593 //=======================================================================
594 //function : BasisSurface
595 //purpose  : 
596 //=======================================================================
597
598 Handle(Adaptor3d_HSurface) Adaptor3d_Surface::BasisSurface() const 
599 {
600   Standard_NotImplemented::Raise("Adaptor3d_Surface::BasisSurface");
601   return Handle(Adaptor3d_HSurface)();
602 }
603
604
605 //=======================================================================
606 //function : OffsetValue
607 //purpose  : 
608 //=======================================================================
609
610 Standard_Real Adaptor3d_Surface::OffsetValue() const 
611 {
612   Standard_NotImplemented::Raise("Adaptor3d_Surface::OffsetValue");
613   return 0.;
614 }