2 // Copyright (C) 2007-2016 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, or (at your option) any later version.
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 <Geom_Surface.hxx>
37 #include <TopAbs_ShapeEnum.hxx>
39 #include <TopoDS_Shape.hxx>
41 #include <TopTools_ListOfShape.hxx>
42 #include <TopTools_DataMapOfShapeShape.hxx>
45 #include <GEOMAlgo_State.hxx>
46 #include <GEOMAlgo_ShapeAlgo.hxx>
47 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
49 //=======================================================================
50 //function : GEOMAlgo_FinderShapeOn
52 //=======================================================================
53 class GEOMAlgo_FinderShapeOn : public GEOMAlgo_ShapeAlgo
57 GEOMAlgo_FinderShapeOn();
60 virtual ~GEOMAlgo_FinderShapeOn();
63 virtual void Perform() ;
66 void SetSurface(const Handle(Geom_Surface)& aS) ;
69 void SetShapeType(const TopAbs_ShapeEnum aST) ;
72 void SetState(const GEOMAlgo_State aSF) ;
75 const Handle(Geom_Surface)& Surface() const;
78 TopAbs_ShapeEnum ShapeType() const;
81 GEOMAlgo_State State() const;
84 const TopTools_ListOfShape& Shapes() const;
87 static void CopySource(const TopoDS_Shape& aS,
88 TopTools_DataMapOfShapeShape& aImages,
89 TopTools_DataMapOfShapeShape& aOriginals,
93 static Standard_Boolean BuildTriangulation(const TopoDS_Shape& aS) ;
97 virtual void CheckData() ;
100 void MakeArgument1() ;
103 void MakeArgument2() ;
109 void Find(const TopoDS_Shape& aS) ;
112 void FindVertices() ;
115 Handle(Geom_Surface) mySurface;
116 TopAbs_ShapeEnum myShapeType;
117 GEOMAlgo_State myState;
120 TopTools_ListOfShape myLS;
121 TopTools_DataMapOfShapeShape myImages;
122 GEOMAlgo_IndexedDataMapOfShapeState myMSS;
123 Standard_Boolean myIsAnalytic;