2 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7 // This library is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU Lesser General Public
9 // License as published by the Free Software Foundation; either
10 // version 2.1 of the License.
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // Lesser General Public License for more details.
17 // You should have received a copy of the GNU Lesser General Public
18 // License along with this library; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File: GEOMAlgo_FinderShapeOn.hxx
25 // Created: Tue Jan 11 14:44:31 2005
26 // Author: Peter KURNEV
28 #ifndef _GEOMAlgo_FinderShapeOn_HeaderFile
29 #define _GEOMAlgo_FinderShapeOn_HeaderFile
31 #include <Standard.hxx>
32 #include <Standard_Macro.hxx>
33 #include <Standard_Boolean.hxx>
35 #include <Handle_Geom_Surface.hxx>
36 #include <Geom_Surface.hxx>
38 #include <TopAbs_ShapeEnum.hxx>
40 #include <TopoDS_Shape.hxx>
42 #include <TopTools_ListOfShape.hxx>
43 #include <TopTools_DataMapOfShapeShape.hxx>
46 #include <GEOMAlgo_State.hxx>
47 #include <GEOMAlgo_ShapeAlgo.hxx>
48 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
50 //=======================================================================
51 //function : GEOMAlgo_FinderShapeOn
53 //=======================================================================
54 class GEOMAlgo_FinderShapeOn : public GEOMAlgo_ShapeAlgo
58 GEOMAlgo_FinderShapeOn();
61 virtual ~GEOMAlgo_FinderShapeOn();
64 virtual void Perform() ;
67 void SetSurface(const Handle(Geom_Surface)& aS) ;
70 void SetShapeType(const TopAbs_ShapeEnum aST) ;
73 void SetState(const GEOMAlgo_State aSF) ;
76 const Handle_Geom_Surface& Surface() const;
79 TopAbs_ShapeEnum ShapeType() const;
82 GEOMAlgo_State State() const;
85 const TopTools_ListOfShape& Shapes() const;
88 static void CopySource(const TopoDS_Shape& aS,
89 TopTools_DataMapOfShapeShape& aImages,
90 TopTools_DataMapOfShapeShape& aOriginals,
94 static Standard_Boolean BuildTriangulation(const TopoDS_Shape& aS) ;
98 virtual void CheckData() ;
101 void MakeArgument1() ;
104 void MakeArgument2() ;
110 void Find(const TopoDS_Shape& aS) ;
113 void FindVertices() ;
116 Handle_Geom_Surface mySurface;
117 TopAbs_ShapeEnum myShapeType;
118 GEOMAlgo_State myState;
121 TopTools_ListOfShape myLS;
122 TopTools_DataMapOfShapeShape myImages;
123 GEOMAlgo_IndexedDataMapOfShapeState myMSS;
124 Standard_Boolean myIsAnalytic;