1 // Created on: 1992-10-22
2 // Created by: Laurent BUCHARD
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 <GeomAbs_CurveType.hxx>
18 #include <GeomAbs_Shape.hxx>
21 #include <gp_Circ.hxx>
22 #include <gp_Elips.hxx>
23 #include <gp_Parab.hxx>
24 #include <gp_Hypr.hxx>
25 #include <BRepAdaptor_Curve.hxx>
27 //=======================================================================
28 //function : FirstParameter
30 //=======================================================================
33 HLRBRep_BCurveTool::FirstParameter (const BRepAdaptor_Curve& C)
34 { return(C.FirstParameter()); }
36 //=======================================================================
37 //function : LastParameter
39 //=======================================================================
42 HLRBRep_BCurveTool::LastParameter (const BRepAdaptor_Curve& C)
43 { return(C.LastParameter()); }
45 //=======================================================================
46 //function : Continuity
48 //=======================================================================
51 HLRBRep_BCurveTool::Continuity (const BRepAdaptor_Curve& C)
52 { return(C.Continuity()); }
54 //=======================================================================
55 //function : NbIntervals
57 //=======================================================================
59 inline Standard_Integer
60 HLRBRep_BCurveTool::NbIntervals(const BRepAdaptor_Curve& C,
61 const GeomAbs_Shape Sh)
62 { return(C.NbIntervals(Sh)); }
64 //=======================================================================
65 //function : Intervals
67 //=======================================================================
70 HLRBRep_BCurveTool::Intervals(const BRepAdaptor_Curve& C,
71 TColStd_Array1OfReal& Tab,
72 const GeomAbs_Shape Sh)
73 { C.Intervals(Tab,Sh); }
75 //=======================================================================
78 //=======================================================================
80 inline Standard_Boolean
81 HLRBRep_BCurveTool::IsClosed(const BRepAdaptor_Curve& C)
82 { return(C.IsClosed()); }
84 //=======================================================================
85 //function : IsPeriodic
87 //=======================================================================
89 inline Standard_Boolean
90 HLRBRep_BCurveTool::IsPeriodic(const BRepAdaptor_Curve& C)
91 { return(C.IsPeriodic()); }
93 //=======================================================================
96 //=======================================================================
99 HLRBRep_BCurveTool::Period(const BRepAdaptor_Curve& C)
100 { return(C.Period()); }
102 //=======================================================================
105 //=======================================================================
108 HLRBRep_BCurveTool::Value (const BRepAdaptor_Curve& C,
109 const Standard_Real U)
110 { return(C.Value(U)); }
112 //=======================================================================
115 //=======================================================================
118 HLRBRep_BCurveTool::D0(const BRepAdaptor_Curve& C,
119 const Standard_Real U,
123 //=======================================================================
126 //=======================================================================
129 HLRBRep_BCurveTool::D1 (const BRepAdaptor_Curve& C,
130 const Standard_Real U,
136 HLRBRep_BCurveTool::D2 (const BRepAdaptor_Curve& C,
137 const Standard_Real U,
143 //=======================================================================
146 //=======================================================================
149 HLRBRep_BCurveTool::D3 (const BRepAdaptor_Curve& C,
150 const Standard_Real U,
155 { C.D3(U,P,V1,V2,V3); }
157 //=======================================================================
160 //=======================================================================
163 HLRBRep_BCurveTool::DN (const BRepAdaptor_Curve& C,
164 const Standard_Real U,
165 const Standard_Integer N)
166 { return(C.DN(U,N)); }
168 //=======================================================================
169 //function : Resolution
171 //=======================================================================
174 HLRBRep_BCurveTool::Resolution(const BRepAdaptor_Curve& C,
175 const Standard_Real R3d)
176 { return(C.Resolution(R3d)); }
178 //=======================================================================
181 //=======================================================================
183 inline GeomAbs_CurveType
184 HLRBRep_BCurveTool::GetType(const BRepAdaptor_Curve& C)
185 { return(C.GetType()); }
187 //=======================================================================
190 //=======================================================================
193 HLRBRep_BCurveTool::Line (const BRepAdaptor_Curve& C)
194 { return(C.Line()); }
196 //=======================================================================
199 //=======================================================================
202 HLRBRep_BCurveTool::Circle (const BRepAdaptor_Curve& C)
203 { return(C.Circle()); }
205 //=======================================================================
208 //=======================================================================
211 HLRBRep_BCurveTool::Ellipse (const BRepAdaptor_Curve& C)
212 { return(C.Ellipse()); }
214 //=======================================================================
215 //function : Parabola
217 //=======================================================================
220 HLRBRep_BCurveTool::Parabola (const BRepAdaptor_Curve& C)
221 { return(C.Parabola()); }
223 //=======================================================================
224 //function : Hyperbola
226 //=======================================================================
229 HLRBRep_BCurveTool::Hyperbola (const BRepAdaptor_Curve& C)
230 { return(C.Hyperbola()); }
232 //=======================================================================
235 //=======================================================================
237 inline Standard_Integer
238 HLRBRep_BCurveTool::Degree (const BRepAdaptor_Curve& C)
239 { return(C.Degree()); }
241 //=======================================================================
242 //function : IsRational
244 //=======================================================================
246 inline Standard_Boolean
247 HLRBRep_BCurveTool::IsRational (const BRepAdaptor_Curve& C)
248 { return(C.IsRational()); }
250 //=======================================================================
253 //=======================================================================
255 inline Standard_Integer
256 HLRBRep_BCurveTool::NbPoles (const BRepAdaptor_Curve& C)
257 { return(C.NbPoles()); }
259 //=======================================================================
262 //=======================================================================
264 inline Standard_Integer
265 HLRBRep_BCurveTool::NbKnots(const BRepAdaptor_Curve& C)
266 { return(C.NbKnots()); }