1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File: NMTDS_PassKeyShape.hxx
22 // Author: Peter KURNEV
25 #ifndef _NMTDS_PassKeyShape_HeaderFile
26 #define _NMTDS_PassKeyShape_HeaderFile
28 #include <Standard.hxx>
29 #include <Standard_Macro.hxx>
30 #include <Standard_Integer.hxx>
31 #include <TopTools_IndexedMapOfShape.hxx>
32 #include <Standard_Boolean.hxx>
33 #include <TopoDS_Shape.hxx>
34 #include <TopTools_ListOfShape.hxx>
36 //=======================================================================
37 //function : NMTDS_PassKeyShape
39 //=======================================================================
40 class NMTDS_PassKeyShape {
46 virtual ~NMTDS_PassKeyShape();
49 NMTDS_PassKeyShape(const NMTDS_PassKeyShape& Other);
52 NMTDS_PassKeyShape& Assign(const NMTDS_PassKeyShape& Other) ;
54 NMTDS_PassKeyShape& operator =(const NMTDS_PassKeyShape& Other) {
59 void SetShapes(const TopoDS_Shape& aS) ;
62 void SetShapes(const TopoDS_Shape& aS1,
63 const TopoDS_Shape& aS2) ;
66 void SetShapes(const TopoDS_Shape& aS1,
67 const TopoDS_Shape& aS2,
68 const TopoDS_Shape& aS3) ;
71 void SetShapes(const TopoDS_Shape& aS1,
72 const TopoDS_Shape& aS2,
73 const TopoDS_Shape& aS3,
74 const TopoDS_Shape& aS4) ;
77 void SetShapes(const TopTools_ListOfShape& aLS) ;
83 Standard_Integer NbIds() const;
86 Standard_Boolean IsEqual(const NMTDS_PassKeyShape& aOther) const;
89 Standard_Integer HashCode(const Standard_Integer Upper) const;
92 void Dump(const Standard_Integer aHex = 0) const;
95 Standard_Integer myNbIds;
96 Standard_Integer mySum;
97 Standard_Integer myUpper;
98 TopTools_IndexedMapOfShape myMap;