Back to index

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