Salome HOME
Win32 compilation.
[modules/geom.git] / src / GEOMAlgo_NEW / GEOMAlgo_FinderShapeOn.hxx
1 \r
2 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE\r
3 //\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
6 //\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
11 //\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
16 //\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
20 //\r
21 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
22 \r
23 // File:        GEOMAlgo_FinderShapeOn.hxx\r
24 // Created:     Tue Jan 11 14:44:31 2005\r
25 // Author:      Peter KURNEV\r
26 \r
27 #ifndef _GEOMAlgo_FinderShapeOn_HeaderFile\r
28 #define _GEOMAlgo_FinderShapeOn_HeaderFile\r
29 \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
43 \r
44 //=======================================================================\r
45 //function : GEOMAlgo_FinderShapeOn\r
46 //purpose  : \r
47 //=======================================================================\r
48 class GEOMAlgo_FinderShapeOn  : public GEOMAlgo_ShapeAlgo \r
49 {\r
50  public:\r
51   Standard_EXPORT\r
52     GEOMAlgo_FinderShapeOn();\r
53   \r
54   Standard_EXPORT\r
55     virtual ~GEOMAlgo_FinderShapeOn();\r
56   \r
57   Standard_EXPORT\r
58     virtual  void Perform() ;\r
59   \r
60   Standard_EXPORT\r
61     void SetSurface(const Handle(Geom_Surface)& aS) ;\r
62   \r
63   Standard_EXPORT\r
64     void SetShapeType(const TopAbs_ShapeEnum aST) ;\r
65   \r
66   Standard_EXPORT\r
67     void SetState(const GEOMAlgo_State aSF) ;\r
68   \r
69   Standard_EXPORT\r
70     const Handle_Geom_Surface& Surface() const;\r
71   \r
72   Standard_EXPORT\r
73     TopAbs_ShapeEnum ShapeType() const;\r
74   \r
75   Standard_EXPORT\r
76     GEOMAlgo_State State() const;\r
77   \r
78   Standard_EXPORT\r
79     const TopTools_ListOfShape& Shapes() const;\r
80   \r
81   Standard_EXPORT\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
86   \r
87   Standard_EXPORT   \r
88     static  Standard_Boolean BuildTriangulation(const TopoDS_Shape& aS) ;\r
89 \r
90 protected:\r
91   Standard_EXPORT\r
92     virtual  void CheckData() ;\r
93   \r
94   Standard_EXPORT\r
95     void MakeArgument1() ;\r
96   \r
97   Standard_EXPORT\r
98     void MakeArgument2() ;\r
99   \r
100   Standard_EXPORT\r
101     void Find() ;\r
102   \r
103   Standard_EXPORT\r
104     void Find(const TopoDS_Shape& aS) ;\r
105   \r
106   Standard_EXPORT\r
107     void FindVertices() ;\r
108 \r
109 \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
119 };\r
120 #endif\r