Back to index

salome-geom  6.5.0
GEOMAlgo_PassKeyShape.hxx
Go to the documentation of this file.
00001 
00002 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00003 //
00004 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00005 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00006 //
00007 // This library is free software; you can redistribute it and/or
00008 // modify it under the terms of the GNU Lesser General Public
00009 // License as published by the Free Software Foundation; either
00010 // version 2.1 of the License.
00011 //
00012 // This library is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 // Lesser General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU Lesser General Public
00018 // License along with this library; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00020 //
00021 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00022 //
00023 
00024 // File:        GEOMAlgo_PassKeyShape.hxx
00025 // Created:
00026 // Author:      Peter KURNEV
00027 //              <pkv@irinox>
00028 //
00029 #ifndef _GEOMAlgo_PassKeyShape_HeaderFile
00030 #define _GEOMAlgo_PassKeyShape_HeaderFile
00031 
00032 #include <Standard.hxx>
00033 #include <Standard_Macro.hxx>
00034 #include <Standard_Integer.hxx>
00035 #include <TopTools_IndexedMapOfShape.hxx>
00036 #include <Standard_Boolean.hxx>
00037 #include <TopoDS_Shape.hxx>
00038 #include <TopTools_ListOfShape.hxx>
00039 
00040 
00041 //=======================================================================
00042 //class    : GEOMAlgo_PassKeyShape
00043 //purpose  :
00044 //=======================================================================
00045 class GEOMAlgo_PassKeyShape  {
00046  public:
00047   Standard_EXPORT
00048     GEOMAlgo_PassKeyShape();
00049 
00050   Standard_EXPORT
00051     virtual ~GEOMAlgo_PassKeyShape();
00052 
00053   Standard_EXPORT
00054     GEOMAlgo_PassKeyShape(const GEOMAlgo_PassKeyShape& Other);
00055 
00056   Standard_EXPORT
00057     GEOMAlgo_PassKeyShape& Assign(const GEOMAlgo_PassKeyShape& Other) ;
00058 
00059   GEOMAlgo_PassKeyShape& operator =(const GEOMAlgo_PassKeyShape& Other) {
00060     return Assign(Other);
00061   }
00062 
00063   Standard_EXPORT
00064     void SetShapes(const TopoDS_Shape& aS) ;
00065 
00066   Standard_EXPORT
00067     void SetShapes(const TopoDS_Shape& aS1,
00068                  const TopoDS_Shape& aS2) ;
00069 
00070   Standard_EXPORT
00071     void SetShapes(const TopoDS_Shape& aS1,
00072                  const TopoDS_Shape& aS2,
00073                  const TopoDS_Shape& aS3) ;
00074 
00075   Standard_EXPORT
00076     void SetShapes(const TopoDS_Shape& aS1,
00077                  const TopoDS_Shape& aS2,
00078                  const TopoDS_Shape& aS3,
00079                  const TopoDS_Shape& aS4) ;
00080 
00081   Standard_EXPORT
00082     void SetShapes(const TopTools_ListOfShape& aLS) ;
00083 
00084   Standard_EXPORT
00085     void Clear() ;
00086 
00087   Standard_EXPORT
00088     Standard_Integer NbIds() const;
00089 
00090   Standard_EXPORT
00091     Standard_Boolean IsEqual(const GEOMAlgo_PassKeyShape& aOther) const;
00092 
00093   Standard_EXPORT
00094     Standard_Integer HashCode(const Standard_Integer Upper) const;
00095 
00096   Standard_EXPORT
00097     void Dump(const Standard_Integer aHex = 0) const;
00098 
00099 protected:
00100   Standard_Integer myNbIds;
00101   Standard_Integer mySum;
00102   Standard_Integer myUpper;
00103   TopTools_IndexedMapOfShape myMap;
00104 };
00105 #endif