Salome HOME
Win32 compilation.
[modules/geom.git] / src / GEOMAlgo_NEW / GEOMAlgo_BuilderShape.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 \r
23 // File:        GEOMAlgo_BuilderShape.hxx\r
24 // Created:     \r
25 // Author:      Peter KURNEV \r
26 //\r
27 #ifndef _GEOMAlgo_BuilderShape_HeaderFile\r
28 #define _GEOMAlgo_BuilderShape_HeaderFile\r
29 \r
30 #include <Standard.hxx>\r
31 #include <Standard_Macro.hxx>\r
32 #include <TopoDS_Shape.hxx>\r
33 #include <TopTools_ListOfShape.hxx>\r
34 #include <TopTools_MapOfShape.hxx>\r
35 #include <Standard_Boolean.hxx>\r
36 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>\r
37 #include <GEOMAlgo_Algo.hxx>\r
38 \r
39 \r
40 //! Root class for algorithms that has shape as result <br>\r
41 //=======================================================================\r
42 //class    : GEOMAlgo_BuilderShape\r
43 //purpose  : \r
44 //=======================================================================\r
45 class GEOMAlgo_BuilderShape  : public GEOMAlgo_Algo\r
46 {\r
47  public:\r
48   //!  Returns the result of algorithm <br>\r
49   Standard_EXPORT\r
50     const TopoDS_Shape& Shape() const;\r
51   \r
52   //! Returns the list of shapes generated from the <br>\r
53   //!          shape theS. <br>\r
54   Standard_EXPORT\r
55     virtual const TopTools_ListOfShape& Generated(const TopoDS_Shape& theS) ;\r
56   \r
57   //! Returns the list of shapes modified from the <br>\r
58   //!          shape theS. <br>\r
59   Standard_EXPORT\r
60     virtual const TopTools_ListOfShape& Modified(const TopoDS_Shape& theS) ;\r
61   \r
62   //! Returns true if the shape theS has been deleted. <br>\r
63   Standard_EXPORT\r
64     virtual  Standard_Boolean IsDeleted(const TopoDS_Shape& theS) ;\r
65   \r
66   //! Returns true if the at least one shape(or sub-shape) <br>\r
67   //!          of arguments has been deleted. <br>\r
68   Standard_EXPORT\r
69     Standard_Boolean HasDeleted() const;\r
70   \r
71   //! Returns true if the at least one shape(or sub-shape) <br>\r
72   //!          of arguments has generated shapes. <br>\r
73   Standard_EXPORT\r
74     Standard_Boolean HasGenerated() const;\r
75   \r
76   //! Returns true if the at least one shape(or sub-shape) <br>\r
77   //!          of arguments has modified shapes. <br>\r
78   Standard_EXPORT\r
79     Standard_Boolean HasModified() const;\r
80   \r
81   Standard_EXPORT\r
82     const TopTools_IndexedDataMapOfShapeListOfShape& ImagesResult() const;\r
83 \r
84 protected:\r
85   //! Empty constructor <br>\r
86   Standard_EXPORT\r
87     GEOMAlgo_BuilderShape();\r
88   \r
89   Standard_EXPORT\r
90     virtual ~GEOMAlgo_BuilderShape();\r
91   \r
92   //!  Prepare information for history support <br>\r
93   Standard_EXPORT\r
94     virtual  void PrepareHistory() ;\r
95 \r
96 \r
97   TopoDS_Shape myShape;\r
98   TopTools_ListOfShape myHistShapes;\r
99   TopTools_MapOfShape myMapShape;\r
100   Standard_Boolean myHasDeleted;\r
101   Standard_Boolean myHasGenerated;\r
102   Standard_Boolean myHasModified;\r
103   TopTools_IndexedDataMapOfShapeListOfShape myImagesResult;\r
104 };\r
105 #endif\r