Salome HOME
Internal issue 0022865: Restructurization of Partition packages.
[modules/geom.git] / src / GEOMAlgo_NEW / GEOMAlgo_PassKeyShape.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 \r
24 // File:        GEOMAlgo_PassKeyShape.hxx\r
25 // Created:     \r
26 // Author:      Peter KURNEV\r
27 //              <pkv@irinox>\r
28 //\r
29 #ifndef _GEOMAlgo_PassKeyShape_HeaderFile\r
30 #define _GEOMAlgo_PassKeyShape_HeaderFile\r
31 \r
32 #include <Standard.hxx>\r
33 #include <Standard_Macro.hxx>\r
34 #include <Standard_Integer.hxx>\r
35 #include <TopTools_IndexedMapOfShape.hxx>\r
36 #include <Standard_Boolean.hxx>\r
37 #include <TopoDS_Shape.hxx>\r
38 #include <TopTools_ListOfShape.hxx>\r
39 \r
40 \r
41 //=======================================================================\r
42 //class    : GEOMAlgo_PassKeyShape\r
43 //purpose  : \r
44 //=======================================================================\r
45 class GEOMAlgo_PassKeyShape  {\r
46  public:\r
47   Standard_EXPORT\r
48     GEOMAlgo_PassKeyShape();\r
49   \r
50   Standard_EXPORT \r
51     virtual ~GEOMAlgo_PassKeyShape();\r
52   \r
53   Standard_EXPORT\r
54     GEOMAlgo_PassKeyShape(const GEOMAlgo_PassKeyShape& Other);\r
55   \r
56   Standard_EXPORT\r
57     GEOMAlgo_PassKeyShape& Assign(const GEOMAlgo_PassKeyShape& Other) ;\r
58     \r
59   GEOMAlgo_PassKeyShape& operator =(const GEOMAlgo_PassKeyShape& Other) {\r
60     return Assign(Other);\r
61   }\r
62   \r
63   Standard_EXPORT\r
64     void SetShapes(const TopoDS_Shape& aS) ;\r
65   \r
66   Standard_EXPORT\r
67     void SetShapes(const TopoDS_Shape& aS1,\r
68                    const TopoDS_Shape& aS2) ;\r
69   \r
70   Standard_EXPORT\r
71     void SetShapes(const TopoDS_Shape& aS1,\r
72                    const TopoDS_Shape& aS2,\r
73                    const TopoDS_Shape& aS3) ;\r
74   \r
75   Standard_EXPORT\r
76     void SetShapes(const TopoDS_Shape& aS1,\r
77                    const TopoDS_Shape& aS2,\r
78                    const TopoDS_Shape& aS3,\r
79                    const TopoDS_Shape& aS4) ;\r
80   \r
81   Standard_EXPORT\r
82     void SetShapes(const TopTools_ListOfShape& aLS) ;\r
83   \r
84   Standard_EXPORT\r
85     void Clear() ;\r
86   \r
87   Standard_EXPORT\r
88     Standard_Integer NbIds() const;\r
89   \r
90   Standard_EXPORT\r
91     Standard_Boolean IsEqual(const GEOMAlgo_PassKeyShape& aOther) const;\r
92   \r
93   Standard_EXPORT\r
94     Standard_Integer HashCode(const Standard_Integer Upper) const;\r
95   \r
96   Standard_EXPORT\r
97     void Dump(const Standard_Integer aHex = 0) const;\r
98 \r
99 protected:\r
100   Standard_Integer myNbIds;\r
101   Standard_Integer mySum;\r
102   Standard_Integer myUpper;\r
103   TopTools_IndexedMapOfShape myMap;\r
104 };\r
105 #endif\r