Salome HOME
PAL7508: Development of new block functionalities. Implement GetShapesOn<xxx>() funct...
[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_IndexedDataMapOfShapeState_HeaderFile
44 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
45 #endif
46 #ifndef _Standard_Boolean_HeaderFile
47 #include <Standard_Boolean.hxx>
48 #endif
49 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
50 #include <GEOMAlgo_ShapeAlgo.hxx>
51 #endif
52 class Geom_Surface;
53 class TopTools_ListOfShape;
54 class TopoDS_Shape;
55 class TopTools_DataMapOfShapeShape;
56
57
58 #ifndef _Standard_HeaderFile
59 #include <Standard.hxx>
60 #endif
61 #ifndef _Standard_Macro_HeaderFile
62 #include <Standard_Macro.hxx>
63 #endif
64
65 class GEOMAlgo_FinderShapeOn  : public GEOMAlgo_ShapeAlgo {
66
67 public:
68
69     void* operator new(size_t,void* anAddress) 
70       {
71         return anAddress;
72       }
73     void* operator new(size_t size) 
74       { 
75         return Standard::Allocate(size); 
76       }
77     void  operator delete(void *anAddress) 
78       { 
79         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
80       }
81  // Methods PUBLIC
82  // 
83 Standard_EXPORT GEOMAlgo_FinderShapeOn();
84 Standard_EXPORT virtual ~GEOMAlgo_FinderShapeOn();
85 Standard_EXPORT virtual  void Perform() ;
86 Standard_EXPORT   void SetSurface(const Handle(Geom_Surface)& aS) ;
87 Standard_EXPORT   void SetShapeType(const TopAbs_ShapeEnum aST) ;
88 Standard_EXPORT   void SetState(const GEOMAlgo_State aSF) ;
89 Standard_EXPORT  const Handle_Geom_Surface& Surface() const;
90 Standard_EXPORT   TopAbs_ShapeEnum ShapeType() const;
91 Standard_EXPORT   GEOMAlgo_State State() const;
92 Standard_EXPORT  const TopTools_ListOfShape& Shapes() const;
93 Standard_EXPORT static  void CopySource(const TopoDS_Shape& aS,TopTools_DataMapOfShapeShape& aImages,TopTools_DataMapOfShapeShape& aOriginals,TopoDS_Shape& aSC) ;
94
95
96
97
98
99 protected:
100
101  // Methods PROTECTED
102  // 
103 Standard_EXPORT virtual  void CheckData() ;
104 Standard_EXPORT   void MakeArgument1() ;
105 Standard_EXPORT   void MakeArgument2() ;
106 Standard_EXPORT   void Find() ;
107 Standard_EXPORT   void Find(const TopoDS_Shape& aS) ;
108 Standard_EXPORT   void FindVertices() ;
109
110
111  // Fields PROTECTED
112  //
113 Handle_Geom_Surface mySurface;
114 TopAbs_ShapeEnum myShapeType;
115 GEOMAlgo_State myState;
116 TopoDS_Shape myArg1;
117 TopoDS_Shape myArg2;
118 TopTools_ListOfShape myLS;
119 TopTools_DataMapOfShapeShape myImages;
120 GEOMAlgo_IndexedDataMapOfShapeState myMSS;
121 Standard_Boolean myIsAnalytic;
122
123
124 private: 
125
126  // Methods PRIVATE
127  // 
128
129
130  // Fields PRIVATE
131  //
132
133
134 };
135
136
137
138
139
140 // other Inline functions and methods (like "C++: function call" methods)
141 //
142
143
144 #endif