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 #include <Adaptor3d_Curve.hxx>
18 
19 #include <Geom_BezierCurve.hxx>
20 #include <Geom_BSplineCurve.hxx>
21 #include <Geom_OffsetCurve.hxx>
22 #include <gp_Circ.hxx>
23 #include <gp_Elips.hxx>
24 #include <gp_Hypr.hxx>
25 #include <gp_Lin.hxx>
26 #include <gp_Parab.hxx>
27 #include <gp_Pnt.hxx>
28 #include <gp_Vec.hxx>
29 #include <Standard_DomainError.hxx>
30 #include <Standard_NoSuchObject.hxx>
31 #include <Standard_NotImplemented.hxx>
32 #include <Standard_OutOfRange.hxx>
33 
IMPLEMENT_STANDARD_RTTIEXT(Adaptor3d_Curve,Standard_Transient)34 IMPLEMENT_STANDARD_RTTIEXT(Adaptor3d_Curve, Standard_Transient)
35 
36 //=======================================================================
37 //function : ~Adaptor3d_Curve
38 //purpose  : Destructor
39 //=======================================================================
40 Adaptor3d_Curve::~Adaptor3d_Curve()
41 {
42 }
43 
44 //=======================================================================
45 //function : ShallowCopy
46 //purpose  :
47 //=======================================================================
48 
Handle(Adaptor3d_Curve)49 Handle(Adaptor3d_Curve) Adaptor3d_Curve::ShallowCopy() const
50 {
51   throw Standard_NotImplemented("Adaptor3d_Curve::ShallowCopy");
52 }
53 
54 //=======================================================================
55 //function : FirstParameter
56 //purpose  :
57 //=======================================================================
58 
FirstParameter() const59 Standard_Real Adaptor3d_Curve::FirstParameter() const
60 {
61   throw Standard_NotImplemented("Adaptor3d_Curve::FirstParameter");
62 }
63 
64 
65 //=======================================================================
66 //function : LastParameter
67 //purpose  :
68 //=======================================================================
69 
LastParameter() const70 Standard_Real Adaptor3d_Curve::LastParameter() const
71 {
72   throw Standard_NotImplemented("Adaptor3d_Curve::LastParameter");
73 }
74 
75 
76 //=======================================================================
77 //function : Continuity
78 //purpose  :
79 //=======================================================================
80 
Continuity() const81 GeomAbs_Shape Adaptor3d_Curve::Continuity() const
82 {
83   throw Standard_NotImplemented("Adaptor3d_Curve::Continuity");
84 }
85 
86 
87 //=======================================================================
88 //function : NbIntervals
89 //purpose  :
90 //=======================================================================
91 
NbIntervals(const GeomAbs_Shape) const92 Standard_Integer Adaptor3d_Curve::NbIntervals(const GeomAbs_Shape ) const
93 {
94   throw Standard_NotImplemented("Adaptor3d_Curve::NbIntervals");
95 }
96 
97 
98 //=======================================================================
99 //function : Intervals
100 //purpose  :
101 //=======================================================================
102 
Intervals(TColStd_Array1OfReal &,const GeomAbs_Shape) const103 void Adaptor3d_Curve::Intervals(TColStd_Array1OfReal& , const GeomAbs_Shape ) const
104 {
105   throw Standard_NotImplemented("Adaptor3d_Curve::Intervals");
106 }
107 
108 
109 //=======================================================================
110 //function : Trim
111 //purpose  :
112 //=======================================================================
113 
114 //Handle(Adaptor3d_Curve) Adaptor3d_Curve::Trim(const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const
Handle(Adaptor3d_Curve)115 Handle(Adaptor3d_Curve) Adaptor3d_Curve::Trim(const Standard_Real , const Standard_Real , const Standard_Real ) const
116 {
117   throw Standard_NotImplemented("Adaptor3d_Curve::Trim");
118 }
119 
120 
121 //=======================================================================
122 //function : IsClosed
123 //purpose  :
124 //=======================================================================
125 
IsClosed() const126 Standard_Boolean Adaptor3d_Curve::IsClosed() const
127 {
128   throw Standard_NotImplemented("Adaptor3d_Curve::IsClosed");
129 }
130 
131 
132 //=======================================================================
133 //function : IsPeriodic
134 //purpose  :
135 //=======================================================================
136 
IsPeriodic() const137 Standard_Boolean Adaptor3d_Curve::IsPeriodic() const
138 {
139   throw Standard_NotImplemented("Adaptor3d_Curve::IsPeriodic");
140 }
141 
142 
143 //=======================================================================
144 //function : Period
145 //purpose  :
146 //=======================================================================
147 
Period() const148 Standard_Real Adaptor3d_Curve::Period() const
149 {
150   throw Standard_NotImplemented("Adaptor3d_Curve::Period");
151 }
152 
153 
154 //=======================================================================
155 //function : Value
156 //purpose  :
157 //=======================================================================
158 
159 //gp_Pnt Adaptor3d_Curve::Value(const Standard_Real U) const
Value(const Standard_Real) const160 gp_Pnt Adaptor3d_Curve::Value(const Standard_Real ) const
161 {
162   throw Standard_NotImplemented("Adaptor3d_Curve::Value");
163 }
164 
165 
166 //=======================================================================
167 //function : D0
168 //purpose  :
169 //=======================================================================
170 
171 //void Adaptor3d_Curve::D0(const Standard_Real U, gp_Pnt& P) const
D0(const Standard_Real,gp_Pnt &) const172 void Adaptor3d_Curve::D0(const Standard_Real , gp_Pnt& ) const
173 {
174   throw Standard_NotImplemented("Adaptor3d_Curve::D0");
175 }
176 
177 
178 //=======================================================================
179 //function : D1
180 //purpose  :
181 //=======================================================================
182 
183 //void Adaptor3d_Curve::D1(const Standard_Real U, gp_Pnt& P, gp_Vec& V) const
D1(const Standard_Real,gp_Pnt &,gp_Vec &) const184 void Adaptor3d_Curve::D1(const Standard_Real , gp_Pnt& , gp_Vec& ) const
185 {
186   throw Standard_NotImplemented("Adaptor3d_Curve::D1");
187 }
188 
189 
190 //=======================================================================
191 //function : D2
192 //purpose  :
193 //=======================================================================
194 
195 //void Adaptor3d_Curve::D2(const Standard_Real U, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2) const
D2(const Standard_Real,gp_Pnt &,gp_Vec &,gp_Vec &) const196 void Adaptor3d_Curve::D2(const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& ) const
197 {
198   throw Standard_NotImplemented("Adaptor3d_Curve::D2");
199 }
200 
201 
202 //=======================================================================
203 //function : D3
204 //purpose  :
205 //=======================================================================
206 
207 //void Adaptor3d_Curve::D3(const Standard_Real U, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2, gp_Vec& V3) const
D3(const Standard_Real,gp_Pnt &,gp_Vec &,gp_Vec &,gp_Vec &) const208 void Adaptor3d_Curve::D3(const Standard_Real , gp_Pnt& , gp_Vec& , gp_Vec& , gp_Vec& ) const
209 {
210   throw Standard_NotImplemented("Adaptor3d_Curve::D3");
211 }
212 
213 
214 //=======================================================================
215 //function : DN
216 //purpose  :
217 //=======================================================================
218 
219 //gp_Vec Adaptor3d_Curve::DN(const Standard_Real U, const Standard_Integer N) const
DN(const Standard_Real,const Standard_Integer) const220 gp_Vec Adaptor3d_Curve::DN(const Standard_Real , const Standard_Integer ) const
221 {
222   throw Standard_NotImplemented("Adaptor3d_Curve::DN");
223 }
224 
225 
226 //=======================================================================
227 //function : Resolution
228 //purpose  :
229 //=======================================================================
230 
231 //Standard_Real Adaptor3d_Curve::Resolution(const Standard_Real R3d) const
Resolution(const Standard_Real) const232 Standard_Real Adaptor3d_Curve::Resolution(const Standard_Real ) const
233 {
234   throw Standard_NotImplemented("Adaptor3d_Curve::Resolution");
235 }
236 
237 
238 //=======================================================================
239 //function : GetType
240 //purpose  :
241 //=======================================================================
242 
GetType() const243 GeomAbs_CurveType Adaptor3d_Curve::GetType() const
244 {
245   throw Standard_NotImplemented("Adaptor3d_Curve::GetType");
246 }
247 
248 
249 //=======================================================================
250 //function : Line
251 //purpose  :
252 //=======================================================================
253 
Line() const254 gp_Lin Adaptor3d_Curve::Line() const
255 {
256   throw Standard_NotImplemented("Adaptor3d_Curve::Line");
257 }
258 
259 
260 //=======================================================================
261 //function : Circle
262 //purpose  :
263 //=======================================================================
264 
Circle() const265 gp_Circ Adaptor3d_Curve::Circle() const
266 {
267   throw Standard_NotImplemented("Adaptor3d_Curve::Circle");
268 }
269 
270 
271 //=======================================================================
272 //function : Ellipse
273 //purpose  :
274 //=======================================================================
275 
Ellipse() const276 gp_Elips Adaptor3d_Curve::Ellipse() const
277 {
278   throw Standard_NotImplemented("Adaptor3d_Curve::Ellipse");
279 }
280 
281 
282 //=======================================================================
283 //function : Hyperbola
284 //purpose  :
285 //=======================================================================
286 
Hyperbola() const287 gp_Hypr Adaptor3d_Curve::Hyperbola() const
288 {
289   throw Standard_NotImplemented("Adaptor3d_Curve::Hyperbola");
290 }
291 
292 
293 //=======================================================================
294 //function : Parabola
295 //purpose  :
296 //=======================================================================
297 
Parabola() const298 gp_Parab Adaptor3d_Curve::Parabola() const
299 {
300   throw Standard_NotImplemented("Adaptor3d_Curve::Parabola");
301 }
302 
303 
304 //=======================================================================
305 //function : Degree
306 //purpose  :
307 //=======================================================================
308 
Degree() const309 Standard_Integer Adaptor3d_Curve::Degree() const
310 {
311   throw Standard_NotImplemented("Adaptor3d_Curve::Degree");
312 }
313 
314 
315 //=======================================================================
316 //function : IsRational
317 //purpose  :
318 //=======================================================================
319 
IsRational() const320 Standard_Boolean Adaptor3d_Curve::IsRational() const
321 {
322   throw Standard_NotImplemented("Adaptor3d_Curve::IsRational");
323 }
324 
325 
326 //=======================================================================
327 //function : NbPoles
328 //purpose  :
329 //=======================================================================
330 
NbPoles() const331 Standard_Integer Adaptor3d_Curve::NbPoles() const
332 {
333   throw Standard_NotImplemented("Adaptor3d_Curve::NbPoles");
334 }
335 
336 
337 //=======================================================================
338 //function : NbKnots
339 //purpose  :
340 //=======================================================================
341 
NbKnots() const342 Standard_Integer Adaptor3d_Curve::NbKnots() const
343 {
344   throw Standard_NotImplemented("Adaptor3d_Curve::NbKnots");
345 }
346 
347 
348 //=======================================================================
349 //function : Bezier
350 //purpose  :
351 //=======================================================================
352 
Handle(Geom_BezierCurve)353 Handle(Geom_BezierCurve) Adaptor3d_Curve::Bezier() const
354 {
355   throw Standard_NotImplemented("Adaptor3d_Curve::Bezier");
356 }
357 
358 
359 //=======================================================================
360 //function : BSpline
361 //purpose  :
362 //=======================================================================
363 
Handle(Geom_BSplineCurve)364 Handle(Geom_BSplineCurve) Adaptor3d_Curve::BSpline() const
365 {
366   throw Standard_NotImplemented("Adaptor3d_Curve::BSpline");
367 }
368 
369 //=======================================================================
370 //function : BasisCurve
371 //purpose  :
372 //=======================================================================
373 
Handle(Geom_OffsetCurve)374 Handle(Geom_OffsetCurve) Adaptor3d_Curve::OffsetCurve() const
375 {
376   throw Standard_NotImplemented("Adaptor3d_Curve::OffsetCurve");
377 }
378