Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-29 08:16:27

0001 // Created on: 1992-08-28
0002 // Created by: Remi LEQUETTE
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _GeomTools_HeaderFile
0018 #define _GeomTools_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_OStream.hxx>
0025 #include <Standard_IStream.hxx>
0026 #include <Standard_Real.hxx>
0027 class Geom_Surface;
0028 class Geom_Curve;
0029 class Geom2d_Curve;
0030 class GeomTools_UndefinedTypeHandler;
0031 
0032 //! The GeomTools package provides  utilities for Geometry.
0033 //!
0034 //! *  SurfaceSet,  CurveSet, Curve2dSet  : Tools used
0035 //! for dumping, writing and reading.
0036 //!
0037 //! * Methods to dump, write, read curves and surfaces.
0038 class GeomTools
0039 {
0040 public:
0041   DEFINE_STANDARD_ALLOC
0042 
0043   //! A set of Curves from Geom2d.
0044   //! Dumps the surface on the stream.
0045   Standard_EXPORT static void Dump(const Handle(Geom_Surface)& S, Standard_OStream& OS);
0046 
0047   //! Writes the surface on the stream.
0048   Standard_EXPORT static void Write(const Handle(Geom_Surface)& S, Standard_OStream& OS);
0049 
0050   //! Reads the surface from the stream.
0051   Standard_EXPORT static void Read(Handle(Geom_Surface)& S, Standard_IStream& IS);
0052 
0053   //! Dumps the Curve on the stream.
0054   Standard_EXPORT static void Dump(const Handle(Geom_Curve)& C, Standard_OStream& OS);
0055 
0056   //! Writes the Curve on the stream.
0057   Standard_EXPORT static void Write(const Handle(Geom_Curve)& C, Standard_OStream& OS);
0058 
0059   //! Reads the Curve from the stream.
0060   Standard_EXPORT static void Read(Handle(Geom_Curve)& C, Standard_IStream& IS);
0061 
0062   //! Dumps the Curve on the stream.
0063   Standard_EXPORT static void Dump(const Handle(Geom2d_Curve)& C, Standard_OStream& OS);
0064 
0065   //! Writes the Curve on the stream.
0066   Standard_EXPORT static void Write(const Handle(Geom2d_Curve)& C, Standard_OStream& OS);
0067 
0068   //! Reads the Curve from the stream.
0069   Standard_EXPORT static void Read(Handle(Geom2d_Curve)& C, Standard_IStream& IS);
0070 
0071   Standard_EXPORT static void SetUndefinedTypeHandler(
0072     const Handle(GeomTools_UndefinedTypeHandler)& aHandler);
0073 
0074   Standard_EXPORT static Handle(GeomTools_UndefinedTypeHandler) GetUndefinedTypeHandler();
0075 
0076   //! Reads the Standard_Real value from the stream. Zero is read
0077   //! in case of error
0078   Standard_EXPORT static void GetReal(Standard_IStream& IS, Standard_Real& theValue);
0079 };
0080 
0081 #endif // _GeomTools_HeaderFile