1 // Copyright (c) 1999-2012 OPEN CASCADE SAS
3 // The content of this file is subject to the Open CASCADE Technology Public
4 // License Version 6.5 (the "License"). You may not use the content of this file
5 // except in compliance with the License. Please obtain a copy of the License
6 // at http://www.opencascade.org and read it completely before using this file.
8 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
9 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
11 // The Original Code and all software distributed under the License is
12 // distributed on an "AS IS" basis, without warranty of any kind, and the
13 // Initial Developer hereby disclaims all such warranties, including without
14 // limitation, any warranties of merchantability, fitness for a particular
15 // purpose or non-infringement. Please see the License for the specific terms
16 // and conditions governing the rights and limitations under the License.
19 #include <Adaptor2d_Curve2d.hxx>
21 //=======================================================================
22 //function : FirstParameter
24 //=======================================================================
26 inline Standard_Real Adaptor2d_HCurve2d::FirstParameter() const
28 return Curve2d().FirstParameter();
31 //=======================================================================
32 //function : LastParameter
34 //=======================================================================
36 inline Standard_Real Adaptor2d_HCurve2d::LastParameter() const
38 return Curve2d().LastParameter();
41 //=======================================================================
42 //function : Continuity
44 //=======================================================================
46 inline GeomAbs_Shape Adaptor2d_HCurve2d::Continuity() const
48 return Curve2d().Continuity();
51 //=======================================================================
52 //function : NbIntervals
54 //=======================================================================
56 inline Standard_Integer Adaptor2d_HCurve2d::NbIntervals(const GeomAbs_Shape S) const
58 return Curve2d().NbIntervals(S);
61 //=======================================================================
62 //function : Intervals
64 //=======================================================================
66 inline void Adaptor2d_HCurve2d::Intervals(TColStd_Array1OfReal& T,
67 const GeomAbs_Shape S) const
69 Curve2d().Intervals(T,S);
72 //=======================================================================
75 //=======================================================================
77 inline Handle(Adaptor2d_HCurve2d) Adaptor2d_HCurve2d::Trim
78 (const Standard_Real First,
79 const Standard_Real Last,
80 const Standard_Real Tol) const
82 return Curve2d().Trim(First,Last,Tol);
85 //=======================================================================
88 //=======================================================================
90 inline Standard_Boolean Adaptor2d_HCurve2d::IsClosed() const
92 return Curve2d().IsClosed();
95 //=======================================================================
96 //function : IsPeriodic
98 //=======================================================================
100 inline Standard_Boolean Adaptor2d_HCurve2d::IsPeriodic() const
102 return Curve2d().IsPeriodic();
105 //=======================================================================
108 //=======================================================================
110 inline Standard_Real Adaptor2d_HCurve2d::Period() const
112 return Curve2d().Period();
115 //=======================================================================
118 //=======================================================================
120 inline gp_Pnt2d Adaptor2d_HCurve2d::Value(const Standard_Real U) const
122 return Curve2d().Value(U);
125 //=======================================================================
128 //=======================================================================
130 inline void Adaptor2d_HCurve2d::D0(const Standard_Real U, gp_Pnt2d& P) const
135 //=======================================================================
138 //=======================================================================
140 inline void Adaptor2d_HCurve2d::D1(const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V) const
145 //=======================================================================
148 //=======================================================================
150 inline void Adaptor2d_HCurve2d::D2(const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2) const
152 Curve2d().D2(U,P,V1,V2);
155 //=======================================================================
158 //=======================================================================
160 inline void Adaptor2d_HCurve2d::D3(const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3) const
162 Curve2d().D3(U,P,V1,V2,V3);
165 //=======================================================================
168 //=======================================================================
170 inline gp_Vec2d Adaptor2d_HCurve2d::DN(const Standard_Real U, const Standard_Integer N) const
172 return Curve2d().DN(U,N);
175 //=======================================================================
176 //function : Resolution
178 //=======================================================================
180 inline Standard_Real Adaptor2d_HCurve2d::Resolution(const Standard_Real R3d) const
182 return Curve2d().Resolution(R3d);
185 //=======================================================================
188 //=======================================================================
190 inline GeomAbs_CurveType Adaptor2d_HCurve2d::GetType() const
192 return Curve2d().GetType();
195 //=======================================================================
198 //=======================================================================
200 inline gp_Lin2d Adaptor2d_HCurve2d::Line() const
202 return Curve2d().Line();
205 //=======================================================================
208 //=======================================================================
210 inline gp_Circ2d Adaptor2d_HCurve2d::Circle() const
212 return Curve2d().Circle();
215 //=======================================================================
218 //=======================================================================
220 inline gp_Elips2d Adaptor2d_HCurve2d::Ellipse() const
222 return Curve2d().Ellipse();
225 //=======================================================================
226 //function : Hyperbola
228 //=======================================================================
230 inline gp_Hypr2d Adaptor2d_HCurve2d::Hyperbola() const
232 return Curve2d().Hyperbola();
235 //=======================================================================
236 //function : Parabola
238 //=======================================================================
240 inline gp_Parab2d Adaptor2d_HCurve2d::Parabola() const
242 return Curve2d().Parabola();
245 //=======================================================================
248 //=======================================================================
250 inline Standard_Integer Adaptor2d_HCurve2d::Degree() const
252 return Curve2d().Degree() ;
254 //=======================================================================
255 //function : IsRational
257 //=======================================================================
259 inline Standard_Boolean Adaptor2d_HCurve2d::IsRational() const
261 return Curve2d().IsRational() ;
263 //=======================================================================
266 //=======================================================================
267 inline Standard_Integer Adaptor2d_HCurve2d::NbPoles() const
269 return Curve2d().NbPoles() ;
271 //=======================================================================
274 //=======================================================================
276 inline Standard_Integer Adaptor2d_HCurve2d::NbKnots() const
278 return Curve2d().NbKnots() ;
282 //=======================================================================
285 //=======================================================================
287 inline Handle(Geom2d_BezierCurve) Adaptor2d_HCurve2d::Bezier() const
289 return Curve2d().Bezier();
292 //=======================================================================
295 //=======================================================================
297 inline Handle(Geom2d_BSplineCurve) Adaptor2d_HCurve2d::BSpline() const
299 return Curve2d().BSpline();