1 // Created on: 1992-08-28
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _GeomTools_HeaderFile
18 #define _GeomTools_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <Standard_OStream.hxx>
25 #include <Standard_IStream.hxx>
26 #include <Standard_Real.hxx>
30 class GeomTools_UndefinedTypeHandler;
31 class GeomTools_UndefinedTypeHandler;
32 class GeomTools_SurfaceSet;
33 class GeomTools_CurveSet;
34 class GeomTools_Curve2dSet;
37 //! The GeomTools package provides utilities for Geometry.
39 //! * SurfaceSet, CurveSet, Curve2dSet : Tools used
40 //! for dumping, writing and reading.
42 //! * Methods to dump, write, read curves and surfaces.
50 //! A set of Curves from Geom2d.
51 //! Dumps the surface on the stream.
52 Standard_EXPORT static void Dump (const Handle(Geom_Surface)& S, Standard_OStream& OS);
54 //! Writes the surface on the stream.
55 Standard_EXPORT static void Write (const Handle(Geom_Surface)& S, Standard_OStream& OS);
57 //! Reads the surface from the stream.
58 Standard_EXPORT static void Read (Handle(Geom_Surface)& S, Standard_IStream& IS);
60 //! Dumps the Curve on the stream.
61 Standard_EXPORT static void Dump (const Handle(Geom_Curve)& C, Standard_OStream& OS);
63 //! Writes the Curve on the stream.
64 Standard_EXPORT static void Write (const Handle(Geom_Curve)& C, Standard_OStream& OS);
66 //! Reads the Curve from the stream.
67 Standard_EXPORT static void Read (Handle(Geom_Curve)& C, Standard_IStream& IS);
69 //! Dumps the Curve on the stream.
70 Standard_EXPORT static void Dump (const Handle(Geom2d_Curve)& C, Standard_OStream& OS);
72 //! Writes the Curve on the stream.
73 Standard_EXPORT static void Write (const Handle(Geom2d_Curve)& C, Standard_OStream& OS);
75 //! Reads the Curve from the stream.
76 Standard_EXPORT static void Read (Handle(Geom2d_Curve)& C, Standard_IStream& IS);
78 Standard_EXPORT static void SetUndefinedTypeHandler (const Handle(GeomTools_UndefinedTypeHandler)& aHandler);
80 Standard_EXPORT static Handle(GeomTools_UndefinedTypeHandler) GetUndefinedTypeHandler();
82 //! Reads the Standard_Real value from the stream. Zero is read
84 Standard_EXPORT static void GetReal (Standard_IStream& IS, Standard_Real& theValue);
100 friend class GeomTools_UndefinedTypeHandler;
101 friend class GeomTools_SurfaceSet;
102 friend class GeomTools_CurveSet;
103 friend class GeomTools_Curve2dSet;
113 #endif // _GeomTools_HeaderFile