Salome HOME
SIGSEGV after inter integration fix for 0020044: EDF 866 GEOM: Extrusion along a...
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_BuilderShape.hxx
1 // File generated by CPPExt (Value)
2 //
3 //                     Copyright (C) 1991 - 2000 by  
4 //                      Matra Datavision SA.  All rights reserved.
5 //  
6 //                     Copyright (C) 2001 - 2004 by
7 //                     Open CASCADE SA.  All rights reserved.
8 // 
9 // This file is part of the Open CASCADE Technology software.
10 //
11 // This software may be distributed and/or modified under the terms and
12 // conditions of the Open CASCADE Public License as defined by Open CASCADE SA
13 // and appearing in the file LICENSE included in the packaging of this file.
14 //  
15 // This software is distributed on an "AS IS" basis, without warranty of any
16 // kind, and Open CASCADE SA hereby disclaims all such warranties,
17 // including without limitation, any warranties of merchantability, fitness
18 // for a particular purpose or non-infringement. Please see the License for
19 // the specific terms and conditions governing rights and limitations under the
20 // License.
21
22 #ifndef _GEOMAlgo_BuilderShape_HeaderFile
23 #define _GEOMAlgo_BuilderShape_HeaderFile
24
25 #ifndef _TopoDS_Shape_HeaderFile
26 #include <TopoDS_Shape.hxx>
27 #endif
28 #ifndef _TopTools_ListOfShape_HeaderFile
29 #include <TopTools_ListOfShape.hxx>
30 #endif
31 #ifndef _TopTools_MapOfShape_HeaderFile
32 #include <TopTools_MapOfShape.hxx>
33 #endif
34 #ifndef _Standard_Boolean_HeaderFile
35 #include <Standard_Boolean.hxx>
36 #endif
37 #ifndef _TopTools_IndexedDataMapOfShapeListOfShape_HeaderFile
38 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
39 #endif
40 #ifndef _GEOMAlgo_Algo_HeaderFile
41 #include <GEOMAlgo_Algo.hxx>
42 #endif
43 class TopoDS_Shape;
44 class TopTools_ListOfShape;
45 class TopTools_IndexedDataMapOfShapeListOfShape;
46
47
48 #ifndef _Standard_HeaderFile
49 #include <Standard.hxx>
50 #endif
51 #ifndef _Standard_Macro_HeaderFile
52 #include <Standard_Macro.hxx>
53 #endif
54
55 //! Root class for algorithms that has shape as result <br>
56 class GEOMAlgo_BuilderShape  : public GEOMAlgo_Algo {
57
58 public:
59
60     void* operator new(size_t,void* anAddress) 
61       {
62         return anAddress;
63       }
64     void* operator new(size_t size) 
65       { 
66         return Standard::Allocate(size); 
67       }
68     void  operator delete(void *anAddress) 
69       { 
70         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
71       }
72  // Methods PUBLIC
73  // 
74
75 //!  Returns the result of algorithm <br>
76 Standard_EXPORT  const TopoDS_Shape& Shape() const;
77
78 //! Returns the list of shapes generated from the <br>
79 //!          shape theS. <br>
80 Standard_EXPORT virtual const TopTools_ListOfShape& Generated(const TopoDS_Shape& theS) ;
81
82 //! Returns the list of shapes modified from the <br>
83 //!          shape theS. <br>
84 Standard_EXPORT virtual const TopTools_ListOfShape& Modified(const TopoDS_Shape& theS) ;
85
86 //! Returns true if the shape theS has been deleted. <br>
87 Standard_EXPORT virtual  Standard_Boolean IsDeleted(const TopoDS_Shape& theS) ;
88
89 //! Returns true if the at least one shape(or subshape) <br>
90 //!          of arguments has been deleted. <br>
91 Standard_EXPORT   Standard_Boolean HasDeleted() const;
92
93 //! Returns true if the at least one shape(or subshape) <br>
94 //!          of arguments has generated shapes. <br>
95 Standard_EXPORT   Standard_Boolean HasGenerated() const;
96
97 //! Returns true if the at least one shape(or subshape) <br>
98 //!          of arguments has modified shapes. <br>
99 Standard_EXPORT   Standard_Boolean HasModified() const;
100
101
102 Standard_EXPORT  const TopTools_IndexedDataMapOfShapeListOfShape& ImagesResult() const;
103
104
105
106
107
108 protected:
109
110  // Methods PROTECTED
111  // 
112
113 //! Empty constructor <br>
114 Standard_EXPORT GEOMAlgo_BuilderShape();
115 Standard_EXPORT virtual ~GEOMAlgo_BuilderShape();
116
117 //!  Prepare information for history support <br>
118 Standard_EXPORT virtual  void PrepareHistory() ;
119
120
121  // Fields PROTECTED
122  //
123 TopoDS_Shape myShape;
124 TopTools_ListOfShape myHistShapes;
125 TopTools_MapOfShape myMapShape;
126 Standard_Boolean myHasDeleted;
127 Standard_Boolean myHasGenerated;
128 Standard_Boolean myHasModified;
129 TopTools_IndexedDataMapOfShapeListOfShape myImagesResult;
130
131
132 private: 
133
134  // Methods PRIVATE
135  // 
136
137
138  // Fields PRIVATE
139  //
140
141
142 };
143
144
145
146
147
148 // other Inline functions and methods (like "C++: function call" methods)
149 //
150
151
152 #endif