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 //=======================================================================
30 //=======================================================================
32 inline BRepAdaptor_Curve& HLRBRep_Curve::Curve()
35 //=======================================================================
38 //=======================================================================
40 inline const BRepAdaptor_Curve& HLRBRep_Curve::GetCurve() const
43 //=======================================================================
46 //=======================================================================
48 inline gp_Pnt HLRBRep_Curve::Value3D(const Standard_Real U) const
55 //=======================================================================
58 //=======================================================================
60 inline void HLRBRep_Curve::D0(const Standard_Real U, gp_Pnt& P) const
61 { HLRBRep_BCurveTool::D0(myCurve,U,P); }
63 //=======================================================================
66 //=======================================================================
68 inline void HLRBRep_Curve::D1(const Standard_Real U,
71 { HLRBRep_BCurveTool::D1(myCurve,U,P,V); }
73 //=======================================================================
74 //function : FirstParameter
76 //=======================================================================
78 inline Standard_Real HLRBRep_Curve::FirstParameter() const
79 { return Parameter2d(HLRBRep_BCurveTool::FirstParameter(myCurve)); }
81 //=======================================================================
82 //function : LastParameter
84 //=======================================================================
86 inline Standard_Real HLRBRep_Curve::LastParameter() const
87 { return Parameter2d(HLRBRep_BCurveTool::LastParameter(myCurve)); }
89 //=======================================================================
90 //function : Continuity
92 //=======================================================================
94 inline GeomAbs_Shape HLRBRep_Curve::Continuity() const
95 { return HLRBRep_BCurveTool::Continuity(myCurve); }
97 //=======================================================================
98 //function : NbIntervals
100 //=======================================================================
102 inline Standard_Integer HLRBRep_Curve::NbIntervals (const GeomAbs_Shape S) const
103 { return HLRBRep_BCurveTool::NbIntervals(myCurve,S); }
105 //=======================================================================
106 //function : Intervals
108 //=======================================================================
110 inline void HLRBRep_Curve::Intervals(TColStd_Array1OfReal& Tab,
111 const GeomAbs_Shape Sh) const
112 { HLRBRep_BCurveTool::Intervals(myCurve,Tab,Sh); }
115 //=======================================================================
116 //function : IsClosed
118 //=======================================================================
120 inline Standard_Boolean HLRBRep_Curve::IsClosed()const
121 { return HLRBRep_BCurveTool::IsClosed(myCurve); }
123 //=======================================================================
124 //function : IsPeriodic
126 //=======================================================================
128 inline Standard_Boolean HLRBRep_Curve::IsPeriodic()const
129 { return HLRBRep_BCurveTool::IsPeriodic(myCurve); }
131 //=======================================================================
134 //=======================================================================
136 inline Standard_Real HLRBRep_Curve::Period()const
137 { return HLRBRep_BCurveTool::Period(myCurve); }
139 //=======================================================================
142 //=======================================================================
144 inline gp_Pnt2d HLRBRep_Curve::Value
145 (const Standard_Real U) const
152 //=======================================================================
153 //function : Resolution
155 //=======================================================================
157 inline Standard_Real HLRBRep_Curve::Resolution
158 (const Standard_Real R3d) const
159 { return HLRBRep_BCurveTool::Resolution(myCurve,R3d); }
161 //=======================================================================
164 //=======================================================================
166 inline GeomAbs_CurveType HLRBRep_Curve::GetType() const
169 //=======================================================================
172 //=======================================================================
174 inline Standard_Integer HLRBRep_Curve::Degree() const
175 { return HLRBRep_BCurveTool::Degree(myCurve); }
178 //=======================================================================
181 //=======================================================================
183 inline Standard_Integer HLRBRep_Curve::NbPoles() const
184 { return HLRBRep_BCurveTool::NbPoles(myCurve); }
186 //=======================================================================
189 //=======================================================================
191 inline Standard_Integer HLRBRep_Curve::NbKnots() const
192 { return HLRBRep_BCurveTool::NbKnots(myCurve); }
195 //=======================================================================
196 //function : IsRational
198 //=======================================================================
200 inline Standard_Boolean HLRBRep_Curve::IsRational() const
202 return HLRBRep_BCurveTool::IsRational(myCurve);