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