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