1 // Copyright (C) 2007-2024 CEA, EDF, 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, or (at your option) any later version.
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>
33 #include <TopAbs_ShapeEnum.hxx>
35 #include <Standard_Integer.hxx>
37 #include <TopoDS_Face.hxx>
38 #include <TopoDS_Edge.hxx>
40 #include <TopTools_ListOfShape.hxx>
42 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
43 #include <GEOMAlgo_State.hxx>
44 #include <GEOMAlgo_ListOfPnt.hxx>
45 #include <GEOMAlgo_Clsf.hxx>
46 #include <GEOMAlgo_ShapeAlgo.hxx>
48 //=======================================================================
49 //function : GEOMAlgo_FinderShapeOn2
51 //=======================================================================
52 class GEOMAlgo_FinderShapeOn2 : public GEOMAlgo_ShapeAlgo
56 GEOMAlgo_FinderShapeOn2();
59 virtual ~GEOMAlgo_FinderShapeOn2();
62 void SetClsf(const Handle(GEOMAlgo_Clsf)& aClsf) ;
65 const Handle(GEOMAlgo_Clsf)& Clsf() const;
68 void SetShapeType(const TopAbs_ShapeEnum aST) ;
71 TopAbs_ShapeEnum ShapeType() const;
74 void SetState(const GEOMAlgo_State aSF) ;
77 GEOMAlgo_State State() const;
80 void SetNbPntsMin(const Standard_Integer aNb) ;
83 Standard_Integer NbPntsMin() const;
86 void SetNbPntsMax(const Standard_Integer aNb) ;
89 Standard_Integer NbPntsMax() const;
92 virtual void Perform() ;
95 const TopTools_ListOfShape& Shapes() const;
98 const GEOMAlgo_IndexedDataMapOfShapeState& MSS() const;
102 virtual void CheckData() ;
105 void ProcessVertices() ;
108 void ProcessEdges() ;
111 void ProcessFaces() ;
114 void ProcessSolids() ;
117 void InnerPoints(const TopoDS_Face& aF,
118 GEOMAlgo_ListOfPnt& aLP) ;
121 void InnerPoints(const TopoDS_Edge& aE,
122 GEOMAlgo_ListOfPnt& aLP) ;
125 void InnerPoints(const TopoDS_Edge& aE,
126 const Standard_Integer aNbPnts,
127 GEOMAlgo_ListOfPnt& aLP) ;
130 TopAbs_ShapeEnum myShapeType;
131 GEOMAlgo_State myState;
132 Standard_Integer myNbPntsMin;
133 Standard_Integer myNbPntsMax;
134 Handle(GEOMAlgo_Clsf) myClsf;
135 TopTools_ListOfShape myLS;
136 GEOMAlgo_IndexedDataMapOfShapeState myMSS;