Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _GEOMAlgo_FinderShapeOn2_HeaderFile
00024 #define _GEOMAlgo_FinderShapeOn2_HeaderFile
00025
00026 #ifndef _TopAbs_ShapeEnum_HeaderFile
00027 #include <TopAbs_ShapeEnum.hxx>
00028 #endif
00029 #ifndef _GEOMAlgo_State_HeaderFile
00030 #include <GEOMAlgo_State.hxx>
00031 #endif
00032 #ifndef _Standard_Integer_HeaderFile
00033 #include <Standard_Integer.hxx>
00034 #endif
00035 #ifndef _Handle_GEOMAlgo_Clsf_HeaderFile
00036 #include <Handle_GEOMAlgo_Clsf.hxx>
00037 #endif
00038 #ifndef _TopTools_ListOfShape_HeaderFile
00039 #include <TopTools_ListOfShape.hxx>
00040 #endif
00041 #ifndef _GEOMAlgo_IndexedDataMapOfShapeState_HeaderFile
00042 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
00043 #endif
00044 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
00045 #include <GEOMAlgo_ShapeAlgo.hxx>
00046 #endif
00047 class GEOMAlgo_Clsf;
00048 class TopTools_ListOfShape;
00049 class TopoDS_Face;
00050 class GEOMAlgo_ListOfPnt;
00051 class TopoDS_Edge;
00052 class GEOMAlgo_IndexedDataMapOfShapeState;
00053
00054
00055 #ifndef _Standard_HeaderFile
00056 #include <Standard.hxx>
00057 #endif
00058 #ifndef _Standard_Macro_HeaderFile
00059 #include <Standard_Macro.hxx>
00060 #endif
00061
00062
00063 class GEOMAlgo_FinderShapeOn2 : public GEOMAlgo_ShapeAlgo {
00064
00065 public:
00066
00067 void* operator new(size_t,void* anAddress)
00068 {
00069 return anAddress;
00070 }
00071 void* operator new(size_t size)
00072 {
00073 return Standard::Allocate(size);
00074 }
00075 void operator delete(void *anAddress)
00076 {
00077 if (anAddress) Standard::Free((Standard_Address&)anAddress);
00078 }
00079
00080
00081
00082
00083 Standard_EXPORT GEOMAlgo_FinderShapeOn2();
00084 Standard_EXPORT virtual ~GEOMAlgo_FinderShapeOn2();
00085
00086
00087 Standard_EXPORT void SetClsf(const Handle(GEOMAlgo_Clsf)& aClsf) ;
00088
00089
00090 Standard_EXPORT const Handle_GEOMAlgo_Clsf& Clsf() const;
00091
00092
00093 Standard_EXPORT void SetShapeType(const TopAbs_ShapeEnum aST) ;
00094
00095
00096 Standard_EXPORT TopAbs_ShapeEnum ShapeType() const;
00097
00098
00099 Standard_EXPORT void SetState(const GEOMAlgo_State aSF) ;
00100
00101
00102 Standard_EXPORT GEOMAlgo_State State() const;
00103
00104
00105 Standard_EXPORT void SetNbPntsMin(const Standard_Integer aNb) ;
00106
00107
00108 Standard_EXPORT Standard_Integer NbPntsMin() const;
00109
00110
00111 Standard_EXPORT void SetNbPntsMax(const Standard_Integer aNb) ;
00112
00113
00114 Standard_EXPORT Standard_Integer NbPntsMax() const;
00115
00116
00117 Standard_EXPORT virtual void Perform() ;
00118
00119
00120 Standard_EXPORT const TopTools_ListOfShape& Shapes() const;
00121
00122
00123 Standard_EXPORT const GEOMAlgo_IndexedDataMapOfShapeState& MSS() const;
00124
00125
00126
00127
00128
00129 protected:
00130
00131
00132
00133
00134
00135 Standard_EXPORT virtual void CheckData() ;
00136
00137
00138 Standard_EXPORT void ProcessVertices() ;
00139
00140
00141 Standard_EXPORT void ProcessEdges() ;
00142
00143
00144 Standard_EXPORT void ProcessFaces() ;
00145
00146
00147 Standard_EXPORT void ProcessSolids() ;
00148
00149
00150 Standard_EXPORT void InnerPoints(const TopoDS_Face& aF,GEOMAlgo_ListOfPnt& aLP) ;
00151
00152
00153 Standard_EXPORT void InnerPoints(const TopoDS_Edge& aE,GEOMAlgo_ListOfPnt& aLP) ;
00154
00155
00156 Standard_EXPORT void InnerPoints(const TopoDS_Edge& aE,const Standard_Integer aNbPnts,GEOMAlgo_ListOfPnt& aLP) ;
00157
00158
00159
00160
00161 TopAbs_ShapeEnum myShapeType;
00162 GEOMAlgo_State myState;
00163 Standard_Integer myNbPntsMin;
00164 Standard_Integer myNbPntsMax;
00165 Handle_GEOMAlgo_Clsf myClsf;
00166 TopTools_ListOfShape myLS;
00167 GEOMAlgo_IndexedDataMapOfShapeState myMSS;
00168
00169
00170 private:
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180 };
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190 #endif