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