Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GEOMAlgo_FinderShapeOn.hxx
Go to the documentation of this file.
1 
2 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
3 //
4 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 //
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.
11 //
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.
16 //
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
20 //
21 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 //
23 
24 // File: GEOMAlgo_FinderShapeOn.hxx
25 // Created: Tue Jan 11 14:44:31 2005
26 // Author: Peter KURNEV
27 
28 #ifndef _GEOMAlgo_FinderShapeOn_HeaderFile
29 #define _GEOMAlgo_FinderShapeOn_HeaderFile
30 
31 #include <Standard.hxx>
32 #include <Standard_Macro.hxx>
33 #include <Standard_Boolean.hxx>
34 
35 #include <Geom_Surface.hxx>
36 
37 #include <TopAbs_ShapeEnum.hxx>
38 
39 #include <TopoDS_Shape.hxx>
40 
41 #include <TopTools_ListOfShape.hxx>
42 #include <TopTools_DataMapOfShapeShape.hxx>
43 
44 
45 #include <GEOMAlgo_State.hxx>
46 #include <GEOMAlgo_ShapeAlgo.hxx>
48 
49 //=======================================================================
50 //function : GEOMAlgo_FinderShapeOn
51 //purpose :
52 //=======================================================================
54 {
55  public:
56  Standard_EXPORT
58 
59  Standard_EXPORT
60  virtual ~GEOMAlgo_FinderShapeOn();
61 
62  Standard_EXPORT
63  virtual void Perform() ;
64 
65  Standard_EXPORT
66  void SetSurface(const Handle(Geom_Surface)& aS) ;
67 
68  Standard_EXPORT
69  void SetShapeType(const TopAbs_ShapeEnum aST) ;
70 
71  Standard_EXPORT
72  void SetState(const GEOMAlgo_State aSF) ;
73 
74  Standard_EXPORT
75  const Handle(Geom_Surface)& Surface() const;
76 
77  Standard_EXPORT
78  TopAbs_ShapeEnum ShapeType() const;
79 
80  Standard_EXPORT
81  GEOMAlgo_State State() const;
82 
83  Standard_EXPORT
84  const TopTools_ListOfShape& Shapes() const;
85 
86  Standard_EXPORT
87  static void CopySource(const TopoDS_Shape& aS,
88  TopTools_DataMapOfShapeShape& aImages,
89  TopTools_DataMapOfShapeShape& aOriginals,
90  TopoDS_Shape& aSC) ;
91 
92  Standard_EXPORT
93  static Standard_Boolean BuildTriangulation(const TopoDS_Shape& aS) ;
94 
95 protected:
96  Standard_EXPORT
97  virtual void CheckData() ;
98 
99  Standard_EXPORT
100  void MakeArgument1() ;
101 
102  Standard_EXPORT
103  void MakeArgument2() ;
104 
105  Standard_EXPORT
106  void Find() ;
107 
108  Standard_EXPORT
109  void Find(const TopoDS_Shape& aS) ;
110 
111  Standard_EXPORT
112  void FindVertices() ;
113 
114 
115  Handle(Geom_Surface) mySurface;
116  TopAbs_ShapeEnum myShapeType;
118  TopoDS_Shape myArg1;
119  TopoDS_Shape myArg2;
120  TopTools_ListOfShape myLS;
121  TopTools_DataMapOfShapeShape myImages;
123  Standard_Boolean myIsAnalytic;
124 };
125 #endif