2 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
\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
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
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
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
21 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
\r
24 // File: GEOMAlgo_PassKeyShape.hxx
\r
26 // Author: Peter KURNEV
\r
29 #ifndef _GEOMAlgo_PassKeyShape_HeaderFile
\r
30 #define _GEOMAlgo_PassKeyShape_HeaderFile
\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
41 //=======================================================================
\r
42 //class : GEOMAlgo_PassKeyShape
\r
44 //=======================================================================
\r
45 class GEOMAlgo_PassKeyShape {
\r
48 GEOMAlgo_PassKeyShape();
\r
51 virtual ~GEOMAlgo_PassKeyShape();
\r
54 GEOMAlgo_PassKeyShape(const GEOMAlgo_PassKeyShape& Other);
\r
57 GEOMAlgo_PassKeyShape& Assign(const GEOMAlgo_PassKeyShape& Other) ;
\r
59 GEOMAlgo_PassKeyShape& operator =(const GEOMAlgo_PassKeyShape& Other) {
\r
60 return Assign(Other);
\r
64 void SetShapes(const TopoDS_Shape& aS) ;
\r
67 void SetShapes(const TopoDS_Shape& aS1,
\r
68 const TopoDS_Shape& aS2) ;
\r
71 void SetShapes(const TopoDS_Shape& aS1,
\r
72 const TopoDS_Shape& aS2,
\r
73 const TopoDS_Shape& aS3) ;
\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
82 void SetShapes(const TopTools_ListOfShape& aLS) ;
\r
88 Standard_Integer NbIds() const;
\r
91 Standard_Boolean IsEqual(const GEOMAlgo_PassKeyShape& aOther) const;
\r
94 Standard_Integer HashCode(const Standard_Integer Upper) const;
\r
97 void Dump(const Standard_Integer aHex = 0) const;
\r
100 Standard_Integer myNbIds;
\r
101 Standard_Integer mySum;
\r
102 Standard_Integer myUpper;
\r
103 TopTools_IndexedMapOfShape myMap;
\r