1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File: GEOMAlgo_FinderShapeOn2.hxx
23 // Created: Fri Mar 4 10:31:06 2005
24 // Author: Peter KURNEV
27 #ifndef _GEOMAlgo_FinderShapeOn2_HeaderFile
28 #define _GEOMAlgo_FinderShapeOn2_HeaderFile
30 #include <Standard.hxx>
31 #include <Standard_Macro.hxx>
32 #include <TopAbs_ShapeEnum.hxx>
33 #include <GEOMAlgo_State.hxx>
34 #include <Standard_Integer.hxx>
35 //#include <Handle_GEOMAlgo_Clsf.hxx>
36 #include <GEOMAlgo_Clsf.hxx>
37 #include <TopTools_ListOfShape.hxx>
38 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
39 #include <GEOMAlgo_ShapeAlgo.hxx>
40 #include <GEOMAlgo_Clsf.hxx>
41 #include <TopoDS_Face.hxx>
42 #include <TopoDS_Edge.hxx>
43 #include <GEOMAlgo_ListOfPnt.hxx>
45 //=======================================================================
46 //function : GEOMAlgo_FinderShapeOn2
48 //=======================================================================
49 class GEOMAlgo_FinderShapeOn2 : public GEOMAlgo_ShapeAlgo
53 GEOMAlgo_FinderShapeOn2();
56 virtual ~GEOMAlgo_FinderShapeOn2();
59 void SetClsf(const Handle(GEOMAlgo_Clsf)& aClsf) ;
62 const Handle_GEOMAlgo_Clsf& Clsf() const;
65 void SetShapeType(const TopAbs_ShapeEnum aST) ;
68 TopAbs_ShapeEnum ShapeType() const;
71 void SetState(const GEOMAlgo_State aSF) ;
74 GEOMAlgo_State State() const;
77 void SetNbPntsMin(const Standard_Integer aNb) ;
80 Standard_Integer NbPntsMin() const;
83 void SetNbPntsMax(const Standard_Integer aNb) ;
86 Standard_Integer NbPntsMax() const;
89 virtual void Perform() ;
92 const TopTools_ListOfShape& Shapes() const;
95 const GEOMAlgo_IndexedDataMapOfShapeState& MSS() const;
99 virtual void CheckData() ;
102 void ProcessVertices() ;
105 void ProcessEdges() ;
108 void ProcessFaces() ;
111 void ProcessSolids() ;
114 void InnerPoints(const TopoDS_Face& aF,
115 GEOMAlgo_ListOfPnt& aLP) ;
118 void InnerPoints(const TopoDS_Edge& aE,
119 GEOMAlgo_ListOfPnt& aLP) ;
122 void InnerPoints(const TopoDS_Edge& aE,
123 const Standard_Integer aNbPnts,
124 GEOMAlgo_ListOfPnt& aLP) ;
127 TopAbs_ShapeEnum myShapeType;
128 GEOMAlgo_State myState;
129 Standard_Integer myNbPntsMin;
130 Standard_Integer myNbPntsMax;
131 Handle_GEOMAlgo_Clsf myClsf;
132 TopTools_ListOfShape myLS;
133 GEOMAlgo_IndexedDataMapOfShapeState myMSS;