0025246: Make methods Intervals and NbIntervals const in Adaptor3d_Curve and it desce...
[occt.git] / src / HLRBRep / HLRBRep_Curve.lxx
CommitLineData
b311480e 1// Created on: 1992-03-13
2// Created by: Christophe MARION
3// Copyright (c) 1992-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
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>
26
27//=======================================================================
28//function : Projector
29//purpose :
30//=======================================================================
31
32inline void HLRBRep_Curve::Projector(const Standard_Address Proj)
33{ myProj = Proj; }
34
35//=======================================================================
36//function : Curve
37//purpose :
38//=======================================================================
39
40inline BRepAdaptor_Curve& HLRBRep_Curve::Curve()
41{ return myCurve; }
42
0a768f56 43//=======================================================================
44//function : GetCurve
45//purpose :
46//=======================================================================
47
48inline const BRepAdaptor_Curve& HLRBRep_Curve::GetCurve() const
49{ return myCurve; }
50
7fd59977 51//=======================================================================
52//function : Value3D
53//purpose :
54//=======================================================================
55
56inline gp_Pnt HLRBRep_Curve::Value3D(const Standard_Real U) const
57{
58 gp_Pnt P;
59 D0(U,P);
60 return P;
61}
62
63//=======================================================================
64//function : D0
65//purpose :
66//=======================================================================
67
68inline void HLRBRep_Curve::D0(const Standard_Real U, gp_Pnt& P) const
69{ HLRBRep_BCurveTool::D0(myCurve,U,P); }
70
71//=======================================================================
72//function : D1
73//purpose :
74//=======================================================================
75
76inline void HLRBRep_Curve::D1(const Standard_Real U,
77 gp_Pnt& P,
78 gp_Vec& V) const
79{ HLRBRep_BCurveTool::D1(myCurve,U,P,V); }
80
81//=======================================================================
82//function : FirstParameter
83//purpose :
84//=======================================================================
85
86inline Standard_Real HLRBRep_Curve::FirstParameter() const
87{ return Parameter2d(HLRBRep_BCurveTool::FirstParameter(myCurve)); }
88
89//=======================================================================
90//function : LastParameter
91//purpose :
92//=======================================================================
93
94inline Standard_Real HLRBRep_Curve::LastParameter() const
95{ return Parameter2d(HLRBRep_BCurveTool::LastParameter(myCurve)); }
96
97//=======================================================================
98//function : Continuity
99//purpose :
100//=======================================================================
101
102inline GeomAbs_Shape HLRBRep_Curve::Continuity() const
103{ return HLRBRep_BCurveTool::Continuity(myCurve); }
104
105//=======================================================================
106//function : NbIntervals
107//purpose :
108//=======================================================================
109
31b1749c 110inline Standard_Integer HLRBRep_Curve::NbIntervals (const GeomAbs_Shape S) const
7fd59977 111{ return HLRBRep_BCurveTool::NbIntervals(myCurve,S); }
112
113//=======================================================================
114//function : Intervals
115//purpose :
116//=======================================================================
117
118inline void HLRBRep_Curve::Intervals(TColStd_Array1OfReal& Tab,
31b1749c 119 const GeomAbs_Shape Sh) const
7fd59977 120{ HLRBRep_BCurveTool::Intervals(myCurve,Tab,Sh); }
121
122
123//=======================================================================
124//function : IsClosed
125//purpose :
126//=======================================================================
127
128inline Standard_Boolean HLRBRep_Curve::IsClosed()const
129{ return HLRBRep_BCurveTool::IsClosed(myCurve); }
130
131//=======================================================================
132//function : IsPeriodic
133//purpose :
134//=======================================================================
135
136inline Standard_Boolean HLRBRep_Curve::IsPeriodic()const
137{ return HLRBRep_BCurveTool::IsPeriodic(myCurve); }
138
139//=======================================================================
140//function : Period
141//purpose :
142//=======================================================================
143
144inline Standard_Real HLRBRep_Curve::Period()const
145{ return HLRBRep_BCurveTool::Period(myCurve); }
146
147//=======================================================================
148//function : Value
149//purpose :
150//=======================================================================
151
152inline gp_Pnt2d HLRBRep_Curve::Value
153 (const Standard_Real U) const
154{
155 gp_Pnt2d P;
156 D0(U,P);
157 return P;
158}
159
160//=======================================================================
161//function : Resolution
162//purpose :
163//=======================================================================
164
165inline Standard_Real HLRBRep_Curve::Resolution
166 (const Standard_Real R3d) const
167{ return HLRBRep_BCurveTool::Resolution(myCurve,R3d); }
168
169//=======================================================================
170//function : GetType
171//purpose :
172//=======================================================================
173
174inline GeomAbs_CurveType HLRBRep_Curve::GetType() const
175{ return myType; }
176
177//=======================================================================
178//function : Degree
179//purpose :
180//=======================================================================
181
182inline Standard_Integer HLRBRep_Curve::Degree() const
183{ return HLRBRep_BCurveTool::Degree(myCurve); }
184
185
186//=======================================================================
187//function : NbPoles
188//purpose :
189//=======================================================================
190
191inline Standard_Integer HLRBRep_Curve::NbPoles() const
192{ return HLRBRep_BCurveTool::NbPoles(myCurve); }
193
194//=======================================================================
195//function : NbKnots
196//purpose :
197//=======================================================================
198
199inline Standard_Integer HLRBRep_Curve::NbKnots() const
200{ return HLRBRep_BCurveTool::NbKnots(myCurve); }
201
202
203//=======================================================================
204//function : IsRational
205//purpose :
206//=======================================================================
207
208inline Standard_Boolean HLRBRep_Curve::IsRational() const
209{
210 return HLRBRep_BCurveTool::IsRational(myCurve);
211}