Back to index

salome-geom  6.5.0
GEOMAlgo_FinderShapeOn2.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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 // File:        GEOMAlgo_FinderShapeOn2.hxx
00023 // Created:     Fri Mar  4 10:31:06 2005
00024 // Author:      Peter KURNEV
00025 //              <pkv@irinox>
00026 //
00027 #ifndef _GEOMAlgo_FinderShapeOn2_HeaderFile
00028 #define _GEOMAlgo_FinderShapeOn2_HeaderFile
00029 
00030 #include <Standard.hxx>
00031 #include <Standard_Macro.hxx>
00032 #include <TopAbs_ShapeEnum.hxx>
00033 #include <GEOMAlgo_State.hxx>
00034 #include <Standard_Integer.hxx>
00035 //#include <Handle_GEOMAlgo_Clsf.hxx>
00036 #include <GEOMAlgo_Clsf.hxx>
00037 #include <TopTools_ListOfShape.hxx>
00038 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
00039 #include <GEOMAlgo_ShapeAlgo.hxx>
00040 #include <GEOMAlgo_Clsf.hxx>
00041 #include <TopoDS_Face.hxx>
00042 #include <TopoDS_Edge.hxx>
00043 #include <GEOMAlgo_ListOfPnt.hxx>
00044 
00045 //=======================================================================
00046 //function : GEOMAlgo_FinderShapeOn2
00047 //purpose  :
00048 //=======================================================================
00049 class GEOMAlgo_FinderShapeOn2  : public GEOMAlgo_ShapeAlgo
00050 {
00051  public:
00052   Standard_EXPORT
00053     GEOMAlgo_FinderShapeOn2();
00054 
00055   Standard_EXPORT
00056     virtual ~GEOMAlgo_FinderShapeOn2();
00057 
00058   Standard_EXPORT
00059     void SetClsf(const Handle(GEOMAlgo_Clsf)& aClsf) ;
00060 
00061   Standard_EXPORT
00062     const Handle_GEOMAlgo_Clsf& Clsf() const;
00063 
00064   Standard_EXPORT
00065     void SetShapeType(const TopAbs_ShapeEnum aST) ;
00066 
00067   Standard_EXPORT
00068     TopAbs_ShapeEnum ShapeType() const;
00069 
00070   Standard_EXPORT
00071     void SetState(const GEOMAlgo_State aSF) ;
00072 
00073   Standard_EXPORT
00074     GEOMAlgo_State State() const;
00075 
00076   Standard_EXPORT
00077     void SetNbPntsMin(const Standard_Integer aNb) ;
00078 
00079   Standard_EXPORT
00080     Standard_Integer NbPntsMin() const;
00081 
00082   Standard_EXPORT
00083     void SetNbPntsMax(const Standard_Integer aNb) ;
00084 
00085   Standard_EXPORT
00086     Standard_Integer NbPntsMax() const;
00087 
00088   Standard_EXPORT
00089     virtual  void Perform() ;
00090 
00091   Standard_EXPORT
00092     const TopTools_ListOfShape& Shapes() const;
00093 
00094   Standard_EXPORT
00095     const GEOMAlgo_IndexedDataMapOfShapeState& MSS() const;
00096 
00097 protected:
00098   Standard_EXPORT
00099     virtual  void CheckData() ;
00100 
00101   Standard_EXPORT
00102     void ProcessVertices() ;
00103 
00104   Standard_EXPORT
00105     void ProcessEdges() ;
00106 
00107   Standard_EXPORT
00108     void ProcessFaces() ;
00109 
00110   Standard_EXPORT
00111     void ProcessSolids() ;
00112 
00113   Standard_EXPORT
00114     void InnerPoints(const TopoDS_Face& aF,
00115                    GEOMAlgo_ListOfPnt& aLP) ;
00116 
00117   Standard_EXPORT
00118     void InnerPoints(const TopoDS_Edge& aE,
00119                    GEOMAlgo_ListOfPnt& aLP) ;
00120 
00121   Standard_EXPORT
00122     void InnerPoints(const TopoDS_Edge& aE,
00123                    const Standard_Integer aNbPnts,
00124                    GEOMAlgo_ListOfPnt& aLP) ;
00125 
00126 
00127   TopAbs_ShapeEnum myShapeType;
00128   GEOMAlgo_State myState;
00129   Standard_Integer myNbPntsMin;
00130   Standard_Integer myNbPntsMax;
00131   Handle_GEOMAlgo_Clsf myClsf;
00132   TopTools_ListOfShape myLS;
00133   GEOMAlgo_IndexedDataMapOfShapeState myMSS;
00134 };
00135 
00136 #endif