Salome HOME
Merge with OCC_development_01
[modules/geom.git] / src / GEOMAlgo / BlockFix_BlockFixAPI.hxx
1 // File generated by CPPExt (Transient)
2 //
3 //
4 //                     Copyright (C) 1991 - 2000 by  
5 //                      Matra Datavision SA.  All rights reserved.
6 //  
7 //                     Copyright (C) 2001 - 2004 by
8 //                     Open CASCADE SA.  All rights reserved.
9 // 
10 // This file is part of the Open CASCADE Technology software.
11 //
12 // This software may be distributed and/or modified under the terms and
13 // conditions of the Open CASCADE Public License as defined by Open CASCADE SA
14 // and appearing in the file LICENSE included in the packaging of this file.
15 //  
16 // This software is distributed on an "AS IS" basis, without warranty of any
17 // kind, and Open CASCADE SA hereby disclaims all such warranties,
18 // including without limitation, any warranties of merchantability, fitness
19 // for a particular purpose or non-infringement. Please see the License for
20 // the specific terms and conditions governing rights and limitations under the
21 // License.
22
23 #ifndef _BlockFix_BlockFixAPI_HeaderFile
24 #define _BlockFix_BlockFixAPI_HeaderFile
25
26 #ifndef _Standard_HeaderFile
27 #include <Standard.hxx>
28 #endif
29 #ifndef _Handle_BlockFix_BlockFixAPI_HeaderFile
30 #include <Handle_BlockFix_BlockFixAPI.hxx>
31 #endif
32
33 #ifndef _Handle_ShapeBuild_ReShape_HeaderFile
34 #include <Handle_ShapeBuild_ReShape.hxx>
35 #endif
36 #ifndef _TopoDS_Shape_HeaderFile
37 #include <TopoDS_Shape.hxx>
38 #endif
39 #ifndef _Standard_Real_HeaderFile
40 #include <Standard_Real.hxx>
41 #endif
42 #ifndef _MMgt_TShared_HeaderFile
43 #include <MMgt_TShared.hxx>
44 #endif
45 class ShapeBuild_ReShape;
46 class TopoDS_Shape;
47
48
49 class BlockFix_BlockFixAPI : public MMgt_TShared {
50
51 public:
52
53     void* operator new(size_t,void* anAddress) 
54       {
55         return anAddress;
56       }
57     void* operator new(size_t size) 
58       { 
59         return Standard::Allocate(size); 
60       }
61     void  operator delete(void *anAddress) 
62       { 
63         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
64       }
65  // Methods PUBLIC
66  // 
67 Standard_EXPORT BlockFix_BlockFixAPI();
68   void SetShape(const TopoDS_Shape& Shape) ;
69 Standard_EXPORT   void Perform() ;
70   TopoDS_Shape Shape() const;
71   Handle_ShapeBuild_ReShape& Context() ;
72   Standard_Real& Tolerance() ;
73 Standard_EXPORT ~BlockFix_BlockFixAPI();
74
75
76
77
78  // Type management
79  //
80  Standard_EXPORT friend Handle_Standard_Type& BlockFix_BlockFixAPI_Type_();
81  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
82  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
83
84 protected:
85
86  // Methods PROTECTED
87  // 
88
89
90  // Fields PROTECTED
91  //
92
93
94 private: 
95
96  // Methods PRIVATE
97  // 
98
99
100  // Fields PRIVATE
101  //
102 Handle_ShapeBuild_ReShape myContext;
103 TopoDS_Shape myShape;
104 Standard_Real myTolerance;
105
106
107 };
108
109
110 #include <BlockFix_BlockFixAPI.lxx>
111
112
113
114 // other Inline functions and methods (like "C++: function call" methods)
115 //
116
117
118 #endif