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