Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:42

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 
0033 //! The GeomTools package provides  utilities for Geometry.
0034 //!
0035 //! *  SurfaceSet,  CurveSet, Curve2dSet  : Tools used
0036 //! for dumping, writing and reading.
0037 //!
0038 //! * Methods to dump, write, read curves and surfaces.
0039 class GeomTools 
0040 {
0041 public:
0042 
0043   DEFINE_STANDARD_ALLOC
0044 
0045   
0046   //! A set of Curves from Geom2d.
0047   //! Dumps the surface on the stream.
0048   Standard_EXPORT static void Dump (const Handle(Geom_Surface)& S, Standard_OStream& OS);
0049   
0050   //! Writes the surface on the stream.
0051   Standard_EXPORT static void Write (const Handle(Geom_Surface)& S, Standard_OStream& OS);
0052   
0053   //! Reads the surface from the stream.
0054   Standard_EXPORT static void Read (Handle(Geom_Surface)& S, Standard_IStream& IS);
0055   
0056   //! Dumps the Curve on the stream.
0057   Standard_EXPORT static void Dump (const Handle(Geom_Curve)& C, Standard_OStream& OS);
0058   
0059   //! Writes the Curve on the stream.
0060   Standard_EXPORT static void Write (const Handle(Geom_Curve)& C, Standard_OStream& OS);
0061   
0062   //! Reads the Curve from the stream.
0063   Standard_EXPORT static void Read (Handle(Geom_Curve)& C, Standard_IStream& IS);
0064   
0065   //! Dumps the Curve on the stream.
0066   Standard_EXPORT static void Dump (const Handle(Geom2d_Curve)& C, Standard_OStream& OS);
0067   
0068   //! Writes the Curve on the stream.
0069   Standard_EXPORT static void Write (const Handle(Geom2d_Curve)& C, Standard_OStream& OS);
0070   
0071   //! Reads the Curve from the stream.
0072   Standard_EXPORT static void Read (Handle(Geom2d_Curve)& C, Standard_IStream& IS);
0073   
0074   Standard_EXPORT static void SetUndefinedTypeHandler (const Handle(GeomTools_UndefinedTypeHandler)& aHandler);
0075   
0076   Standard_EXPORT static Handle(GeomTools_UndefinedTypeHandler) GetUndefinedTypeHandler();
0077   
0078   //! Reads the Standard_Real value from the stream. Zero is read
0079   //! in case of error
0080   Standard_EXPORT static void GetReal (Standard_IStream& IS, Standard_Real& theValue);
0081 
0082 };
0083 
0084 #endif // _GeomTools_HeaderFile