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