Version: 8.3.0
SMESHDS_Group Class Reference

#include <SMESHDS_Group.hxx>

Inheritance diagram for SMESHDS_Group:

Public Member Functions

 SMESHDS_Group (const int theID, const SMESHDS_Mesh *theMesh, const SMDSAbs_ElementType theType)
 
virtual void SetType (SMDSAbs_ElementType theType)
 
virtual int Extent () const
 
virtual bool IsEmpty ()
 
virtual bool Contains (const int theID)
 
virtual bool Contains (const SMDS_MeshElement *elem)
 
virtual SMDS_ElemIteratorPtr GetElements () const
 
virtual int GetTic () const
 Return a value allowing to find out if a group has changed or not. More...
 
bool Add (const int theID)
 
bool Add (const SMDS_MeshElement *theElem)
 
bool Remove (const int theID)
 
void Clear ()
 
SMDS_MeshGroupSMDSGroup ()
 
int GetID () const
 
virtual int GetID (const int theIndex)
 
const SMESHDS_MeshGetMesh () const
 
SMDSAbs_ElementType GetType () const
 
void SetStoreName (const char *theName)
 
const char * GetStoreName () const
 
void SetColor (const Quantity_Color &theColor)
 
Quantity_Color GetColor () const
 
void SetColorGroup (int theColorGroup)
 
int GetColorGroup () const
 

Static Public Member Functions

static void SetDefaultColor (const Quantity_Color &theColor)
 

Protected Member Functions

const SMDS_MeshElementfindInMesh (const int theID) const
 
void resetIterator ()
 Internal method: resets cached iterator, should be called by ancestors when they are modified (ex: Add() or Remove() ) More...
 

Private Attributes

SMDS_MeshGroup myGroup
 

Constructor & Destructor Documentation

SMESHDS_Group::SMESHDS_Group ( const int  theID,
const SMESHDS_Mesh theMesh,
const SMDSAbs_ElementType  theType 
)

Member Function Documentation

void SMESHDS_Group::Clear ( )
bool SMESHDS_Group::Contains ( const int  theID)
virtual
bool SMESHDS_Group::Contains ( const SMDS_MeshElement elem)
virtual

Reimplemented from SMESHDS_GroupBase.

References SMDS_MeshGroup::Contains(), and myGroup.

int SMESHDS_Group::Extent ( ) const
virtual

Reimplemented from SMESHDS_GroupBase.

References SMDS_MeshGroup::Extent(), and myGroup.

int SMESHDS_GroupBase::GetColorGroup ( ) const
inherited
SMDS_ElemIteratorPtr SMESHDS_Group::GetElements ( ) const
virtual
int SMESHDS_GroupBase::GetID ( const int  theIndex)
virtualinherited
int SMESHDS_Group::GetTic ( ) const
virtual

Return a value allowing to find out if a group has changed or not.

Implements SMESHDS_GroupBase.

References myGroup, and SMDS_MeshGroup::Tic().

void SMESHDS_GroupBase::resetIterator ( )
protectedinherited

Internal method: resets cached iterator, should be called by ancestors when they are modified (ex: Add() or Remove() )

References SMESHDS_GroupBase::myCurID, and SMESHDS_GroupBase::myCurIndex.

Referenced by Add(), Clear(), and Remove().

void SMESHDS_GroupBase::SetColor ( const Quantity_Color &  theColor)
inherited
void SMESHDS_GroupBase::SetColorGroup ( int  theColorGroup)
inherited
static void SMESHDS_GroupBase::SetDefaultColor ( const Quantity_Color &  theColor)
staticinherited

Referenced by SMESH_Gen_i::SetOption().

Field Documentation

SMDS_MeshGroup SMESHDS_Group::myGroup
private