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