]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMAlgo/GEOMAlgo_FinderShapeOn1.hxx
Salome HOME
Optimization of GetShapesOn<xxx> functionality
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_FinderShapeOn1.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_FinderShapeOn1_HeaderFile
23 #define _GEOMAlgo_FinderShapeOn1_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 _Standard_Integer_HeaderFile
35 #include <Standard_Integer.hxx>
36 #endif
37 #ifndef _GeomAdaptor_Surface_HeaderFile
38 #include <GeomAdaptor_Surface.hxx>
39 #endif
40 #ifndef _TopTools_ListOfShape_HeaderFile
41 #include <TopTools_ListOfShape.hxx>
42 #endif
43 #ifndef _GEOMAlgo_IndexedDataMapOfShapeState_HeaderFile
44 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
45 #endif
46 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
47 #include <GEOMAlgo_ShapeAlgo.hxx>
48 #endif
49 class Geom_Surface;
50 class TopTools_ListOfShape;
51 class TopoDS_Face;
52 class GEOMAlgo_ListOfPnt;
53 class TopoDS_Edge;
54 class GEOMAlgo_IndexedDataMapOfShapeState;
55
56
57 #ifndef _Standard_HeaderFile
58 #include <Standard.hxx>
59 #endif
60 #ifndef _Standard_Macro_HeaderFile
61 #include <Standard_Macro.hxx>
62 #endif
63
64 class GEOMAlgo_FinderShapeOn1  : public GEOMAlgo_ShapeAlgo {
65
66 public:
67
68     void* operator new(size_t,void* anAddress) 
69       {
70         return anAddress;
71       }
72     void* operator new(size_t size) 
73       { 
74         return Standard::Allocate(size); 
75       }
76     void  operator delete(void *anAddress) 
77       { 
78         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
79       }
80  // Methods PUBLIC
81  // 
82 Standard_EXPORT GEOMAlgo_FinderShapeOn1();
83 Standard_EXPORT virtual ~GEOMAlgo_FinderShapeOn1();
84 Standard_EXPORT   void SetSurface(const Handle(Geom_Surface)& aS) ;
85 Standard_EXPORT   void SetShapeType(const TopAbs_ShapeEnum aST) ;
86 Standard_EXPORT   void SetState(const GEOMAlgo_State aSF) ;
87 Standard_EXPORT   void SetNbPntsMin(const Standard_Integer aNb) ;
88 Standard_EXPORT   Standard_Integer NbPntsMin() const;
89 Standard_EXPORT   void SetNbPntsMax(const Standard_Integer aNb) ;
90 Standard_EXPORT   Standard_Integer NbPntsMax() const;
91 Standard_EXPORT  const Handle_Geom_Surface& Surface() const;
92 Standard_EXPORT   TopAbs_ShapeEnum ShapeType() const;
93 Standard_EXPORT   GEOMAlgo_State State() const;
94 Standard_EXPORT virtual  void Perform() ;
95 Standard_EXPORT  const TopTools_ListOfShape& Shapes() const;
96 Standard_EXPORT  const GEOMAlgo_IndexedDataMapOfShapeState& MSS() const;
97
98
99
100
101
102 protected:
103
104  // Methods PROTECTED
105  // 
106 Standard_EXPORT virtual  void CheckData() ;
107 Standard_EXPORT   void ProcessVertices() ;
108 Standard_EXPORT   void ProcessEdges() ;
109 Standard_EXPORT   void ProcessFaces() ;
110 Standard_EXPORT   void ProcessSolids() ;
111 Standard_EXPORT   void InnerPoints(const TopoDS_Face& aF,GEOMAlgo_ListOfPnt& aLP) ;
112 Standard_EXPORT   void InnerPoints(const TopoDS_Edge& aE,GEOMAlgo_ListOfPnt& aLP) ;
113 Standard_EXPORT   void InnerPoints(const TopoDS_Edge& aE,const Standard_Integer aNbPnts,GEOMAlgo_ListOfPnt& aLP) ;
114
115
116  // Fields PROTECTED
117  //
118 Handle_Geom_Surface mySurface;
119 TopAbs_ShapeEnum myShapeType;
120 GEOMAlgo_State myState;
121 Standard_Integer myNbPntsMin;
122 Standard_Integer myNbPntsMax;
123 GeomAdaptor_Surface myGAS;
124 TopTools_ListOfShape myLS;
125 GEOMAlgo_IndexedDataMapOfShapeState myMSS;
126
127
128 private: 
129
130  // Methods PRIVATE
131  // 
132
133
134  // Fields PRIVATE
135  //
136
137
138 };
139
140
141
142
143
144 // other Inline functions and methods (like "C++: function call" methods)
145 //
146
147
148 #endif