SALOME - SMESH
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SMESH_Group.hxx
Go to the documentation of this file.
00001 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 //  This library is free software; you can redistribute it and/or
00007 //  modify it under the terms of the GNU Lesser General Public
00008 //  License as published by the Free Software Foundation; either
00009 //  version 2.1 of the License.
00010 //
00011 //  This library is distributed in the hope that it will be useful,
00012 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 //  Lesser General Public License for more details.
00015 //
00016 //  You should have received a copy of the GNU Lesser General Public
00017 //  License along with this library; if not, write to the Free Software
00018 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 //  SMESH SMESH : implementaion of SMESH idl descriptions
00023 //  File   : SMESH_Group.hxx
00024 //  Author : Michael Sazonov (OCC)
00025 //  Module : SMESH
00026 //  $Header$
00027 //
00028 #ifndef _SMESH_Group_HeaderFile
00029 #define _SMESH_Group_HeaderFile
00030 
00031 #include "SMESH_SMESH.hxx"
00032 
00033 #include "SMDSAbs_ElementType.hxx"
00034 
00035 #include <string>
00036 #include <TopoDS_Shape.hxx>
00037 
00038 class SMESHDS_GroupBase;
00039 class SMESH_Mesh;
00040 
00041 class SMESH_EXPORT  SMESH_Group
00042 {
00043  public:
00044 
00045   SMESH_Group (int                       theID,
00046                const SMESH_Mesh*         theMesh,
00047                const SMDSAbs_ElementType theType,
00048                const char*               theName,
00049                const TopoDS_Shape&       theShape = TopoDS_Shape());
00050   ~SMESH_Group ();
00051 
00052   void SetName (const char* theName) { myName = theName; }
00053 
00054   const char* GetName () const { return myName.c_str(); }
00055 
00056   SMESHDS_GroupBase * GetGroupDS () { return myGroupDS; }
00057 
00058  private:
00059   SMESH_Group (const SMESH_Group& theOther);
00060   // prohibited copy constructor
00061   SMESH_Group& operator = (const SMESH_Group& theOther);
00062   // prohibited assign operator
00063 
00064   SMESHDS_GroupBase * myGroupDS;
00065   std::string         myName;
00066 };
00067 
00068 #endif