Version: 9.12.0
GEOMAlgo_FinderShapeOn.hxx
Go to the documentation of this file.
1 
2 // Copyright (C) 2007-2023 CEA, EDF, 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
NCollection_IndexedDataMap< TopoDS_Shape, TopAbs_State, TopTools_ShapeMapHasher > GEOMAlgo_IndexedDataMapOfShapeState
Definition: GEOMAlgo_IndexedDataMapOfShapeState.hxx:37
GEOMAlgo_State
Definition: GEOMAlgo_State.hxx:26
Definition: GEOMAlgo_FinderShapeOn.hxx:54
static Standard_EXPORT Standard_Boolean BuildTriangulation(const TopoDS_Shape &aS)
Definition: GEOMAlgo_FinderShapeOn.cxx:548
Standard_EXPORT TopAbs_ShapeEnum ShapeType() const
Definition: GEOMAlgo_FinderShapeOn.cxx:123
Standard_EXPORT void MakeArgument2()
Definition: GEOMAlgo_FinderShapeOn.cxx:446
Standard_EXPORT GEOMAlgo_State State() const
Definition: GEOMAlgo_FinderShapeOn.cxx:139
Standard_EXPORT GEOMAlgo_FinderShapeOn()
Definition: GEOMAlgo_FinderShapeOn.cxx:79
TopoDS_Shape myArg1
Definition: GEOMAlgo_FinderShapeOn.hxx:118
Standard_EXPORT void SetState(const GEOMAlgo_State aSF)
Definition: GEOMAlgo_FinderShapeOn.cxx:131
TopTools_ListOfShape myLS
Definition: GEOMAlgo_FinderShapeOn.hxx:120
Standard_EXPORT void SetShapeType(const TopAbs_ShapeEnum aST)
virtual Standard_EXPORT void CheckData()
Definition: GEOMAlgo_FinderShapeOn.cxx:463
Standard_EXPORT const Handle(Geom_Surface) &Surface() const
static Standard_EXPORT void CopySource(const TopoDS_Shape &aS, TopTools_DataMapOfShapeShape &aImages, TopTools_DataMapOfShapeShape &aOriginals, TopoDS_Shape &aSC)
Definition: GEOMAlgo_FinderShapeOn.cxx:496
Standard_EXPORT void MakeArgument1()
Definition: GEOMAlgo_FinderShapeOn.cxx:374
Standard_EXPORT void SetSurface(const Handle(Geom_Surface)&aS)
Definition: GEOMAlgo_FinderShapeOn.cxx:99
virtual Standard_EXPORT void Perform()
Definition: GEOMAlgo_FinderShapeOn.cxx:173
Standard_EXPORT const TopTools_ListOfShape & Shapes() const
Definition: GEOMAlgo_FinderShapeOn.cxx:147
TopoDS_Shape myArg2
Definition: GEOMAlgo_FinderShapeOn.hxx:119
GEOMAlgo_State myState
Definition: GEOMAlgo_FinderShapeOn.hxx:117
Handle(Geom_Surface) mySurface
TopTools_DataMapOfShapeShape myImages
Definition: GEOMAlgo_FinderShapeOn.hxx:121
Standard_Boolean myIsAnalytic
Definition: GEOMAlgo_FinderShapeOn.hxx:123
virtual Standard_EXPORT ~GEOMAlgo_FinderShapeOn()
Definition: GEOMAlgo_FinderShapeOn.cxx:92
Standard_EXPORT void Find()
Definition: GEOMAlgo_FinderShapeOn.cxx:254
Standard_EXPORT void FindVertices()
Definition: GEOMAlgo_FinderShapeOn.cxx:219
TopAbs_ShapeEnum myShapeType
Definition: GEOMAlgo_FinderShapeOn.hxx:116
GEOMAlgo_IndexedDataMapOfShapeState myMSS
Definition: GEOMAlgo_FinderShapeOn.hxx:122
Definition: GEOMAlgo_ShapeAlgo.hxx:38