0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[occt.git] / src / BRep / BRep_CurveRepresentation.cxx
1 // Created on: 1993-07-06
2 // Created by: Remi LEQUETTE
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 <BRep_CurveRepresentation.hxx>
19 #include <Geom2d_Curve.hxx>
20 #include <Geom_Curve.hxx>
21 #include <Geom_Surface.hxx>
22 #include <Poly_Polygon2D.hxx>
23 #include <Poly_Polygon3D.hxx>
24 #include <Poly_PolygonOnTriangulation.hxx>
25 #include <Poly_Triangulation.hxx>
26 #include <Standard_DomainError.hxx>
27 #include <Standard_Type.hxx>
28 #include <TColStd_HArray1OfInteger.hxx>
29 #include <TopLoc_Location.hxx>
30
31 IMPLEMENT_STANDARD_RTTIEXT(BRep_CurveRepresentation,Standard_Transient)
32
33 //=======================================================================
34 //function : BRep_CurveRepresentation
35 //purpose  : 
36 //=======================================================================
37 BRep_CurveRepresentation::BRep_CurveRepresentation(const TopLoc_Location& L):
38        myLocation(L)
39 {
40 }
41
42
43 //=======================================================================
44 //function : IsCurve3D
45 //purpose  : 
46 //=======================================================================
47
48 Standard_Boolean  BRep_CurveRepresentation::IsCurve3D()const 
49 {
50   return Standard_False;
51 }
52
53
54 //=======================================================================
55 //function : IsCurveOnSurface
56 //purpose  : 
57 //=======================================================================
58
59 Standard_Boolean  BRep_CurveRepresentation::IsCurveOnSurface()const 
60 {
61   return Standard_False;
62 }
63
64
65 //=======================================================================
66 //function : IsCurveOnClosedSurface
67 //purpose  : 
68 //=======================================================================
69
70 Standard_Boolean  BRep_CurveRepresentation::IsCurveOnClosedSurface()const 
71 {
72   return Standard_False;
73 }
74
75
76 //=======================================================================
77 //function : IsRegularity
78 //purpose  : 
79 //=======================================================================
80
81 Standard_Boolean  BRep_CurveRepresentation::IsRegularity()const 
82 {
83   return Standard_False;
84 }
85
86 //=======================================================================
87 //function : IsCurveOnSurface
88 //purpose  : 
89 //=======================================================================
90
91 Standard_Boolean  BRep_CurveRepresentation::IsCurveOnSurface
92   (const Handle(Geom_Surface)& , const TopLoc_Location& )const 
93 {
94   return Standard_False;
95 }
96
97
98 //=======================================================================
99 //function : IsRegularity
100 //purpose  : 
101 //=======================================================================
102
103 Standard_Boolean  BRep_CurveRepresentation::IsRegularity
104   (const Handle(Geom_Surface)& ,
105    const Handle(Geom_Surface)& ,
106    const TopLoc_Location& , 
107    const TopLoc_Location& )const 
108 {
109   return Standard_False;
110 }
111
112 //=======================================================================
113 //function : IsPolygon3D
114 //purpose  : 
115 //=======================================================================
116
117 Standard_Boolean  BRep_CurveRepresentation::IsPolygon3D() const
118 {
119   return Standard_False;
120 }
121
122 //=======================================================================
123 //function : IsPolygonOnTriangulation
124 //purpose  : 
125 //=======================================================================
126
127 Standard_Boolean  BRep_CurveRepresentation::IsPolygonOnTriangulation() const
128 {
129   return Standard_False;
130 }
131
132
133 //=======================================================================
134 //function : IsPolygonOnTriangulation
135 //purpose  : 
136 //=======================================================================
137
138 Standard_Boolean  BRep_CurveRepresentation::IsPolygonOnTriangulation
139   (const Handle(Poly_Triangulation)&, const TopLoc_Location&) const
140 {
141   return Standard_False;
142 }
143
144
145 //=======================================================================
146 //function : IsPolygonOnClosedTriangulation
147 //purpose  : 
148 //=======================================================================
149
150 Standard_Boolean  BRep_CurveRepresentation::IsPolygonOnClosedTriangulation() const
151 {
152   return Standard_False;
153 }
154
155
156 //=======================================================================
157 //function : IsPolygonOnClosedSurface
158 //purpose  : 
159 //=======================================================================
160
161 Standard_Boolean  BRep_CurveRepresentation::IsPolygonOnClosedSurface() const
162 {
163   return Standard_False;
164 }
165
166 //=======================================================================
167 //function : IsPolygonOnSurface
168 //purpose  : 
169 //=======================================================================
170
171 Standard_Boolean  BRep_CurveRepresentation::IsPolygonOnSurface() const
172 {
173   return Standard_False;
174 }
175
176 //=======================================================================
177 //function : IsPolygonOnSurface
178 //purpose  : 
179 //=======================================================================
180
181 Standard_Boolean  BRep_CurveRepresentation::IsPolygonOnSurface
182   (const Handle(Geom_Surface)&, 
183    const TopLoc_Location&) const
184 {
185   return Standard_False;
186 }
187
188
189 //=======================================================================
190 //function : Curve3D
191 //purpose  : 
192 //=======================================================================
193
194 const Handle(Geom_Curve)&  BRep_CurveRepresentation::Curve3D()const 
195 {
196   throw Standard_DomainError("BRep_CurveRepresentation");
197 }
198
199 //=======================================================================
200 //function : Curve3D
201 //purpose  : 
202 //=======================================================================
203
204 void BRep_CurveRepresentation::Curve3D(const Handle(Geom_Curve)&)
205 {
206   throw Standard_DomainError("BRep_CurveRepresentation");
207 }
208
209
210
211
212
213 //=======================================================================
214 //function : Surface
215 //purpose  : 
216 //=======================================================================
217
218 const Handle(Geom_Surface)&  BRep_CurveRepresentation::Surface()const 
219 {
220   throw Standard_DomainError("BRep_CurveRepresentation");
221 }
222
223
224 //=======================================================================
225 //function : PCurve
226 //purpose  : 
227 //=======================================================================
228
229 const Handle(Geom2d_Curve)&  BRep_CurveRepresentation::PCurve()const 
230 {
231   throw Standard_DomainError("BRep_CurveRepresentation");
232 }
233
234 //=======================================================================
235 //function : PCurve2
236 //purpose  : 
237 //=======================================================================
238
239 const Handle(Geom2d_Curve)&  BRep_CurveRepresentation::PCurve2()const 
240 {
241   throw Standard_DomainError("BRep_CurveRepresentation");
242 }
243
244 //=======================================================================
245 //function : PCurve
246 //purpose  : 
247 //=======================================================================
248
249 void  BRep_CurveRepresentation::PCurve(const Handle(Geom2d_Curve)&)
250 {
251   throw Standard_DomainError("BRep_CurveRepresentation");
252 }
253
254 //=======================================================================
255 //function : PCurve2
256 //purpose  : 
257 //=======================================================================
258
259 void  BRep_CurveRepresentation::PCurve2(const Handle(Geom2d_Curve)&)
260 {
261   throw Standard_DomainError("BRep_CurveRepresentation");
262 }
263
264
265 //=======================================================================
266 //function : Continuity
267 //purpose  : 
268 //=======================================================================
269
270 const GeomAbs_Shape&  BRep_CurveRepresentation::Continuity()const 
271 {
272   throw Standard_DomainError("BRep_CurveRepresentation");
273 }
274
275 //=======================================================================
276 //function : Continuity
277 //purpose  : 
278 //=======================================================================
279
280 void BRep_CurveRepresentation::Continuity(const GeomAbs_Shape )
281 {
282   throw Standard_DomainError("BRep_CurveRepresentation");
283 }
284
285
286 //=======================================================================
287 //function : Surface2
288 //purpose  : 
289 //=======================================================================
290
291 const Handle(Geom_Surface)&  BRep_CurveRepresentation::Surface2()const 
292 {
293   throw Standard_DomainError("BRep_CurveRepresentation");
294 }
295
296
297 //=======================================================================
298 //function : Location2
299 //purpose  : 
300 //=======================================================================
301
302 const TopLoc_Location&  BRep_CurveRepresentation::Location2()const 
303 {
304   throw Standard_DomainError("BRep_CurveRepresentation");
305 }
306
307
308
309 //=======================================================================
310 //function : Polygon3D
311 //purpose  : 
312 //=======================================================================
313
314 const Handle(Poly_Polygon3D)&  BRep_CurveRepresentation::Polygon3D()const 
315 {
316   throw Standard_DomainError("BRep_CurveRepresentation");
317 }
318
319 //=======================================================================
320 //function : Polygon3D
321 //purpose  : 
322 //=======================================================================
323
324 void BRep_CurveRepresentation::Polygon3D(const Handle(Poly_Polygon3D)&)
325 {
326   throw Standard_DomainError("BRep_CurveRepresentation");
327 }
328
329
330 //=======================================================================
331 //function : Polygon
332 //purpose  : 
333 //=======================================================================
334
335 const Handle(Poly_Polygon2D)&  BRep_CurveRepresentation::Polygon()const 
336 {
337   throw Standard_DomainError("BRep_CurveRepresentation");
338 }
339
340
341 //=======================================================================
342 //function : Polygon
343 //purpose  : 
344 //=======================================================================
345
346 void BRep_CurveRepresentation::Polygon(const Handle(Poly_Polygon2D)&)
347 {
348   throw Standard_DomainError("BRep_CurveRepresentation");
349 }
350
351 //=======================================================================
352 //function : PolygonOnTriangulation2
353 //purpose  : 
354 //=======================================================================
355
356 const Handle(Poly_PolygonOnTriangulation)& BRep_CurveRepresentation::PolygonOnTriangulation2() const
357 {
358   throw Standard_DomainError("BRep_CurveRepresentation");
359 }
360
361 //=======================================================================
362 //function : PolygonOnTriangulation2
363 //purpose  : 
364 //=======================================================================
365
366 void BRep_CurveRepresentation::PolygonOnTriangulation2
367   (const Handle(Poly_PolygonOnTriangulation)&) 
368 {
369   throw Standard_DomainError("BRep_CurveRepresentation");
370 }
371
372
373 //=======================================================================
374 //function : PolygonOnTriangulation
375 //purpose  : 
376 //=======================================================================
377
378 void BRep_CurveRepresentation::PolygonOnTriangulation
379   (const Handle(Poly_PolygonOnTriangulation)&)
380 {
381   throw Standard_DomainError("BRep_CurveRepresentation");
382 }
383
384
385 //=======================================================================
386 //function : PolygonOnTriangulation
387 //purpose  : 
388 //=======================================================================
389
390 const Handle(Poly_PolygonOnTriangulation)& BRep_CurveRepresentation::PolygonOnTriangulation()
391 const
392 {
393   throw Standard_DomainError("BRep_CurveRepresentation");
394 }
395 //=======================================================================
396 //function : Triangulation
397 //purpose  : 
398 //=======================================================================
399
400 const Handle(Poly_Triangulation)& BRep_CurveRepresentation::Triangulation()
401 const
402 {
403   throw Standard_DomainError("BRep_CurveRepresentation");
404 }
405
406
407
408 //=======================================================================
409 //function : Polygon2
410 //purpose  : 
411 //=======================================================================
412
413 const Handle(Poly_Polygon2D)&  BRep_CurveRepresentation::Polygon2()const 
414 {
415   throw Standard_DomainError("BRep_CurveRepresentation");
416 }
417
418
419 //=======================================================================
420 //function : Polygon2
421 //purpose  : 
422 //=======================================================================
423
424 void BRep_CurveRepresentation::Polygon2(const Handle(Poly_Polygon2D)&)
425 {
426   throw Standard_DomainError("BRep_CurveRepresentation");
427 }
428