Version: 8.3.0
SMESHDS_GroupBase Class Referenceabstract

#include <SMESHDS_GroupBase.hxx>

Inheritance diagram for SMESHDS_GroupBase:

Public Member Functions

 SMESHDS_GroupBase (const int theID, const SMESHDS_Mesh *theMesh, const SMDSAbs_ElementType theType)
 
int GetID () const
 
const SMESHDS_MeshGetMesh () const
 
virtual void SetType (SMDSAbs_ElementType theType)
 
SMDSAbs_ElementType GetType () const
 
void SetStoreName (const char *theName)
 
const char * GetStoreName () const
 
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 =0
 
virtual int GetID (const int theIndex)
 
virtual int GetTic () const =0
 
virtual ~SMESHDS_GroupBase ()
 
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 Member Functions

 SMESHDS_GroupBase (const SMESHDS_GroupBase &theOther)
 
SMESHDS_GroupBaseoperator= (const SMESHDS_GroupBase &theOther)
 

Private Attributes

int myID
 
const SMESHDS_MeshmyMesh
 
SMDSAbs_ElementType myType
 
std::string myStoreName
 
Quantity_Color myColor
 
int myCurIndex
 
int myCurID
 
SMDS_ElemIteratorPtr myIterator
 

Static Private Attributes

static Quantity_Color myDefaultColor = Quantity_Color( 0.0, 0.0, 0.0, Quantity_TOC_RGB )
 

Constructor & Destructor Documentation

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

References myColor, and myDefaultColor.

virtual SMESHDS_GroupBase::~SMESHDS_GroupBase ( )
virtual
SMESHDS_GroupBase::SMESHDS_GroupBase ( const SMESHDS_GroupBase theOther)
private

Member Function Documentation

bool SMESHDS_GroupBase::Contains ( const SMDS_MeshElement elem)
virtual
int SMESHDS_GroupBase::GetColorGroup ( ) const

References GetColor().

Referenced by SMESH_GroupBase_i::GetColorNumber().

int SMESHDS_GroupBase::GetID ( const int  theIndex)
virtual
virtual int SMESHDS_GroupBase::GetTic ( ) const
pure virtual
SMESHDS_GroupBase& SMESHDS_GroupBase::operator= ( const SMESHDS_GroupBase theOther)
private
void SMESHDS_GroupBase::resetIterator ( )
protected

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

References myCurID, and myCurIndex.

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

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

Referenced by SMESH_Gen_i::SetOption().

void SMESHDS_GroupBase::SetType ( SMDSAbs_ElementType  theType)
virtual

Reimplemented in SMESHDS_Group.

References myType.

Referenced by SMESHDS_Group::SetType().

Field Documentation

Quantity_Color SMESHDS_GroupBase::myColor
private

Referenced by SMESHDS_GroupBase().

int SMESHDS_GroupBase::myCurID
private

Referenced by GetID(), and resetIterator().

int SMESHDS_GroupBase::myCurIndex
private

Referenced by GetID(), and resetIterator().

Quantity_Color SMESHDS_GroupBase::myDefaultColor = Quantity_Color( 0.0, 0.0, 0.0, Quantity_TOC_RGB )
staticprivate

Referenced by SMESHDS_GroupBase().

int SMESHDS_GroupBase::myID
private
SMDS_ElemIteratorPtr SMESHDS_GroupBase::myIterator
private

Referenced by GetID().

const SMESHDS_Mesh* SMESHDS_GroupBase::myMesh
private

Referenced by IsEmpty().

std::string SMESHDS_GroupBase::myStoreName
private
SMDSAbs_ElementType SMESHDS_GroupBase::myType
private

Referenced by IsEmpty(), and SetType().