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