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