Version: 6.3.1
Public Member Functions | Private Member Functions | Private Attributes

SMESH_Group Class Reference

#include <SMESH_Group.hxx>

Public Member Functions

 SMESH_Group (int theID, const SMESH_Mesh *theMesh, const SMDSAbs_ElementType theType, const char *theName, const TopoDS_Shape &theShape=TopoDS_Shape())
 ~SMESH_Group ()
void SetName (const char *theName)
const char * GetName () const
SMESHDS_GroupBaseGetGroupDS ()

Private Member Functions

 SMESH_Group (const SMESH_Group &theOther)
SMESH_Groupoperator= (const SMESH_Group &theOther)

Private Attributes

SMESHDS_GroupBasemyGroupDS
std::string myName

Detailed Description

Definition at line 41 of file SMESH_Group.hxx.


Constructor & Destructor Documentation

SMESH_Group::SMESH_Group ( int  theID,
const SMESH_Mesh theMesh,
const SMDSAbs_ElementType  theType,
const char *  theName,
const TopoDS_Shape &  theShape = TopoDS_Shape() 
)

Definition at line 40 of file SMESH_Group.cxx.

References myGroupDS.

     : myName(theName)
{
  if ( theShape.IsNull() )
    myGroupDS = new SMESHDS_Group (theID,
                                   const_cast<SMESH_Mesh*>(theMesh)->GetMeshDS(),
                                   theType);
  else
    myGroupDS = new SMESHDS_GroupOnGeom (theID,
                                         const_cast<SMESH_Mesh*>(theMesh)->GetMeshDS(),
                                         theType,
                                         theShape);
}
SMESH_Group::~SMESH_Group ( )

Definition at line 64 of file SMESH_Group.cxx.

References myGroupDS.

{
  delete myGroupDS; myGroupDS=0;
}
SMESH_Group.SMESH_Group ( const SMESH_Group theOther) [private]

Member Function Documentation

SMESHDS_GroupBase* SMESH_Group.GetGroupDS ( )

Definition at line 56 of file SMESH_Group.hxx.

{ return myGroupDS; }
const char* SMESH_Group.GetName ( ) const

Definition at line 54 of file SMESH_Group.hxx.

{ return myName.c_str(); }
SMESH_Group& SMESH_Group.operator= ( const SMESH_Group theOther) [private]
void SMESH_Group.SetName ( const char *  theName)

Definition at line 52 of file SMESH_Group.hxx.

{ myName = theName; }

Field Documentation

Definition at line 64 of file SMESH_Group.hxx.

Referenced by SMESH_Group(), and ~SMESH_Group().

std::string SMESH_Group.myName [private]

Definition at line 65 of file SMESH_Group.hxx.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS