b311480e |
1 | // Created on: 1999-10-29 |
2 | // Created by: Pavel DURANDIN |
3 | // Copyright (c) 1999-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 | // |
d5f74e42 |
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 |
973c2be1 |
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 | |
42cf5bc1 |
17 | |
18 | #include <Geom2d_Curve.hxx> |
42cf5bc1 |
19 | #include <Geom_Surface.hxx> |
20 | #include <GeomTools_UndefinedTypeHandler.hxx> |
21 | #include <Standard_Type.hxx> |
7fd59977 |
22 | |
25e59720 |
23 | IMPLEMENT_STANDARD_RTTIEXT(GeomTools_UndefinedTypeHandler,Standard_Transient) |
92efcf78 |
24 | |
7fd59977 |
25 | GeomTools_UndefinedTypeHandler::GeomTools_UndefinedTypeHandler() |
26 | { |
27 | } |
28 | |
29 | //======================================================================= |
30 | //function : PrintCurve |
31 | //purpose : |
32 | //======================================================================= |
33 | |
34 | void GeomTools_UndefinedTypeHandler::PrintCurve(const Handle(Geom_Curve)& /*C*/, |
35 | Standard_OStream& OS, |
36 | const Standard_Boolean compact) const |
37 | { |
38 | if (!compact) |
39 | OS << "****** UNKNOWN CURVE TYPE ******\n"; |
40 | else |
04232180 |
41 | std::cout << "****** UNKNOWN CURVE TYPE ******" << std::endl; |
7fd59977 |
42 | } |
43 | |
44 | //======================================================================= |
45 | //function : ReadCurve |
46 | //purpose : |
47 | //======================================================================= |
48 | |
49 | Standard_IStream& GeomTools_UndefinedTypeHandler::ReadCurve(const Standard_Integer /*ctype*/, |
50 | Standard_IStream& IS, |
51 | Handle(Geom_Curve)& /*C*/) const |
52 | { |
53 | return IS; |
54 | } |
55 | |
56 | //======================================================================= |
57 | //function : |
58 | //purpose : |
59 | //======================================================================= |
60 | |
61 | void GeomTools_UndefinedTypeHandler::PrintCurve2d(const Handle(Geom2d_Curve)& /*C*/, |
62 | Standard_OStream& OS, |
63 | const Standard_Boolean compact) const |
64 | { |
65 | if (!compact) |
66 | OS << "****** UNKNOWN CURVE2d TYPE ******\n"; |
67 | else |
04232180 |
68 | std::cout << "****** UNKNOWN CURVE2d TYPE ******" << std::endl; |
7fd59977 |
69 | } |
70 | |
71 | //======================================================================= |
72 | //function : ReadCurve2d |
73 | //purpose : |
74 | //======================================================================= |
75 | |
76 | Standard_IStream& GeomTools_UndefinedTypeHandler::ReadCurve2d(const Standard_Integer /*ctype*/, |
77 | Standard_IStream& IS, |
78 | Handle(Geom2d_Curve)& /*C*/) const |
79 | { |
80 | return IS; |
81 | } |
82 | |
83 | //======================================================================= |
84 | //function : PrintSurface |
85 | //purpose : |
86 | //======================================================================= |
87 | |
88 | void GeomTools_UndefinedTypeHandler::PrintSurface(const Handle(Geom_Surface)& /*S*/, |
89 | Standard_OStream& OS, |
90 | const Standard_Boolean compact) const |
91 | { |
92 | if (!compact) |
93 | OS << "****** UNKNOWN SURFACE TYPE ******\n"; |
94 | else |
04232180 |
95 | std::cout << "****** UNKNOWN SURFACE TYPE ******" << std::endl; |
7fd59977 |
96 | } |
97 | |
98 | Standard_IStream& GeomTools_UndefinedTypeHandler::ReadSurface(const Standard_Integer /*ctype*/, |
99 | Standard_IStream& IS, |
100 | Handle(Geom_Surface)& /*S*/) const |
101 | { |
102 | return IS; |
103 | } |