0023024: Update headers of OCCT files
[occt.git] / src / Adaptor2d / Adaptor2d_HCurve2d.lxx
1 // Copyright (c) 1999-2012 OPEN CASCADE SAS
2 //
3 // The content of this file is subject to the Open CASCADE Technology Public
4 // License Version 6.5 (the "License"). You may not use the content of this file
5 // except in compliance with the License. Please obtain a copy of the License
6 // at http://www.opencascade.org and read it completely before using this file.
7 //
8 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
9 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
10 //
11 // The Original Code and all software distributed under the License is
12 // distributed on an "AS IS" basis, without warranty of any kind, and the
13 // Initial Developer hereby disclaims all such warranties, including without
14 // limitation, any warranties of merchantability, fitness for a particular
15 // purpose or non-infringement. Please see the License for the specific terms
16 // and conditions governing the rights and limitations under the License.
17
18
19 #include <Adaptor2d_Curve2d.hxx>
20
21 //=======================================================================
22 //function : FirstParameter
23 //purpose  : 
24 //=======================================================================
25
26 inline Standard_Real Adaptor2d_HCurve2d::FirstParameter() const 
27 {
28   return Curve2d().FirstParameter();
29 }
30
31 //=======================================================================
32 //function : LastParameter
33 //purpose  : 
34 //=======================================================================
35
36  inline Standard_Real Adaptor2d_HCurve2d::LastParameter() const 
37 {
38   return Curve2d().LastParameter();
39 }
40
41 //=======================================================================
42 //function : Continuity
43 //purpose  : 
44 //=======================================================================
45
46  inline GeomAbs_Shape Adaptor2d_HCurve2d::Continuity() const 
47 {
48   return Curve2d().Continuity();
49 }
50
51 //=======================================================================
52 //function : NbIntervals
53 //purpose  : 
54 //=======================================================================
55
56  inline Standard_Integer Adaptor2d_HCurve2d::NbIntervals(const GeomAbs_Shape S) const 
57 {
58   return Curve2d().NbIntervals(S);
59 }
60
61 //=======================================================================
62 //function : Intervals
63 //purpose  : 
64 //=======================================================================
65
66  inline void Adaptor2d_HCurve2d::Intervals(TColStd_Array1OfReal& T,
67                                          const GeomAbs_Shape S) const 
68 {
69   Curve2d().Intervals(T,S);
70 }
71
72 //=======================================================================
73 //function : Trim
74 //purpose  : 
75 //=======================================================================
76
77  inline Handle(Adaptor2d_HCurve2d) Adaptor2d_HCurve2d::Trim
78  (const Standard_Real First,
79   const Standard_Real Last,
80   const Standard_Real Tol) const 
81 {
82   return Curve2d().Trim(First,Last,Tol);
83 }
84
85 //=======================================================================
86 //function : IsClosed
87 //purpose  : 
88 //=======================================================================
89
90  inline Standard_Boolean Adaptor2d_HCurve2d::IsClosed() const 
91 {
92   return Curve2d().IsClosed();
93 }
94
95 //=======================================================================
96 //function : IsPeriodic
97 //purpose  : 
98 //=======================================================================
99
100  inline Standard_Boolean Adaptor2d_HCurve2d::IsPeriodic() const 
101 {
102   return Curve2d().IsPeriodic();
103 }
104
105 //=======================================================================
106 //function : Period
107 //purpose  : 
108 //=======================================================================
109
110  inline Standard_Real Adaptor2d_HCurve2d::Period() const 
111 {
112   return Curve2d().Period();
113 }
114
115 //=======================================================================
116 //function : Value
117 //purpose  : 
118 //=======================================================================
119
120  inline gp_Pnt2d Adaptor2d_HCurve2d::Value(const Standard_Real U) const 
121 {
122   return Curve2d().Value(U);
123 }
124
125 //=======================================================================
126 //function : D0
127 //purpose  : 
128 //=======================================================================
129
130  inline void Adaptor2d_HCurve2d::D0(const Standard_Real U, gp_Pnt2d& P) const 
131 {
132   Curve2d().D0(U,P);
133 }
134
135 //=======================================================================
136 //function : D1
137 //purpose  : 
138 //=======================================================================
139
140  inline void Adaptor2d_HCurve2d::D1(const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V) const 
141 {
142   Curve2d().D1(U,P,V);
143 }
144
145 //=======================================================================
146 //function : D2
147 //purpose  : 
148 //=======================================================================
149
150  inline void Adaptor2d_HCurve2d::D2(const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2) const 
151 {
152   Curve2d().D2(U,P,V1,V2);
153 }
154
155 //=======================================================================
156 //function : D3
157 //purpose  : 
158 //=======================================================================
159
160  inline void Adaptor2d_HCurve2d::D3(const Standard_Real U, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3) const 
161 {
162   Curve2d().D3(U,P,V1,V2,V3);
163 }
164
165 //=======================================================================
166 //function : DN
167 //purpose  : 
168 //=======================================================================
169
170  inline gp_Vec2d Adaptor2d_HCurve2d::DN(const Standard_Real U, const Standard_Integer N) const 
171 {
172   return Curve2d().DN(U,N);
173 }
174
175 //=======================================================================
176 //function : Resolution
177 //purpose  : 
178 //=======================================================================
179
180  inline Standard_Real Adaptor2d_HCurve2d::Resolution(const Standard_Real R3d) const 
181 {
182   return Curve2d().Resolution(R3d);
183 }
184
185 //=======================================================================
186 //function : GetType
187 //purpose  : 
188 //=======================================================================
189
190  inline GeomAbs_CurveType Adaptor2d_HCurve2d::GetType() const 
191 {
192   return Curve2d().GetType();
193 }
194
195 //=======================================================================
196 //function : Line
197 //purpose  : 
198 //=======================================================================
199
200  inline gp_Lin2d Adaptor2d_HCurve2d::Line() const 
201 {
202   return Curve2d().Line();
203 }
204
205 //=======================================================================
206 //function : Circle
207 //purpose  : 
208 //=======================================================================
209
210  inline gp_Circ2d Adaptor2d_HCurve2d::Circle() const 
211 {
212   return Curve2d().Circle();
213 }
214
215 //=======================================================================
216 //function : Ellipse
217 //purpose  : 
218 //=======================================================================
219
220  inline gp_Elips2d Adaptor2d_HCurve2d::Ellipse() const 
221 {
222   return Curve2d().Ellipse();
223 }
224
225 //=======================================================================
226 //function : Hyperbola
227 //purpose  : 
228 //=======================================================================
229
230  inline gp_Hypr2d Adaptor2d_HCurve2d::Hyperbola() const 
231 {
232   return Curve2d().Hyperbola();
233 }
234
235 //=======================================================================
236 //function : Parabola
237 //purpose  : 
238 //=======================================================================
239
240  inline gp_Parab2d Adaptor2d_HCurve2d::Parabola() const 
241 {
242   return Curve2d().Parabola();
243 }
244
245 //=======================================================================
246 //function : Degree
247 //purpose  : 
248 //=======================================================================
249
250 inline  Standard_Integer  Adaptor2d_HCurve2d::Degree() const 
251 {
252    return Curve2d().Degree() ;
253  }
254 //=======================================================================
255 //function : IsRational
256 //purpose  : 
257 //=======================================================================
258
259 inline  Standard_Boolean  Adaptor2d_HCurve2d::IsRational() const
260 {
261  return  Curve2d().IsRational() ;
262
263 //=======================================================================
264 //function : NbPoles
265 //purpose  : 
266 //=======================================================================
267 inline Standard_Integer  Adaptor2d_HCurve2d::NbPoles() const
268 {
269  return Curve2d().NbPoles() ;
270 }
271 //=======================================================================
272 //function : NbKnots
273 //purpose  : 
274 //=======================================================================
275
276 inline Standard_Integer  Adaptor2d_HCurve2d::NbKnots() const
277 {
278  return Curve2d().NbKnots() ;
279 }
280
281
282 //=======================================================================
283 //function : Bezier
284 //purpose  : 
285 //=======================================================================
286
287  inline Handle(Geom2d_BezierCurve) Adaptor2d_HCurve2d::Bezier() const 
288 {
289   return Curve2d().Bezier();
290 }
291
292 //=======================================================================
293 //function : BSpline
294 //purpose  : 
295 //=======================================================================
296
297  inline Handle(Geom2d_BSplineCurve) Adaptor2d_HCurve2d::BSpline() const 
298 {
299   return Curve2d().BSpline();
300 }
301