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