summaryrefslogtreecommitdiff
path: root/inc/GeomTools.hxx
blob: 6a7c320e9aac176e00988e87e6f34938ef56303f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _GeomTools_HeaderFile
#define _GeomTools_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Handle_Geom_Surface_HeaderFile
#include <Handle_Geom_Surface.hxx>
#endif
#ifndef _Standard_OStream_HeaderFile
#include <Standard_OStream.hxx>
#endif
#ifndef _Standard_IStream_HeaderFile
#include <Standard_IStream.hxx>
#endif
#ifndef _Handle_Geom_Curve_HeaderFile
#include <Handle_Geom_Curve.hxx>
#endif
#ifndef _Handle_Geom2d_Curve_HeaderFile
#include <Handle_Geom2d_Curve.hxx>
#endif
#ifndef _Handle_GeomTools_UndefinedTypeHandler_HeaderFile
#include <Handle_GeomTools_UndefinedTypeHandler.hxx>
#endif
class Geom_Surface;
class Geom_Curve;
class Geom2d_Curve;
class GeomTools_UndefinedTypeHandler;
class GeomTools_UndefinedTypeHandler;
class GeomTools_SurfaceSet;
class GeomTools_CurveSet;
class GeomTools_Curve2dSet;


//! The GeomTools package provides  utilities for Geometry. <br>
//! <br>
//!          *  SurfaceSet,  CurveSet, Curve2dSet  : Tools used <br>
//!          for dumping, writing and reading. <br>
//! <br>
//!          * Methods to dump, write, read curves and surfaces. <br>
class GeomTools  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  //! Dumps the surface on the stream. <br>
  Standard_EXPORT   static  void Dump(const Handle(Geom_Surface)& S,Standard_OStream& OS) ;
  //! Writes the surface on the stream. <br>
  Standard_EXPORT   static  void Write(const Handle(Geom_Surface)& S,Standard_OStream& OS) ;
  //! Reads the surface from the stream. <br>
  Standard_EXPORT   static  void Read(Handle(Geom_Surface)& S,Standard_IStream& IS) ;
  //! Dumps the Curve on the stream. <br>
  Standard_EXPORT   static  void Dump(const Handle(Geom_Curve)& C,Standard_OStream& OS) ;
  //! Writes the Curve on the stream. <br>
  Standard_EXPORT   static  void Write(const Handle(Geom_Curve)& C,Standard_OStream& OS) ;
  //! Reads the Curve from the stream. <br>
  Standard_EXPORT   static  void Read(Handle(Geom_Curve)& C,Standard_IStream& IS) ;
  //! Dumps the Curve on the stream. <br>
  Standard_EXPORT   static  void Dump(const Handle(Geom2d_Curve)& C,Standard_OStream& OS) ;
  //! Writes the Curve on the stream. <br>
  Standard_EXPORT   static  void Write(const Handle(Geom2d_Curve)& C,Standard_OStream& OS) ;
  //! Reads the Curve from the stream. <br>
  Standard_EXPORT   static  void Read(Handle(Geom2d_Curve)& C,Standard_IStream& IS) ;
  
  Standard_EXPORT   static  void SetUndefinedTypeHandler(const Handle(GeomTools_UndefinedTypeHandler)& aHandler) ;
  
  Standard_EXPORT   static  Handle_GeomTools_UndefinedTypeHandler GetUndefinedTypeHandler() ;





protected:





private:




friend class GeomTools_UndefinedTypeHandler;
friend class GeomTools_SurfaceSet;
friend class GeomTools_CurveSet;
friend class GeomTools_Curve2dSet;

};





// other Inline functions and methods (like "C++: function call" methods)


#endif