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