Back to index

salome-smesh  6.5.0
SMESH_Group.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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 
00023 //  SMESH SMESH : implementaion of SMESH idl descriptions
00024 //  File   : SMESH_Group.hxx
00025 //  Author : Michael Sazonov (OCC)
00026 //  Module : SMESH
00027 //
00028 #ifndef _SMESH_Group_HeaderFile
00029 #define _SMESH_Group_HeaderFile
00030 
00031 #include "SMESH_SMESH.hxx"
00032 
00033 #include "SMDSAbs_ElementType.hxx"
00034 #include "SMESH_Controls.hxx"
00035 
00036 #include <string>
00037 #include <TopoDS_Shape.hxx>
00038 
00039 class SMESHDS_GroupBase;
00040 class SMESH_Mesh;
00041 
00042 class SMESH_EXPORT  SMESH_Group
00043 {
00044  public:
00045 
00046   SMESH_Group (int                       theID,
00047                const SMESH_Mesh*         theMesh,
00048                const SMDSAbs_ElementType theType,
00049                const char*               theName,
00050                const TopoDS_Shape&       theShape = TopoDS_Shape(),
00051                const SMESH_PredicatePtr& thePredicate = SMESH_PredicatePtr());
00052   SMESH_Group (SMESHDS_GroupBase* groupDS);
00053   ~SMESH_Group ();
00054 
00055   void SetName (const char* theName) { myName = theName; }
00056 
00057   const char* GetName () const { return myName.c_str(); }
00058 
00059   SMESHDS_GroupBase * GetGroupDS () { return myGroupDS; }
00060 
00061  private:
00062   SMESH_Group (const SMESH_Group& theOther);
00063   // prohibited copy constructor
00064   SMESH_Group& operator = (const SMESH_Group& theOther);
00065   // prohibited assign operator
00066 
00067   SMESHDS_GroupBase * myGroupDS;
00068   std::string         myName;
00069 };
00070 
00071 #endif