Version: 8.3.0
SMESHDS_GroupOnGeom Class Reference

#include <SMESHDS_GroupOnGeom.hxx>

Inheritance diagram for SMESHDS_GroupOnGeom:

Public Member Functions

 SMESHDS_GroupOnGeom (const int theID, const SMESHDS_Mesh *theMesh, const SMDSAbs_ElementType theType, const TopoDS_Shape &theShape)
 
void SetShape (const TopoDS_Shape &theShape)
 
TopoDS_Shape GetShape () const
 
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...
 
int GetID () const
 
virtual int GetID (const int theIndex)
 
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 ()
 
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

TopoDS_Shape myShape
 
const SMESHDS_SubMeshmySubMesh
 

Constructor & Destructor Documentation

SMESHDS_GroupOnGeom::SMESHDS_GroupOnGeom ( const int  theID,
const SMESHDS_Mesh theMesh,
const SMDSAbs_ElementType  theType,
const TopoDS_Shape &  theShape 
)

References SetShape().

Member Function Documentation

bool SMESHDS_GroupOnGeom::Contains ( const int  theID)
virtual
bool SMESHDS_GroupOnGeom::Contains ( const SMDS_MeshElement elem)
virtual

Reimplemented from SMESHDS_GroupBase.

References SMESHDS_SubMesh::Contains(), and mySubMesh.

int SMESHDS_GroupBase::GetColorGroup ( ) const
inherited
SMDS_ElemIteratorPtr SMESHDS_GroupOnGeom::GetElements ( ) const
virtual
int SMESHDS_GroupBase::GetID ( const int  theIndex)
virtualinherited
TopoDS_Shape SMESHDS_GroupOnGeom::GetShape ( ) const
int SMESHDS_GroupOnGeom::GetTic ( ) const
virtual

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

Implements SMESHDS_GroupBase.

References SMESHDS_GroupBase::GetMesh(), and SMDS_Mesh::GetMTime().

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 SMESHDS_Group::Add(), SMESHDS_Group::Clear(), and SMESHDS_Group::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().

void SMESHDS_GroupOnGeom::SetShape ( const TopoDS_Shape &  theShape)
void SMESHDS_GroupBase::SetType ( SMDSAbs_ElementType  theType)
virtualinherited

Reimplemented in SMESHDS_Group.

References SMESHDS_GroupBase::myType.

Referenced by SMESHDS_Group::SetType().

Field Documentation

TopoDS_Shape SMESHDS_GroupOnGeom::myShape
private

Referenced by SetShape().

const SMESHDS_SubMesh* SMESHDS_GroupOnGeom::mySubMesh
private

Referenced by Contains(), GetElements(), and SetShape().