summaryrefslogtreecommitdiff
path: root/inc/TopoDS_Builder.hxx
blob: 5aa8198a31f760a6569299e106a285c288732b30 (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
// 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 _TopoDS_Builder_HeaderFile
#define _TopoDS_Builder_HeaderFile

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

#ifndef _Handle_TopoDS_TShape_HeaderFile
#include <Handle_TopoDS_TShape.hxx>
#endif
class Standard_NullObject;
class TopoDS_FrozenShape;
class TopoDS_UnCompatibleShapes;
class TopoDS_Shape;
class TopoDS_TShape;
class TopoDS_Wire;
class TopoDS_Shell;
class TopoDS_Solid;
class TopoDS_CompSolid;
class TopoDS_Compound;


//! A  Builder is used   to  create  Topological  Data <br>
//!          Structures. <br>
//! <br>
//!          There are three groups of methods in the Builder : <br>
//! <br>
//!          The Make methods create Shapes. <br>
//! <br>
//!          The Add method includes a Shape in another Shape. <br>
//! <br>
//!          The Remove  method  removes a  Shape from an other <br>
//!          Shape. <br>
//! <br>
//!          The methods in Builder are not static. They can be <br>
//!          redefined in inherited builders. <br>
class TopoDS_Builder  {
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); 
  }

  //! Make an empty Wire. <br>
        void MakeWire(TopoDS_Wire& W) const;
  //! Make an empty Shell. <br>
        void MakeShell(TopoDS_Shell& S) const;
  //! Make a Solid covering the whole 3D space. <br>
        void MakeSolid(TopoDS_Solid& S) const;
  //! Make an empty Composite Solid. <br>
        void MakeCompSolid(TopoDS_CompSolid& C) const;
  //! Make an empty Compound. <br>
        void MakeCompound(TopoDS_Compound& C) const;
  //! Add the Shape C in the Shape S. <br>
//! Exceptions <br>
//! - TopoDS_FrozenShape if S is not free and cannot be modified. <br>
//! - TopoDS__UnCompatibleShapes if S and C are not compatible. <br>
  Standard_EXPORT     void Add(TopoDS_Shape& S,const TopoDS_Shape& C) const;
  //! Remove the Shape C from the Shape S. <br>
//! Exceptions <br>
//! TopoDS_FrozenShape if S is frozen and cannot be modified. <br>
  Standard_EXPORT     void Remove(TopoDS_Shape& S,const TopoDS_Shape& C) const;





protected:

  //! The basic method to make  a Shape, used by all the <br>
//!          Make methods. <br>
  Standard_EXPORT     void MakeShape(TopoDS_Shape& S,const Handle(TopoDS_TShape)& T) const;




private:





};


#include <TopoDS_Builder.lxx>



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


#endif