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