Version: 9.16.0
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(), const SMESH_PredicatePtr &thePredicate=SMESH_PredicatePtr())
 
 SMESH_Group (SMESHDS_GroupBase *groupDS)
 Constructor accessible to SMESH_Mesh only. More...
 
 ~SMESH_Group ()
 Destructor deletes myGroupDS. More...
 
void SetName (const char *theName)
 Sets a new name. More...
 
const char * GetName () const
 
SMESHDS_GroupBaseGetGroupDS ()
 
int GetID () const
 Return persistent group ID. More...
 

Private Member Functions

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

Private Attributes

SMESHDS_GroupBasemyGroupDS
 
std::string myName
 

Constructor & Destructor Documentation

◆ SMESH_Group() [1/3]

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

◆ SMESH_Group() [2/3]

SMESH_Group::SMESH_Group ( SMESHDS_GroupBase groupDS)

Constructor accessible to SMESH_Mesh only.

References SMESHDS_GroupBase::GetStoreName(), myGroupDS, and myName.

◆ ~SMESH_Group()

SMESH_Group::~SMESH_Group ( )

Destructor deletes myGroupDS.

References myGroupDS.

◆ SMESH_Group() [3/3]

SMESH_Group::SMESH_Group ( const SMESH_Group theOther)
private

Member Function Documentation

◆ GetGroupDS()

◆ GetID()

int SMESH_Group::GetID ( ) const

Return persistent group ID.

It is negative if no SMESHDS_GroupBase exist

References SMESHDS_GroupBase::GetID(), and myGroupDS.

Referenced by SMESH_Mesh_i::CreateGroupServants().

◆ GetName()

◆ operator=()

SMESH_Group & SMESH_Group::operator= ( const SMESH_Group theOther)
private

◆ SetName()

void SMESH_Group::SetName ( const char *  theName)

Sets a new name.

References myGroupDS, myName, and SMESHDS_GroupBase::SetStoreName().

Referenced by SMESH_GroupBase_i::SetName().

Field Documentation

◆ myGroupDS

SMESHDS_GroupBase* SMESH_Group::myGroupDS
private

◆ myName

std::string SMESH_Group::myName
private

Referenced by SetName(), and SMESH_Group().