0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / Adaptor2d / Adaptor2d_Curve2d.cxx
1 // Created on: 1993-07-01
2 // Created by: Bruno DUMORTIER
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <Adaptor2d_Curve2d.hxx>
19 #include <Adaptor2d_HCurve2d.hxx>
20 #include <Geom2d_BezierCurve.hxx>
21 #include <Geom2d_BSplineCurve.hxx>
22 #include <gp_Circ2d.hxx>
23 #include <gp_Elips2d.hxx>
24 #include <gp_Hypr2d.hxx>
25 #include <gp_Lin2d.hxx>
26 #include <gp_Parab2d.hxx>
27 #include <gp_Pnt2d.hxx>
28 #include <gp_Vec2d.hxx>
29 #include <Standard_DomainError.hxx>
30 #include <Standard_NoSuchObject.hxx>
31 #include <Standard_NotImplemented.hxx>
32 #include <Standard_OutOfRange.hxx>
33
34 //=======================================================================
35 //function : ~Adaptor2d_Curve2d
36 //purpose  : Destructor
37 //=======================================================================
38 Adaptor2d_Curve2d::~Adaptor2d_Curve2d()
39 {
40 }
41
42 //=======================================================================
43 //function : FirstParameter
44 //purpose  : 
45 //=======================================================================
46
47 Standard_Real Adaptor2d_Curve2d::FirstParameter() const 
48 {  
49   throw Standard_NotImplemented("Adaptor2d_Curve2d::FirstParameter");
50 }
51
52
53 //=======================================================================
54 //function : LastParameter
55 //purpose  : 
56 //=======================================================================
57
58 Standard_Real Adaptor2d_Curve2d::LastParameter() const 
59 {
60   throw Standard_NotImplemented("Adaptor2d_Curve2d::LastParameter");
61 }
62
63
64 //=======================================================================
65 //function : Continuity
66 //purpose  : 
67 //=======================================================================
68
69 GeomAbs_Shape Adaptor2d_Curve2d::Continuity() const 
70 {
71   throw Standard_NotImplemented("Adaptor2d_Curve2d::Continuity");
72 }
73
74
75 //=======================================================================
76 //function : NbIntervals
77 //purpose  : 
78 //=======================================================================
79
80 //Standard_Integer Adaptor2d_Curve2d::NbIntervals(const GeomAbs_Shape S) const 
81 Standard_Integer Adaptor2d_Curve2d::NbIntervals(const GeomAbs_Shape ) const 
82 {
83   throw Standard_NotImplemented("Adaptor2d_Curve2d::NbIntervals");
84 }
85
86
87 //=======================================================================
88 //function : Intervals
89 //purpose  : 
90 //=======================================================================
91
92 //void Adaptor2d_Curve2d::Intervals(TColStd_Array1OfReal& T, 
93 //                              const GeomAbs_Shape S) const 
94 void Adaptor2d_Curve2d::Intervals(TColStd_Array1OfReal& , 
95                                 const GeomAbs_Shape ) const 
96 {
97   throw Standard_NotImplemented("Adaptor2d_Curve2d::Intervals");
98 }
99
100
101 //=======================================================================
102 //function : Trim
103 //purpose  : 
104 //=======================================================================
105
106 //Handle(Adaptor2d_HCurve2d) Adaptor2d_Curve2d::Trim(const Standard_Real First,
107 //                                             const Standard_Real Last ,
108 //                                             const Standard_Real Tol) const 
109 Handle(Adaptor2d_HCurve2d) Adaptor2d_Curve2d::Trim(const Standard_Real ,
110                                                const Standard_Real ,
111                                                const Standard_Real ) const 
112 {
113   throw Standard_NotImplemented("Adaptor2d_Curve2d::Trim");
114 }
115
116 //=======================================================================
117 //function : IsClosed
118 //purpose  : 
119 //=======================================================================
120
121 Standard_Boolean Adaptor2d_Curve2d::IsClosed() const 
122 {
123   throw Standard_NotImplemented("Adaptor2d_Curve2d::IsClosed");
124 }
125
126
127 //=======================================================================
128 //function : IsPeriodic
129 //purpose  : 
130 //=======================================================================
131
132 Standard_Boolean Adaptor2d_Curve2d::IsPeriodic() const 
133 {
134   throw Standard_NotImplemented("Adaptor2d_Curve2d::IsPeriodic");
135 }
136
137
138 //=======================================================================
139 //function : Period
140 //purpose  : 
141 //=======================================================================
142
143 Standard_Real Adaptor2d_Curve2d::Period() const 
144 {
145   throw Standard_NotImplemented("Adaptor2d_Curve2d::Period");
146 }
147
148
149 //=======================================================================
150 //function : Value
151 //purpose  : 
152 //=======================================================================
153
154 //gp_Pnt2d Adaptor2d_Curve2d::Value(const Standard_Real U) const 
155 gp_Pnt2d Adaptor2d_Curve2d::Value(const Standard_Real ) const 
156 {
157   throw Standard_NotImplemented("Adaptor2d_Curve2d::Value");
158 }
159
160
161 //=======================================================================
162 //function : D0
163 //purpose  : 
164 //=======================================================================
165
166 //void Adaptor2d_Curve2d::D0(const Standard_Real U, gp_Pnt2d& P) const 
167 void Adaptor2d_Curve2d::D0(const Standard_Real , gp_Pnt2d& ) const 
168 {
169   throw Standard_NotImplemented("Adaptor2d_Curve2d::D0");
170 }
171
172
173 //=======================================================================
174 //function : D1
175 //purpose  : 
176 //=======================================================================
177
178 //void Adaptor2d_Curve2d::D1(const Standard_Real U, 
179 //                       gp_Pnt2d& P, gp_Vec2d& V) const 
180 void Adaptor2d_Curve2d::D1(const Standard_Real , 
181                          gp_Pnt2d& , gp_Vec2d& ) const 
182 {
183   throw Standard_NotImplemented("Adaptor2d_Curve2d::D1");
184 }
185
186
187 //=======================================================================
188 //function : D2
189 //purpose  : 
190 //=======================================================================
191
192 //void Adaptor2d_Curve2d::D2(const Standard_Real U, 
193 //                       gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2) const 
194 void Adaptor2d_Curve2d::D2(const Standard_Real , 
195                          gp_Pnt2d& , gp_Vec2d& , gp_Vec2d& ) const 
196 {
197   throw Standard_NotImplemented("Adaptor2d_Curve2d::D2");
198 }
199
200
201 //=======================================================================
202 //function : D3
203 //purpose  : 
204 //=======================================================================
205
206 //void Adaptor2d_Curve2d::D3(const Standard_Real U, 
207 //                       gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3)
208 void Adaptor2d_Curve2d::D3(const Standard_Real , 
209                          gp_Pnt2d& , gp_Vec2d& , gp_Vec2d& , gp_Vec2d& ) const 
210 {
211   throw Standard_NotImplemented("Adaptor2d_Curve2d::D3");
212 }
213
214
215 //=======================================================================
216 //function : DN
217 //purpose  : 
218 //=======================================================================
219
220 //gp_Vec2d Adaptor2d_Curve2d::DN(const Standard_Real U, 
221 //                           const Standard_Integer N) const 
222 gp_Vec2d Adaptor2d_Curve2d::DN(const Standard_Real , 
223                              const Standard_Integer ) const 
224 {
225   throw Standard_NotImplemented("Adaptor2d_Curve2d::DN");
226 }
227
228
229 //=======================================================================
230 //function : Resolution
231 //purpose  : 
232 //=======================================================================
233
234 //Standard_Real Adaptor2d_Curve2d::Resolution(const Standard_Real R3d) const 
235 Standard_Real Adaptor2d_Curve2d::Resolution(const Standard_Real ) const 
236 {
237   throw Standard_NotImplemented("Adaptor2d_Curve2d::Resolution");
238 }
239
240
241 //=======================================================================
242 //function : GetType
243 //purpose  : 
244 //=======================================================================
245
246 GeomAbs_CurveType Adaptor2d_Curve2d::GetType() const 
247 {
248   throw Standard_NotImplemented("Adaptor2d_Curve2d::GetType");
249 }
250
251
252 //=======================================================================
253 //function : Line
254 //purpose  : 
255 //=======================================================================
256
257 gp_Lin2d Adaptor2d_Curve2d::Line() const 
258 {
259   throw Standard_NotImplemented("Adaptor2d_Curve2d::Line");
260 }
261
262
263 //=======================================================================
264 //function : Circle
265 //purpose  : 
266 //=======================================================================
267
268 gp_Circ2d Adaptor2d_Curve2d::Circle() const 
269 {
270   throw Standard_NotImplemented("Adaptor2d_Curve2d::Circle");
271 }
272
273
274 //=======================================================================
275 //function : Ellipse
276 //purpose  : 
277 //=======================================================================
278
279 gp_Elips2d Adaptor2d_Curve2d::Ellipse() const 
280 {
281   throw Standard_NotImplemented("Adaptor2d_Curve2d::Ellipse");
282 }
283
284
285 //=======================================================================
286 //function : Hyperbola
287 //purpose  : 
288 //=======================================================================
289
290 gp_Hypr2d Adaptor2d_Curve2d::Hyperbola() const 
291 {
292   throw Standard_NotImplemented("Adaptor2d_Curve2d::Hyperbola");
293 }
294
295
296 //=======================================================================
297 //function : Parabola
298 //purpose  : 
299 //=======================================================================
300
301 gp_Parab2d Adaptor2d_Curve2d::Parabola() const 
302 {
303   throw Standard_NotImplemented("Adaptor2d_Curve2d::Parabola");
304 }
305
306
307 //=======================================================================
308 //function : Degree
309 //purpose  : 
310 //=======================================================================
311
312 Standard_Integer Adaptor2d_Curve2d::Degree() const 
313 {
314   throw Standard_NotImplemented("Adaptor2d_Curve2d::Degree");
315 }
316
317
318 //=======================================================================
319 //function : IsRational
320 //purpose  : 
321 //=======================================================================
322
323 Standard_Boolean Adaptor2d_Curve2d::IsRational() const 
324 {
325   throw Standard_NotImplemented("Adaptor2d_Curve2d::IsRational");
326 }
327
328
329 //=======================================================================
330 //function : NbPoles
331 //purpose  : 
332 //=======================================================================
333
334 Standard_Integer Adaptor2d_Curve2d::NbPoles() const 
335 {
336   throw Standard_NotImplemented("Adaptor2d_Curve2d::NbPole");
337 }
338
339
340 //=======================================================================
341 //function : NbKnots
342 //purpose  : 
343 //=======================================================================
344
345 Standard_Integer Adaptor2d_Curve2d::NbKnots() const 
346 {
347   throw Standard_NotImplemented("Adaptor2d_Curve2d::NbKnots");
348 }
349
350
351 //=======================================================================
352 //function : Bezier
353 //purpose  : 
354 //=======================================================================
355
356 Handle(Geom2d_BezierCurve) Adaptor2d_Curve2d::Bezier() const 
357 {
358   throw Standard_NotImplemented("Adaptor2d_Curve2d::Bezier");
359 }
360
361
362 //=======================================================================
363 //function : BSpline
364 //purpose  : 
365 //=======================================================================
366
367 Handle(Geom2d_BSplineCurve) Adaptor2d_Curve2d::BSpline() const 
368 {
369   throw Standard_NotImplemented("Adaptor2d_Curve2d::BSpline");
370 }
371
372 //=======================================================================
373 //function : NbSamples
374 //purpose  : 
375 //=======================================================================
376 Standard_Integer Adaptor2d_Curve2d::NbSamples() const
377 {
378   return 20;  
379 }
380