Salome HOME
Merge with OCC_development_01
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_FinderShapeOn.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_FinderShapeOn_HeaderFile
23 #define _GEOMAlgo_FinderShapeOn_HeaderFile
24
25 #ifndef _Handle_Geom_Surface_HeaderFile
26 #include <Handle_Geom_Surface.hxx>
27 #endif
28 #ifndef _TopAbs_ShapeEnum_HeaderFile
29 #include <TopAbs_ShapeEnum.hxx>
30 #endif
31 #ifndef _GEOMAlgo_State_HeaderFile
32 #include <GEOMAlgo_State.hxx>
33 #endif
34 #ifndef _TopoDS_Shape_HeaderFile
35 #include <TopoDS_Shape.hxx>
36 #endif
37 #ifndef _TopTools_ListOfShape_HeaderFile
38 #include <TopTools_ListOfShape.hxx>
39 #endif
40 #ifndef _TopTools_DataMapOfShapeShape_HeaderFile
41 #include <TopTools_DataMapOfShapeShape.hxx>
42 #endif
43 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
44 #include <GEOMAlgo_ShapeAlgo.hxx>
45 #endif
46 class Geom_Surface;
47 class TopTools_ListOfShape;
48 class TopoDS_Shape;
49 class TopTools_DataMapOfShapeShape;
50
51
52 #ifndef _Standard_HeaderFile
53 #include <Standard.hxx>
54 #endif
55 #ifndef _Standard_Macro_HeaderFile
56 #include <Standard_Macro.hxx>
57 #endif
58
59 class GEOMAlgo_FinderShapeOn  : public GEOMAlgo_ShapeAlgo {
60
61 public:
62
63     void* operator new(size_t,void* anAddress) 
64       {
65         return anAddress;
66       }
67     void* operator new(size_t size) 
68       { 
69         return Standard::Allocate(size); 
70       }
71     void  operator delete(void *anAddress) 
72       { 
73         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
74       }
75  // Methods PUBLIC
76  // 
77 Standard_EXPORT GEOMAlgo_FinderShapeOn();
78 Standard_EXPORT virtual ~GEOMAlgo_FinderShapeOn();
79 Standard_EXPORT virtual  void Perform() ;
80 Standard_EXPORT   void SetSurface(const Handle(Geom_Surface)& aS) ;
81 Standard_EXPORT   void SetShapeType(const TopAbs_ShapeEnum aST) ;
82 Standard_EXPORT   void SetState(const GEOMAlgo_State aSF) ;
83 Standard_EXPORT  const Handle_Geom_Surface& Surface() const;
84 Standard_EXPORT   TopAbs_ShapeEnum ShapeType() const;
85 Standard_EXPORT   GEOMAlgo_State State() const;
86 Standard_EXPORT  const TopTools_ListOfShape& Shapes() const;
87 Standard_EXPORT static  void CopySource(const TopoDS_Shape& aS,TopTools_DataMapOfShapeShape& aImages,TopTools_DataMapOfShapeShape& aOriginals,TopoDS_Shape& aSC) ;
88
89
90
91
92
93 protected:
94
95  // Methods PROTECTED
96  // 
97 Standard_EXPORT virtual  void CheckData() ;
98 Standard_EXPORT   void MakeArguments() ;
99 Standard_EXPORT   void Find() ;
100
101
102  // Fields PROTECTED
103  //
104 Handle_Geom_Surface mySurface;
105 TopAbs_ShapeEnum myShapeType;
106 GEOMAlgo_State myState;
107 TopoDS_Shape myArg1;
108 TopoDS_Shape myArg2;
109 TopTools_ListOfShape myLS;
110 TopTools_DataMapOfShapeShape myImages;
111
112
113 private: 
114
115  // Methods PRIVATE
116  // 
117
118
119  // Fields PRIVATE
120  //
121
122
123 };
124
125
126
127
128
129 // other Inline functions and methods (like "C++: function call" methods)
130 //
131
132
133 #endif