Salome HOME
Added 2 new operations:
[modules/geom.git] / src / GEOMImpl / BRepTools_Modifier_21423.hxx
1 // This file is generated by WOK (CPPExt).
2 // Please do not edit this file; modify original file instead.
3 // The copyright and license terms as defined for the original file apply to 
4 // this header file considered to be the "object code" form of the original source.
5
6 #ifndef _BRepTools_Modifier_21423_HeaderFile
7 #define _BRepTools_Modifier_21423_HeaderFile
8
9 #ifndef _Standard_HeaderFile
10 #include <Standard.hxx>
11 #endif
12 #ifndef _Standard_Macro_HeaderFile
13 #include <Standard_Macro.hxx>
14 #endif
15
16 #ifndef _TopTools_DataMapOfShapeShape_HeaderFile
17 #include <TopTools_DataMapOfShapeShape.hxx>
18 #endif
19 #ifndef _TopoDS_Shape_HeaderFile
20 #include <TopoDS_Shape.hxx>
21 #endif
22 #ifndef _Standard_Boolean_HeaderFile
23 #include <Standard_Boolean.hxx>
24 #endif
25 #ifndef _Handle_BRepTools_Modification_HeaderFile
26 #include <Handle_BRepTools_Modification.hxx>
27 #endif
28
29 #include <Standard_NoSuchObject.hxx>
30
31 class Standard_NullObject;
32 class TopoDS_Shape;
33 class BRepTools_Modification;
34
35 class BRepTools_Modifier_21423  {
36 public:
37
38   void* operator new(size_t,void* anAddress) 
39   {
40     return anAddress;
41   }
42   void* operator new(size_t size) 
43   {
44     return Standard::Allocate(size); 
45   }
46   void  operator delete(void *anAddress) 
47   {
48     if (anAddress) Standard::Free((Standard_Address&)anAddress); 
49   }
50
51   //! Creates an empty Modifier. <br>
52   Standard_EXPORT   BRepTools_Modifier_21423();
53   //! Creates a modifier on the shape <S>. <br>
54   Standard_EXPORT   BRepTools_Modifier_21423(const TopoDS_Shape& S);
55   //! Creates a modifier on  the shape <S>, and performs <br>
56 //!          the modifications described by <M>. <br>
57   Standard_EXPORT   BRepTools_Modifier_21423(const TopoDS_Shape& S,const Handle(BRepTools_Modification)& M);
58   //! Initializes the modifier with the shape <S>. <br>
59   Standard_EXPORT     void Init(const TopoDS_Shape& S) ;
60   //! Performs the modifications described by <M>. <br>
61   Standard_EXPORT     void Perform(const Handle(BRepTools_Modification)& M) ;
62   //! Returns Standard_True if the modification has <br>
63 //!          been computed successfully. <br>
64 //! <br>
65         Standard_Boolean IsDone() const;
66   //! Returns the modified shape corresponding to <S>. <br>
67        const TopoDS_Shape& ModifiedShape(const TopoDS_Shape& S) const;
68
69
70
71
72
73 protected:
74
75
76
77
78
79 private:
80
81   
82   Standard_EXPORT     void Put(const TopoDS_Shape& S) ;
83   
84   Standard_EXPORT     Standard_Boolean Rebuild (const TopoDS_Shape& S,
85                                                 const Handle(BRepTools_Modification)& M,
86                                                 const Standard_Real Tolerance);
87
88
89 TopTools_DataMapOfShapeShape myMap;
90 TopoDS_Shape myShape;
91 Standard_Boolean myDone;
92
93
94 };
95
96 //=======================================================================
97 //function : ModifiedShape
98 //purpose  : 
99 //=======================================================================
100 inline const TopoDS_Shape& BRepTools_Modifier_21423::ModifiedShape
101   (const TopoDS_Shape& S) const
102 {
103   if (!myMap.IsBound(S)) { Standard_NoSuchObject::Raise();}
104   return myMap(S);
105 }
106
107 //=======================================================================
108 //function : IsDone
109 //purpose  : 
110 //=======================================================================
111 inline Standard_Boolean BRepTools_Modifier_21423::IsDone () const
112 {
113   return myDone;
114 }
115
116 // other Inline functions and methods (like "C++: function call" methods)
117
118 #endif