0029915: Porting to VC 2017 : Regressions in Modeling Algorithms on VC 2017
[occt.git] / src / Adaptor3d / Adaptor3d_HCurve.lxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14 #include <Adaptor3d_Curve.hxx>
15
16 //=======================================================================
17 //function : FirstParameter
18 //purpose  : 
19 //=======================================================================
20
21 inline Standard_Real Adaptor3d_HCurve::FirstParameter() const 
22 {
23   return Curve().FirstParameter();
24 }
25
26 //=======================================================================
27 //function : LastParameter
28 //purpose  : 
29 //=======================================================================
30
31  inline Standard_Real Adaptor3d_HCurve::LastParameter() const 
32 {
33   return Curve().LastParameter();
34 }
35
36 //=======================================================================
37 //function : Continuity
38 //purpose  : 
39 //=======================================================================
40
41  inline GeomAbs_Shape Adaptor3d_HCurve::Continuity() const 
42 {
43   return Curve().Continuity();
44 }
45
46 //=======================================================================
47 //function : NbIntervals
48 //purpose  : 
49 //=======================================================================
50
51  inline Standard_Integer Adaptor3d_HCurve::NbIntervals(const GeomAbs_Shape S) const
52 {
53   return Curve().NbIntervals(S);
54 }
55
56 //=======================================================================
57 //function : Intervals
58 //purpose  : 
59 //=======================================================================
60
61  inline void Adaptor3d_HCurve::Intervals(TColStd_Array1OfReal& T,
62                                          const GeomAbs_Shape S) const
63 {
64   Curve().Intervals(T,S);
65 }
66
67 //=======================================================================
68 //function : Trim
69 //purpose  : 
70 //=======================================================================
71
72  inline Handle(Adaptor3d_HCurve) Adaptor3d_HCurve::Trim
73  (const Standard_Real First,
74   const Standard_Real Last,
75   const Standard_Real Tol) const 
76 {
77   return Curve().Trim(First,Last,Tol);
78 }
79
80 //=======================================================================
81 //function : IsClosed
82 //purpose  : 
83 //=======================================================================
84
85  inline Standard_Boolean Adaptor3d_HCurve::IsClosed() const 
86 {
87   return Curve().IsClosed();
88 }
89
90 //=======================================================================
91 //function : IsPeriodic
92 //purpose  : 
93 //=======================================================================
94
95  inline Standard_Boolean Adaptor3d_HCurve::IsPeriodic() const 
96 {
97   return Curve().IsPeriodic();
98 }
99
100 //=======================================================================
101 //function : Period
102 //purpose  : 
103 //=======================================================================
104
105  inline Standard_Real Adaptor3d_HCurve::Period() const 
106 {
107   return Curve().Period();
108 }
109
110 //=======================================================================
111 //function : Value
112 //purpose  : 
113 //=======================================================================
114
115  inline gp_Pnt Adaptor3d_HCurve::Value(const Standard_Real U) const 
116 {
117   return Curve().Value(U);
118 }
119
120 //=======================================================================
121 //function : D0
122 //purpose  : 
123 //=======================================================================
124
125  inline void Adaptor3d_HCurve::D0(const Standard_Real U, gp_Pnt& P) const 
126 {
127   Curve().D0(U,P);
128 }
129
130 //=======================================================================
131 //function : D1
132 //purpose  : 
133 //=======================================================================
134
135  inline void Adaptor3d_HCurve::D1(const Standard_Real U, gp_Pnt& P, gp_Vec& V) const 
136 {
137   Curve().D1(U,P,V);
138 }
139
140 //=======================================================================
141 //function : D2
142 //purpose  : 
143 //=======================================================================
144
145  inline void Adaptor3d_HCurve::D2(const Standard_Real U, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2) const 
146 {
147   Curve().D2(U,P,V1,V2);
148 }
149
150 //=======================================================================
151 //function : D3
152 //purpose  : 
153 //=======================================================================
154
155  inline void Adaptor3d_HCurve::D3(const Standard_Real U, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2, gp_Vec& V3) const 
156 {
157   Curve().D3(U,P,V1,V2,V3);
158 }
159
160 //=======================================================================
161 //function : DN
162 //purpose  : 
163 //=======================================================================
164
165  inline gp_Vec Adaptor3d_HCurve::DN(const Standard_Real U, const Standard_Integer N) const 
166 {
167   return Curve().DN(U,N);
168 }
169
170 //=======================================================================
171 //function : Resolution
172 //purpose  : 
173 //=======================================================================
174
175  inline Standard_Real Adaptor3d_HCurve::Resolution(const Standard_Real R3d) const 
176 {
177   return Curve().Resolution(R3d);
178 }
179
180 //=======================================================================
181 //function : GetType
182 //purpose  : 
183 //=======================================================================
184
185  inline GeomAbs_CurveType Adaptor3d_HCurve::GetType() const 
186 {
187   return Curve().GetType();
188 }
189
190 //=======================================================================
191 //function : Line
192 //purpose  : 
193 //=======================================================================
194
195  inline gp_Lin Adaptor3d_HCurve::Line() const 
196 {
197   return Curve().Line();
198 }
199
200 //=======================================================================
201 //function : Circle
202 //purpose  : 
203 //=======================================================================
204
205  inline gp_Circ Adaptor3d_HCurve::Circle() const 
206 {
207   return Curve().Circle();
208 }
209
210 //=======================================================================
211 //function : Ellipse
212 //purpose  : 
213 //=======================================================================
214
215  inline gp_Elips Adaptor3d_HCurve::Ellipse() const 
216 {
217   return Curve().Ellipse();
218 }
219
220 //=======================================================================
221 //function : Hyperbola
222 //purpose  : 
223 //=======================================================================
224
225  inline gp_Hypr Adaptor3d_HCurve::Hyperbola() const 
226 {
227   return Curve().Hyperbola();
228 }
229
230 //=======================================================================
231 //function : Parabola
232 //purpose  : 
233 //=======================================================================
234
235  inline gp_Parab Adaptor3d_HCurve::Parabola() const 
236 {
237   return Curve().Parabola();
238 }
239
240 //=======================================================================
241 //function : Degree
242 //purpose  : 
243 //=======================================================================
244
245 inline  Standard_Integer  Adaptor3d_HCurve::Degree() const 
246 {
247    return Curve().Degree() ;
248  }
249 //=======================================================================
250 //function : IsRational
251 //purpose  : 
252 //=======================================================================
253
254 inline  Standard_Boolean  Adaptor3d_HCurve::IsRational() const
255 {
256  return  Curve().IsRational() ;
257
258 //=======================================================================
259 //function : NbPoles
260 //purpose  : 
261 //=======================================================================
262 inline Standard_Integer  Adaptor3d_HCurve::NbPoles() const
263 {
264  return Curve().NbPoles() ;
265 }
266 //=======================================================================
267 //function : NbKnots
268 //purpose  : 
269 //=======================================================================
270
271 inline Standard_Integer  Adaptor3d_HCurve::NbKnots() const
272 {
273  return Curve().NbKnots() ;
274 }
275
276 //=======================================================================
277 //function : Bezier
278 //purpose  : 
279 //=======================================================================
280
281  inline Handle(Geom_BezierCurve) Adaptor3d_HCurve::Bezier() const 
282 {
283   return Curve().Bezier();
284 }
285
286 //=======================================================================
287 //function : BSpline
288 //purpose  : 
289 //=======================================================================
290
291  inline Handle(Geom_BSplineCurve) Adaptor3d_HCurve::BSpline() const 
292 {
293   return Curve().BSpline();
294 }
295
296 //=======================================================================
297 //function : BasisCurve
298 //purpose  : 
299 //=======================================================================
300
301  inline Handle(Geom_OffsetCurve) Adaptor3d_HCurve::OffsetCurve() const
302 {
303   return Curve().OffsetCurve();
304 }