1 // Created on: 1992-03-13
2 // Created by: Christophe MARION
3 // Copyright (c) 1992-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.
17 #include <Standard_NotImplemented.hxx>
18 #include <gp_Pnt2d.hxx>
19 #include <gp_Vec2d.hxx>
20 #include <gp_Lin2d.hxx>
21 #include <gp_Circ2d.hxx>
22 #include <gp_Elips2d.hxx>
23 #include <gp_Hypr2d.hxx>
24 #include <gp_Parab2d.hxx>
25 #include <HLRBRep_BCurveTool.hxx>
27 //=======================================================================
28 //function : Projector
30 //=======================================================================
32 inline void HLRBRep_Curve::Projector(const Standard_Address Proj)
35 //=======================================================================
38 //=======================================================================
40 inline BRepAdaptor_Curve& HLRBRep_Curve::Curve()
43 //=======================================================================
46 //=======================================================================
48 inline const BRepAdaptor_Curve& HLRBRep_Curve::GetCurve() const
51 //=======================================================================
54 //=======================================================================
56 inline gp_Pnt HLRBRep_Curve::Value3D(const Standard_Real U) const
63 //=======================================================================
66 //=======================================================================
68 inline void HLRBRep_Curve::D0(const Standard_Real U, gp_Pnt& P) const
69 { HLRBRep_BCurveTool::D0(myCurve,U,P); }
71 //=======================================================================
74 //=======================================================================
76 inline void HLRBRep_Curve::D1(const Standard_Real U,
79 { HLRBRep_BCurveTool::D1(myCurve,U,P,V); }
81 //=======================================================================
82 //function : FirstParameter
84 //=======================================================================
86 inline Standard_Real HLRBRep_Curve::FirstParameter() const
87 { return Parameter2d(HLRBRep_BCurveTool::FirstParameter(myCurve)); }
89 //=======================================================================
90 //function : LastParameter
92 //=======================================================================
94 inline Standard_Real HLRBRep_Curve::LastParameter() const
95 { return Parameter2d(HLRBRep_BCurveTool::LastParameter(myCurve)); }
97 //=======================================================================
98 //function : Continuity
100 //=======================================================================
102 inline GeomAbs_Shape HLRBRep_Curve::Continuity() const
103 { return HLRBRep_BCurveTool::Continuity(myCurve); }
105 //=======================================================================
106 //function : NbIntervals
108 //=======================================================================
110 inline Standard_Integer HLRBRep_Curve::NbIntervals
111 (const GeomAbs_Shape S)
112 { return HLRBRep_BCurveTool::NbIntervals(myCurve,S); }
114 //=======================================================================
115 //function : Intervals
117 //=======================================================================
119 inline void HLRBRep_Curve::Intervals(TColStd_Array1OfReal& Tab,
120 const GeomAbs_Shape Sh)
121 { HLRBRep_BCurveTool::Intervals(myCurve,Tab,Sh); }
124 //=======================================================================
125 //function : IsClosed
127 //=======================================================================
129 inline Standard_Boolean HLRBRep_Curve::IsClosed()const
130 { return HLRBRep_BCurveTool::IsClosed(myCurve); }
132 //=======================================================================
133 //function : IsPeriodic
135 //=======================================================================
137 inline Standard_Boolean HLRBRep_Curve::IsPeriodic()const
138 { return HLRBRep_BCurveTool::IsPeriodic(myCurve); }
140 //=======================================================================
143 //=======================================================================
145 inline Standard_Real HLRBRep_Curve::Period()const
146 { return HLRBRep_BCurveTool::Period(myCurve); }
148 //=======================================================================
151 //=======================================================================
153 inline gp_Pnt2d HLRBRep_Curve::Value
154 (const Standard_Real U) const
161 //=======================================================================
162 //function : Resolution
164 //=======================================================================
166 inline Standard_Real HLRBRep_Curve::Resolution
167 (const Standard_Real R3d) const
168 { return HLRBRep_BCurveTool::Resolution(myCurve,R3d); }
170 //=======================================================================
173 //=======================================================================
175 inline GeomAbs_CurveType HLRBRep_Curve::GetType() const
178 //=======================================================================
181 //=======================================================================
183 inline Standard_Integer HLRBRep_Curve::Degree() const
184 { return HLRBRep_BCurveTool::Degree(myCurve); }
187 //=======================================================================
190 //=======================================================================
192 inline Standard_Integer HLRBRep_Curve::NbPoles() const
193 { return HLRBRep_BCurveTool::NbPoles(myCurve); }
195 //=======================================================================
198 //=======================================================================
200 inline Standard_Integer HLRBRep_Curve::NbKnots() const
201 { return HLRBRep_BCurveTool::NbKnots(myCurve); }
204 //=======================================================================
205 //function : IsRational
207 //=======================================================================
209 inline Standard_Boolean HLRBRep_Curve::IsRational() const
211 return HLRBRep_BCurveTool::IsRational(myCurve);