1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and / or modify it
6 // under the terms of the GNU Lesser General Public version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #include <Adaptor2d_Curve2d.hxx>
16 //=======================================================================
17 //function : FirstParameter
19 //=======================================================================
21 inline Standard_Real Adaptor2d_HCurve2d::FirstParameter() const
23 return Curve2d().FirstParameter();
26 //=======================================================================
27 //function : LastParameter
29 //=======================================================================
31 inline Standard_Real Adaptor2d_HCurve2d::LastParameter() const
33 return Curve2d().LastParameter();
36 //=======================================================================
37 //function : Continuity
39 //=======================================================================
41 inline GeomAbs_Shape Adaptor2d_HCurve2d::Continuity() const
43 return Curve2d().Continuity();
46 //=======================================================================
47 //function : NbIntervals
49 //=======================================================================
51 inline Standard_Integer Adaptor2d_HCurve2d::NbIntervals(const GeomAbs_Shape S) const
53 return Curve2d().NbIntervals(S);
56 //=======================================================================
57 //function : Intervals
59 //=======================================================================
61 inline void Adaptor2d_HCurve2d::Intervals(TColStd_Array1OfReal& T,
62 const GeomAbs_Shape S) const
64 Curve2d().Intervals(T,S);
67 //=======================================================================
70 //=======================================================================
72 inline Handle(Adaptor2d_HCurve2d) Adaptor2d_HCurve2d::Trim
73 (const Standard_Real First,
74 const Standard_Real Last,
75 const Standard_Real Tol) const
77 return Curve2d().Trim(First,Last,Tol);
80 //=======================================================================
83 //=======================================================================
85 inline Standard_Boolean Adaptor2d_HCurve2d::IsClosed() const
87 return Curve2d().IsClosed();
90 //=======================================================================
91 //function : IsPeriodic
93 //=======================================================================
95 inline Standard_Boolean Adaptor2d_HCurve2d::IsPeriodic() const
97 return Curve2d().IsPeriodic();
100 //=======================================================================
103 //=======================================================================
105 inline Standard_Real Adaptor2d_HCurve2d::Period() const
107 return Curve2d().Period();
110 //=======================================================================
113 //=======================================================================
115 inline gp_Pnt2d Adaptor2d_HCurve2d::Value(const Standard_Real U) const
117 return Curve2d().Value(U);
120 //=======================================================================
123 //=======================================================================
125 inline void Adaptor2d_HCurve2d::D0(const Standard_Real U, gp_Pnt2d& P) const
130 //=======================================================================
133 //=======================================================================
135 inline void Adaptor2d_HCurve2d::D1(const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V) const
140 //=======================================================================
143 //=======================================================================
145 inline void Adaptor2d_HCurve2d::D2(const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2) const
147 Curve2d().D2(U,P,V1,V2);
150 //=======================================================================
153 //=======================================================================
155 inline void Adaptor2d_HCurve2d::D3(const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3) const
157 Curve2d().D3(U,P,V1,V2,V3);
160 //=======================================================================
163 //=======================================================================
165 inline gp_Vec2d Adaptor2d_HCurve2d::DN(const Standard_Real U, const Standard_Integer N) const
167 return Curve2d().DN(U,N);
170 //=======================================================================
171 //function : Resolution
173 //=======================================================================
175 inline Standard_Real Adaptor2d_HCurve2d::Resolution(const Standard_Real R3d) const
177 return Curve2d().Resolution(R3d);
180 //=======================================================================
183 //=======================================================================
185 inline GeomAbs_CurveType Adaptor2d_HCurve2d::GetType() const
187 return Curve2d().GetType();
190 //=======================================================================
193 //=======================================================================
195 inline gp_Lin2d Adaptor2d_HCurve2d::Line() const
197 return Curve2d().Line();
200 //=======================================================================
203 //=======================================================================
205 inline gp_Circ2d Adaptor2d_HCurve2d::Circle() const
207 return Curve2d().Circle();
210 //=======================================================================
213 //=======================================================================
215 inline gp_Elips2d Adaptor2d_HCurve2d::Ellipse() const
217 return Curve2d().Ellipse();
220 //=======================================================================
221 //function : Hyperbola
223 //=======================================================================
225 inline gp_Hypr2d Adaptor2d_HCurve2d::Hyperbola() const
227 return Curve2d().Hyperbola();
230 //=======================================================================
231 //function : Parabola
233 //=======================================================================
235 inline gp_Parab2d Adaptor2d_HCurve2d::Parabola() const
237 return Curve2d().Parabola();
240 //=======================================================================
243 //=======================================================================
245 inline Standard_Integer Adaptor2d_HCurve2d::Degree() const
247 return Curve2d().Degree() ;
249 //=======================================================================
250 //function : IsRational
252 //=======================================================================
254 inline Standard_Boolean Adaptor2d_HCurve2d::IsRational() const
256 return Curve2d().IsRational() ;
258 //=======================================================================
261 //=======================================================================
262 inline Standard_Integer Adaptor2d_HCurve2d::NbPoles() const
264 return Curve2d().NbPoles() ;
266 //=======================================================================
269 //=======================================================================
271 inline Standard_Integer Adaptor2d_HCurve2d::NbKnots() const
273 return Curve2d().NbKnots() ;
277 //=======================================================================
280 //=======================================================================
282 inline Handle(Geom2d_BezierCurve) Adaptor2d_HCurve2d::Bezier() const
284 return Curve2d().Bezier();
287 //=======================================================================
290 //=======================================================================
292 inline Handle(Geom2d_BSplineCurve) Adaptor2d_HCurve2d::BSpline() const
294 return Curve2d().BSpline();