Version: 6.3.1

src/GEOMAlgo/GEOMAlgo_FinderShapeOn2.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
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  // Methods PUBLIC
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  // Methods PROTECTED
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  // Fields PROTECTED
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  // Methods PRIVATE
00173  // 
00174 
00175 
00176  // Fields PRIVATE
00177  //
00178 
00179 
00180 };
00181 
00182 
00183 
00184 
00185 
00186 // other Inline functions and methods (like "C++: function call" methods)
00187 //
00188 
00189 
00190 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS