0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / Adaptor3d / Adaptor3d_Curve.cxx
CommitLineData
b311480e 1// Created on: 1993-07-01
2// Created by: Bruno DUMORTIER
3// Copyright (c) 1993-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
42cf5bc1 17
18#include <Adaptor3d_Curve.hxx>
19#include <Adaptor3d_HCurve.hxx>
20#include <Geom_BezierCurve.hxx>
21#include <Geom_BSplineCurve.hxx>
22#include <gp_Circ.hxx>
23#include <gp_Elips.hxx>
24#include <gp_Hypr.hxx>
25#include <gp_Lin.hxx>
26#include <gp_Parab.hxx>
27#include <gp_Pnt.hxx>
28#include <gp_Vec.hxx>
29#include <Standard_DomainError.hxx>
30#include <Standard_NoSuchObject.hxx>
7fd59977 31#include <Standard_NotImplemented.hxx>
42cf5bc1 32#include <Standard_OutOfRange.hxx>
7fd59977 33
6da30ff1 34//=======================================================================
35//function : ~Adaptor3d_Curve
36//purpose : Destructor
37//=======================================================================
6da30ff1 38Adaptor3d_Curve::~Adaptor3d_Curve()
39{
40}
7fd59977 41
42//=======================================================================
43//function : FirstParameter
44//purpose :
45//=======================================================================
46
47Standard_Real Adaptor3d_Curve::FirstParameter() const
48{
49 Standard_NotImplemented::Raise("Adaptor3d_Curve::FirstParameter");
50 return 0.;
51}
52
53
54//=======================================================================
55//function : LastParameter
56//purpose :
57//=======================================================================
58
59Standard_Real Adaptor3d_Curve::LastParameter() const
60{
61 Standard_NotImplemented::Raise("Adaptor3d_Curve::LastParameter");
62 return 0.;
63}
64
65
66//=======================================================================
67//function : Continuity
68//purpose :
69//=======================================================================
70
71GeomAbs_Shape Adaptor3d_Curve::Continuity() const
72{
73 Standard_NotImplemented::Raise("Adaptor3d_Curve::Continuity");
74 return GeomAbs_C0;
75}
76
77
78//=======================================================================
79//function : NbIntervals
80//purpose :
81//=======================================================================
82
31b1749c 83Standard_Integer Adaptor3d_Curve::NbIntervals(const GeomAbs_Shape ) const
7fd59977 84{
85 Standard_NotImplemented::Raise("Adaptor3d_Curve::NbIntervals");
86 return 0;
87}
88
89
90//=======================================================================
91//function : Intervals
92//purpose :
93//=======================================================================
94
31b1749c 95void Adaptor3d_Curve::Intervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const
7fd59977 96{
97 Standard_NotImplemented::Raise("Adaptor3d_Curve::Intervals");
98}
99
100
101//=======================================================================
102//function : Trim
103//purpose :
104//=======================================================================
105
106//Handle(Adaptor3d_HCurve) Adaptor3d_Curve::Trim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const
107Handle(Adaptor3d_HCurve) Adaptor3d_Curve::Trim(const Standard_Real , const Standard_Real , const Standard_Real ) const
108{
109 Standard_NotImplemented::Raise("Adaptor3d_Curve::Trim");
110 return Handle(Adaptor3d_HCurve)();
111}
112
113
114//=======================================================================
115//function : IsClosed
116//purpose :
117//=======================================================================
118
119Standard_Boolean Adaptor3d_Curve::IsClosed() const
120{
121 Standard_NotImplemented::Raise("Adaptor3d_Curve::IsClosed");
122 return 0;
123}
124
125
126//=======================================================================
127//function : IsPeriodic
128//purpose :
129//=======================================================================
130
131Standard_Boolean Adaptor3d_Curve::IsPeriodic() const
132{
133 Standard_NotImplemented::Raise("Adaptor3d_Curve::IsPeriodic");
134 return 0;
135}
136
137
138//=======================================================================
139//function : Period
140//purpose :
141//=======================================================================
142
143Standard_Real Adaptor3d_Curve::Period() const
144{
145 Standard_NotImplemented::Raise("Adaptor3d_Curve::Period");
146 return 0.;
147}
148
149
150//=======================================================================
151//function : Value
152//purpose :
153//=======================================================================
154
155//gp_Pnt Adaptor3d_Curve::Value(const Standard_Real U) const
156gp_Pnt Adaptor3d_Curve::Value(const Standard_Real ) const
157{
158 Standard_NotImplemented::Raise("Adaptor3d_Curve::Value");
159 return gp_Pnt();
160}
161
162
163//=======================================================================
164//function : D0
165//purpose :
166//=======================================================================
167
168//void Adaptor3d_Curve::D0(const Standard_Real U, gp_Pnt& P) const
169void Adaptor3d_Curve::D0(const Standard_Real , gp_Pnt& ) const
170{
171 Standard_NotImplemented::Raise("Adaptor3d_Curve::D0");
172}
173
174
175//=======================================================================
176//function : D1
177//purpose :
178//=======================================================================
179
180//void Adaptor3d_Curve::D1(const Standard_Real U, gp_Pnt& P, gp_Vec& V) const
181void Adaptor3d_Curve::D1(const Standard_Real , gp_Pnt& , gp_Vec& ) const
182{
183 Standard_NotImplemented::Raise("Adaptor3d_Curve::D1");
184}
185
186
187//=======================================================================
188//function : D2
189//purpose :
190//=======================================================================
191
192//void Adaptor3d_Curve::D2(const Standard_Real U, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2) const
193void Adaptor3d_Curve::D2(const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& ) const
194{
195 Standard_NotImplemented::Raise("Adaptor3d_Curve::D2");
196}
197
198
199//=======================================================================
200//function : D3
201//purpose :
202//=======================================================================
203
204//void Adaptor3d_Curve::D3(const Standard_Real U, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2, gp_Vec& V3) const
205void Adaptor3d_Curve::D3(const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_Vec& ) const
206{
207 Standard_NotImplemented::Raise("Adaptor3d_Curve::D3");
208}
209
210
211//=======================================================================
212//function : DN
213//purpose :
214//=======================================================================
215
216//gp_Vec Adaptor3d_Curve::DN(const Standard_Real U, const Standard_Integer N) const
217gp_Vec Adaptor3d_Curve::DN(const Standard_Real , const Standard_Integer ) const
218{
219 Standard_NotImplemented::Raise("Adaptor3d_Curve::DN");
220 return gp_Vec();
221}
222
223
224//=======================================================================
225//function : Resolution
226//purpose :
227//=======================================================================
228
229//Standard_Real Adaptor3d_Curve::Resolution(const Standard_Real R3d) const
230Standard_Real Adaptor3d_Curve::Resolution(const Standard_Real ) const
231{
232 Standard_NotImplemented::Raise("Adaptor3d_Curve::Resolution");
233 return 0.;
234}
235
236
237//=======================================================================
238//function : GetType
239//purpose :
240//=======================================================================
241
242GeomAbs_CurveType Adaptor3d_Curve::GetType() const
243{
244 Standard_NotImplemented::Raise("Adaptor3d_Curve::GetType");
245 return GeomAbs_OtherCurve;
246}
247
248
249//=======================================================================
250//function : Line
251//purpose :
252//=======================================================================
253
254gp_Lin Adaptor3d_Curve::Line() const
255{
256 Standard_NotImplemented::Raise("Adaptor3d_Curve::Line");
257 return gp_Lin();
258}
259
260
261//=======================================================================
262//function : Circle
263//purpose :
264//=======================================================================
265
266gp_Circ Adaptor3d_Curve::Circle() const
267{
268 Standard_NotImplemented::Raise("Adaptor3d_Curve::Circle");
269 return gp_Circ();
270}
271
272
273//=======================================================================
274//function : Ellipse
275//purpose :
276//=======================================================================
277
278gp_Elips Adaptor3d_Curve::Ellipse() const
279{
280 Standard_NotImplemented::Raise("Adaptor3d_Curve::Ellipse");
281 return gp_Elips();
282}
283
284
285//=======================================================================
286//function : Hyperbola
287//purpose :
288//=======================================================================
289
290gp_Hypr Adaptor3d_Curve::Hyperbola() const
291{
292 Standard_NotImplemented::Raise("Adaptor3d_Curve::Hyperbola");
293 return gp_Hypr();
294}
295
296
297//=======================================================================
298//function : Parabola
299//purpose :
300//=======================================================================
301
302gp_Parab Adaptor3d_Curve::Parabola() const
303{
304 Standard_NotImplemented::Raise("Adaptor3d_Curve::Parabola");
305 return gp_Parab();
306}
307
308
309//=======================================================================
310//function : Degree
311//purpose :
312//=======================================================================
313
314Standard_Integer Adaptor3d_Curve::Degree() const
315{
316 Standard_NotImplemented::Raise("Adaptor3d_Curve::Degree");
317 return 0;
318}
319
320
321//=======================================================================
322//function : IsRational
323//purpose :
324//=======================================================================
325
326Standard_Boolean Adaptor3d_Curve::IsRational() const
327{
328 Standard_NotImplemented::Raise("Adaptor3d_Curve::IsRational");
329 return 0;
330}
331
332
333//=======================================================================
334//function : NbPoles
335//purpose :
336//=======================================================================
337
338Standard_Integer Adaptor3d_Curve::NbPoles() const
339{
340 Standard_NotImplemented::Raise("Adaptor3d_Curve::NbPoles");
341 return 0;
342}
343
344
345//=======================================================================
346//function : NbKnots
347//purpose :
348//=======================================================================
349
350Standard_Integer Adaptor3d_Curve::NbKnots() const
351{
352 Standard_NotImplemented::Raise("Adaptor3d_Curve::NbKnots");
353 return 0;
354}
355
356
357//=======================================================================
358//function : Bezier
359//purpose :
360//=======================================================================
361
362Handle(Geom_BezierCurve) Adaptor3d_Curve::Bezier() const
363{
364 Standard_NotImplemented::Raise("Adaptor3d_Curve::Bezier");
365 return Handle(Geom_BezierCurve)();
366}
367
368
369//=======================================================================
370//function : BSpline
371//purpose :
372//=======================================================================
373
374Handle(Geom_BSplineCurve) Adaptor3d_Curve::BSpline() const
375{
376 Standard_NotImplemented::Raise("Adaptor3d_Curve::BSpline");
377 return Handle(Geom_BSplineCurve)();
378}