Version: 9.12.0
GEOMAlgo_FinderShapeOn2.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 // File: GEOMAlgo_FinderShapeOn2.hxx
23 // Created: Fri Mar 4 10:31:06 2005
24 // Author: Peter KURNEV
25 // <pkv@irinox>
26 //
27 #ifndef _GEOMAlgo_FinderShapeOn2_HeaderFile
28 #define _GEOMAlgo_FinderShapeOn2_HeaderFile
29 
30 #include <Standard.hxx>
31 #include <Standard_Macro.hxx>
32 
33 #include <TopAbs_ShapeEnum.hxx>
34 
35 #include <Standard_Integer.hxx>
36 
37 #include <TopoDS_Face.hxx>
38 #include <TopoDS_Edge.hxx>
39 
40 #include <TopTools_ListOfShape.hxx>
41 
43 #include <GEOMAlgo_State.hxx>
44 #include <GEOMAlgo_ListOfPnt.hxx>
45 #include <GEOMAlgo_Clsf.hxx>
46 #include <GEOMAlgo_ShapeAlgo.hxx>
47 
48 //=======================================================================
49 //function : GEOMAlgo_FinderShapeOn2
50 //purpose :
51 //=======================================================================
53 {
54  public:
55  Standard_EXPORT
57 
58  Standard_EXPORT
59  virtual ~GEOMAlgo_FinderShapeOn2();
60 
61  Standard_EXPORT
62  void SetClsf(const Handle(GEOMAlgo_Clsf)& aClsf) ;
63 
64  Standard_EXPORT
65  const Handle(GEOMAlgo_Clsf)& Clsf() const;
66 
67  Standard_EXPORT
68  void SetShapeType(const TopAbs_ShapeEnum aST) ;
69 
70  Standard_EXPORT
71  TopAbs_ShapeEnum ShapeType() const;
72 
73  Standard_EXPORT
74  void SetState(const GEOMAlgo_State aSF) ;
75 
76  Standard_EXPORT
77  GEOMAlgo_State State() const;
78 
79  Standard_EXPORT
80  void SetNbPntsMin(const Standard_Integer aNb) ;
81 
82  Standard_EXPORT
83  Standard_Integer NbPntsMin() const;
84 
85  Standard_EXPORT
86  void SetNbPntsMax(const Standard_Integer aNb) ;
87 
88  Standard_EXPORT
89  Standard_Integer NbPntsMax() const;
90 
91  Standard_EXPORT
92  virtual void Perform() ;
93 
94  Standard_EXPORT
95  const TopTools_ListOfShape& Shapes() const;
96 
97  Standard_EXPORT
99 
100 protected:
101  Standard_EXPORT
102  virtual void CheckData() ;
103 
104  Standard_EXPORT
105  void ProcessVertices() ;
106 
107  Standard_EXPORT
108  void ProcessEdges() ;
109 
110  Standard_EXPORT
111  void ProcessFaces() ;
112 
113  Standard_EXPORT
114  void ProcessSolids() ;
115 
116  Standard_EXPORT
117  void InnerPoints(const TopoDS_Face& aF,
118  GEOMAlgo_ListOfPnt& aLP) ;
119 
120  Standard_EXPORT
121  void InnerPoints(const TopoDS_Edge& aE,
122  GEOMAlgo_ListOfPnt& aLP) ;
123 
124  Standard_EXPORT
125  void InnerPoints(const TopoDS_Edge& aE,
126  const Standard_Integer aNbPnts,
127  GEOMAlgo_ListOfPnt& aLP) ;
128 
129  Standard_EXPORT
130  Standard_Boolean BuildTriangulation(const TopoDS_Shape& aS) ;
131 
132 
133  TopAbs_ShapeEnum myShapeType;
135  Standard_Integer myNbPntsMin;
136  Standard_Integer myNbPntsMax;
137  Handle(GEOMAlgo_Clsf) myClsf;
138  TopTools_ListOfShape myLS;
140 };
141 
142 #endif
NCollection_IndexedDataMap< TopoDS_Shape, TopAbs_State, TopTools_ShapeMapHasher > GEOMAlgo_IndexedDataMapOfShapeState
Definition: GEOMAlgo_IndexedDataMapOfShapeState.hxx:37
NCollection_List< gp_Pnt > GEOMAlgo_ListOfPnt
Definition: GEOMAlgo_ListOfPnt.hxx:31
GEOMAlgo_State
Definition: GEOMAlgo_State.hxx:26
Definition: GEOMAlgo_FinderShapeOn2.hxx:53
Standard_EXPORT const TopTools_ListOfShape & Shapes() const
Definition: GEOMAlgo_FinderShapeOn2.cxx:186
Standard_Integer myNbPntsMin
Definition: GEOMAlgo_FinderShapeOn2.hxx:135
Standard_EXPORT void SetNbPntsMin(const Standard_Integer aNb)
Definition: GEOMAlgo_FinderShapeOn2.cxx:146
Standard_EXPORT Standard_Integer NbPntsMin() const
Definition: GEOMAlgo_FinderShapeOn2.cxx:154
Standard_EXPORT void ProcessEdges()
Definition: GEOMAlgo_FinderShapeOn2.cxx:341
Standard_Integer myNbPntsMax
Definition: GEOMAlgo_FinderShapeOn2.hxx:136
GEOMAlgo_IndexedDataMapOfShapeState myMSS
Definition: GEOMAlgo_FinderShapeOn2.hxx:139
virtual Standard_EXPORT void Perform()
Definition: GEOMAlgo_FinderShapeOn2.cxx:207
virtual Standard_EXPORT void CheckData()
Definition: GEOMAlgo_FinderShapeOn2.cxx:259
Standard_EXPORT void InnerPoints(const TopoDS_Face &aF, GEOMAlgo_ListOfPnt &aLP)
Definition: GEOMAlgo_FinderShapeOn2.cxx:594
Standard_EXPORT Standard_Boolean BuildTriangulation(const TopoDS_Shape &aS)
Definition: GEOMAlgo_FinderShapeOn2.cxx:827
Standard_EXPORT GEOMAlgo_State State() const
Definition: GEOMAlgo_FinderShapeOn2.cxx:138
Standard_EXPORT const GEOMAlgo_IndexedDataMapOfShapeState & MSS() const
Definition: GEOMAlgo_FinderShapeOn2.cxx:178
Standard_EXPORT void SetClsf(const Handle(GEOMAlgo_Clsf)&aClsf)
Definition: GEOMAlgo_FinderShapeOn2.cxx:98
Standard_EXPORT TopAbs_ShapeEnum ShapeType() const
Definition: GEOMAlgo_FinderShapeOn2.cxx:122
Standard_EXPORT void SetState(const GEOMAlgo_State aSF)
Definition: GEOMAlgo_FinderShapeOn2.cxx:130
TopAbs_ShapeEnum myShapeType
Definition: GEOMAlgo_FinderShapeOn2.hxx:133
Standard_EXPORT void ProcessSolids()
Definition: GEOMAlgo_FinderShapeOn2.cxx:544
Handle(GEOMAlgo_Clsf) myClsf
GEOMAlgo_State myState
Definition: GEOMAlgo_FinderShapeOn2.hxx:134
Standard_EXPORT void SetNbPntsMax(const Standard_Integer aNb)
Definition: GEOMAlgo_FinderShapeOn2.cxx:162
TopTools_ListOfShape myLS
Definition: GEOMAlgo_FinderShapeOn2.hxx:138
Standard_EXPORT void SetShapeType(const TopAbs_ShapeEnum aST)
Standard_EXPORT void ProcessFaces()
Definition: GEOMAlgo_FinderShapeOn2.cxx:446
Standard_EXPORT const Handle(GEOMAlgo_Clsf) &Clsf() const
virtual Standard_EXPORT ~GEOMAlgo_FinderShapeOn2()
Definition: GEOMAlgo_FinderShapeOn2.cxx:91
Standard_EXPORT Standard_Integer NbPntsMax() const
Definition: GEOMAlgo_FinderShapeOn2.cxx:170
Standard_EXPORT void ProcessVertices()
Definition: GEOMAlgo_FinderShapeOn2.cxx:300
Standard_EXPORT GEOMAlgo_FinderShapeOn2()
Definition: GEOMAlgo_FinderShapeOn2.cxx:77
Definition: GEOMAlgo_ShapeAlgo.hxx:38