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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
18 #include <Adaptor2d_Curve2d.hxx>
19 #include <Adaptor2d_HCurve2d.hxx>
20 #include <Geom2d_BezierCurve.hxx>
21 #include <Geom2d_BSplineCurve.hxx>
22 #include <gp_Circ2d.hxx>
23 #include <gp_Elips2d.hxx>
24 #include <gp_Hypr2d.hxx>
25 #include <gp_Lin2d.hxx>
26 #include <gp_Parab2d.hxx>
27 #include <gp_Pnt2d.hxx>
28 #include <gp_Vec2d.hxx>
29 #include <Standard_DomainError.hxx>
30 #include <Standard_NoSuchObject.hxx>
31 #include <Standard_NotImplemented.hxx>
32 #include <Standard_OutOfRange.hxx>
34 //=======================================================================
35 //function : ~Adaptor2d_Curve2d
36 //purpose : Destructor
37 //=======================================================================
38 Adaptor2d_Curve2d::~Adaptor2d_Curve2d()
42 //=======================================================================
43 //function : FirstParameter
45 //=======================================================================
47 Standard_Real Adaptor2d_Curve2d::FirstParameter() const
49 throw Standard_NotImplemented("Adaptor2d_Curve2d::FirstParameter");
53 //=======================================================================
54 //function : LastParameter
56 //=======================================================================
58 Standard_Real Adaptor2d_Curve2d::LastParameter() const
60 throw Standard_NotImplemented("Adaptor2d_Curve2d::LastParameter");
64 //=======================================================================
65 //function : Continuity
67 //=======================================================================
69 GeomAbs_Shape Adaptor2d_Curve2d::Continuity() const
71 throw Standard_NotImplemented("Adaptor2d_Curve2d::Continuity");
75 //=======================================================================
76 //function : NbIntervals
78 //=======================================================================
80 //Standard_Integer Adaptor2d_Curve2d::NbIntervals(const GeomAbs_Shape S) const
81 Standard_Integer Adaptor2d_Curve2d::NbIntervals(const GeomAbs_Shape ) const
83 throw Standard_NotImplemented("Adaptor2d_Curve2d::NbIntervals");
87 //=======================================================================
88 //function : Intervals
90 //=======================================================================
92 //void Adaptor2d_Curve2d::Intervals(TColStd_Array1OfReal& T,
93 // const GeomAbs_Shape S) const
94 void Adaptor2d_Curve2d::Intervals(TColStd_Array1OfReal& ,
95 const GeomAbs_Shape ) const
97 throw Standard_NotImplemented("Adaptor2d_Curve2d::Intervals");
101 //=======================================================================
104 //=======================================================================
106 //Handle(Adaptor2d_HCurve2d) Adaptor2d_Curve2d::Trim(const Standard_Real First,
107 // const Standard_Real Last ,
108 // const Standard_Real Tol) const
109 Handle(Adaptor2d_HCurve2d) Adaptor2d_Curve2d::Trim(const Standard_Real ,
110 const Standard_Real ,
111 const Standard_Real ) const
113 throw Standard_NotImplemented("Adaptor2d_Curve2d::Trim");
116 //=======================================================================
117 //function : IsClosed
119 //=======================================================================
121 Standard_Boolean Adaptor2d_Curve2d::IsClosed() const
123 throw Standard_NotImplemented("Adaptor2d_Curve2d::IsClosed");
127 //=======================================================================
128 //function : IsPeriodic
130 //=======================================================================
132 Standard_Boolean Adaptor2d_Curve2d::IsPeriodic() const
134 throw Standard_NotImplemented("Adaptor2d_Curve2d::IsPeriodic");
138 //=======================================================================
141 //=======================================================================
143 Standard_Real Adaptor2d_Curve2d::Period() const
145 throw Standard_NotImplemented("Adaptor2d_Curve2d::Period");
149 //=======================================================================
152 //=======================================================================
154 //gp_Pnt2d Adaptor2d_Curve2d::Value(const Standard_Real U) const
155 gp_Pnt2d Adaptor2d_Curve2d::Value(const Standard_Real ) const
157 throw Standard_NotImplemented("Adaptor2d_Curve2d::Value");
161 //=======================================================================
164 //=======================================================================
166 //void Adaptor2d_Curve2d::D0(const Standard_Real U, gp_Pnt2d& P) const
167 void Adaptor2d_Curve2d::D0(const Standard_Real , gp_Pnt2d& ) const
169 throw Standard_NotImplemented("Adaptor2d_Curve2d::D0");
173 //=======================================================================
176 //=======================================================================
178 //void Adaptor2d_Curve2d::D1(const Standard_Real U,
179 // gp_Pnt2d& P, gp_Vec2d& V) const
180 void Adaptor2d_Curve2d::D1(const Standard_Real ,
181 gp_Pnt2d& , gp_Vec2d& ) const
183 throw Standard_NotImplemented("Adaptor2d_Curve2d::D1");
187 //=======================================================================
190 //=======================================================================
192 //void Adaptor2d_Curve2d::D2(const Standard_Real U,
193 // gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2) const
194 void Adaptor2d_Curve2d::D2(const Standard_Real ,
195 gp_Pnt2d& , gp_Vec2d& , gp_Vec2d& ) const
197 throw Standard_NotImplemented("Adaptor2d_Curve2d::D2");
201 //=======================================================================
204 //=======================================================================
206 //void Adaptor2d_Curve2d::D3(const Standard_Real U,
207 // gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3)
208 void Adaptor2d_Curve2d::D3(const Standard_Real ,
209 gp_Pnt2d& , gp_Vec2d& , gp_Vec2d& , gp_Vec2d& ) const
211 throw Standard_NotImplemented("Adaptor2d_Curve2d::D3");
215 //=======================================================================
218 //=======================================================================
220 //gp_Vec2d Adaptor2d_Curve2d::DN(const Standard_Real U,
221 // const Standard_Integer N) const
222 gp_Vec2d Adaptor2d_Curve2d::DN(const Standard_Real ,
223 const Standard_Integer ) const
225 throw Standard_NotImplemented("Adaptor2d_Curve2d::DN");
229 //=======================================================================
230 //function : Resolution
232 //=======================================================================
234 //Standard_Real Adaptor2d_Curve2d::Resolution(const Standard_Real R3d) const
235 Standard_Real Adaptor2d_Curve2d::Resolution(const Standard_Real ) const
237 throw Standard_NotImplemented("Adaptor2d_Curve2d::Resolution");
241 //=======================================================================
244 //=======================================================================
246 GeomAbs_CurveType Adaptor2d_Curve2d::GetType() const
248 throw Standard_NotImplemented("Adaptor2d_Curve2d::GetType");
252 //=======================================================================
255 //=======================================================================
257 gp_Lin2d Adaptor2d_Curve2d::Line() const
259 throw Standard_NotImplemented("Adaptor2d_Curve2d::Line");
263 //=======================================================================
266 //=======================================================================
268 gp_Circ2d Adaptor2d_Curve2d::Circle() const
270 throw Standard_NotImplemented("Adaptor2d_Curve2d::Circle");
274 //=======================================================================
277 //=======================================================================
279 gp_Elips2d Adaptor2d_Curve2d::Ellipse() const
281 throw Standard_NotImplemented("Adaptor2d_Curve2d::Ellipse");
285 //=======================================================================
286 //function : Hyperbola
288 //=======================================================================
290 gp_Hypr2d Adaptor2d_Curve2d::Hyperbola() const
292 throw Standard_NotImplemented("Adaptor2d_Curve2d::Hyperbola");
296 //=======================================================================
297 //function : Parabola
299 //=======================================================================
301 gp_Parab2d Adaptor2d_Curve2d::Parabola() const
303 throw Standard_NotImplemented("Adaptor2d_Curve2d::Parabola");
307 //=======================================================================
310 //=======================================================================
312 Standard_Integer Adaptor2d_Curve2d::Degree() const
314 throw Standard_NotImplemented("Adaptor2d_Curve2d::Degree");
318 //=======================================================================
319 //function : IsRational
321 //=======================================================================
323 Standard_Boolean Adaptor2d_Curve2d::IsRational() const
325 throw Standard_NotImplemented("Adaptor2d_Curve2d::IsRational");
329 //=======================================================================
332 //=======================================================================
334 Standard_Integer Adaptor2d_Curve2d::NbPoles() const
336 throw Standard_NotImplemented("Adaptor2d_Curve2d::NbPole");
340 //=======================================================================
343 //=======================================================================
345 Standard_Integer Adaptor2d_Curve2d::NbKnots() const
347 throw Standard_NotImplemented("Adaptor2d_Curve2d::NbKnots");
351 //=======================================================================
354 //=======================================================================
356 Handle(Geom2d_BezierCurve) Adaptor2d_Curve2d::Bezier() const
358 throw Standard_NotImplemented("Adaptor2d_Curve2d::Bezier");
362 //=======================================================================
365 //=======================================================================
367 Handle(Geom2d_BSplineCurve) Adaptor2d_Curve2d::BSpline() const
369 throw Standard_NotImplemented("Adaptor2d_Curve2d::BSpline");
372 //=======================================================================
373 //function : NbSamples
375 //=======================================================================
376 Standard_Integer Adaptor2d_Curve2d::NbSamples() const