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