Version: 9.12.0
GEOMAlgo_PassKeyShape.hxx
Go to the documentation of this file.
1 
2 // Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
3 //
4 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 //
7 // This library is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU Lesser General Public
9 // License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 //
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // Lesser General Public License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public
18 // License along with this library; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 //
21 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 //
23 
24 // File: GEOMAlgo_PassKeyShape.hxx
25 // Created:
26 // Author: Peter KURNEV
27 // <pkv@irinox>
28 //
29 #ifndef _GEOMAlgo_PassKeyShape_HeaderFile
30 #define _GEOMAlgo_PassKeyShape_HeaderFile
31 
32 #include <Standard.hxx>
33 #include <Standard_Macro.hxx>
34 #include <Standard_Integer.hxx>
35 #include <TopTools_IndexedMapOfShape.hxx>
36 #include <Standard_Boolean.hxx>
37 #include <TopoDS_Shape.hxx>
38 #include <TopTools_ListOfShape.hxx>
39 
40 
41 //=======================================================================
42 //class : GEOMAlgo_PassKeyShape
43 //purpose :
44 //=======================================================================
46  public:
47  Standard_EXPORT
49 
50  Standard_EXPORT
51  virtual ~GEOMAlgo_PassKeyShape();
52 
53  Standard_EXPORT
55 
56  Standard_EXPORT
58 
60  return Assign(Other);
61  }
62 
63  Standard_EXPORT
64  void SetShapes(const TopoDS_Shape& aS) ;
65 
66  Standard_EXPORT
67  void SetShapes(const TopoDS_Shape& aS1,
68  const TopoDS_Shape& aS2) ;
69 
70  Standard_EXPORT
71  void SetShapes(const TopoDS_Shape& aS1,
72  const TopoDS_Shape& aS2,
73  const TopoDS_Shape& aS3) ;
74 
75  Standard_EXPORT
76  void SetShapes(const TopoDS_Shape& aS1,
77  const TopoDS_Shape& aS2,
78  const TopoDS_Shape& aS3,
79  const TopoDS_Shape& aS4) ;
80 
81  Standard_EXPORT
82  void SetShapes(const TopTools_ListOfShape& aLS) ;
83 
84  Standard_EXPORT
85  void Clear() ;
86 
87  Standard_EXPORT
88  Standard_Integer NbIds() const;
89 
90  Standard_EXPORT
91  Standard_Boolean IsEqual(const GEOMAlgo_PassKeyShape& aOther) const;
92 
93  Standard_EXPORT
94  Standard_Integer HashCode(const Standard_Integer Upper) const;
95 
96  Standard_EXPORT
97  void Dump(const Standard_Integer aHex = 0) const;
98 
99 protected:
100  Standard_Integer myNbIds;
101  Standard_Integer mySum;
102  Standard_Integer myUpper;
103  TopTools_IndexedMapOfShape myMap;
104 };
105 #endif
Definition: GEOMAlgo_PassKeyShape.hxx:45
Standard_EXPORT void Clear()
Definition: GEOMAlgo_PassKeyShape.cxx:79
Standard_EXPORT GEOMAlgo_PassKeyShape & Assign(const GEOMAlgo_PassKeyShape &Other)
Definition: GEOMAlgo_PassKeyShape.cxx:67
Standard_EXPORT Standard_Integer HashCode(const Standard_Integer Upper) const
Definition: GEOMAlgo_PassKeyShape.cxx:202
Standard_EXPORT Standard_Integer NbIds() const
Definition: GEOMAlgo_PassKeyShape.cxx:172
GEOMAlgo_PassKeyShape & operator=(const GEOMAlgo_PassKeyShape &Other)
Definition: GEOMAlgo_PassKeyShape.hxx:59
Standard_EXPORT void SetShapes(const TopoDS_Shape &aS)
Definition: GEOMAlgo_PassKeyShape.cxx:89
Standard_EXPORT void Dump(const Standard_Integer aHex=0) const
Definition: GEOMAlgo_PassKeyShape.cxx:210
virtual Standard_EXPORT ~GEOMAlgo_PassKeyShape()
Definition: GEOMAlgo_PassKeyShape.cxx:60
Standard_Integer mySum
Definition: GEOMAlgo_PassKeyShape.hxx:101
Standard_EXPORT Standard_Boolean IsEqual(const GEOMAlgo_PassKeyShape &aOther) const
Definition: GEOMAlgo_PassKeyShape.cxx:180
Standard_Integer myNbIds
Definition: GEOMAlgo_PassKeyShape.hxx:100
Standard_EXPORT GEOMAlgo_PassKeyShape()
Definition: GEOMAlgo_PassKeyShape.cxx:41
TopTools_IndexedMapOfShape myMap
Definition: GEOMAlgo_PassKeyShape.hxx:103
Standard_Integer myUpper
Definition: GEOMAlgo_PassKeyShape.hxx:102