Version: 9.12.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 smIdType 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 smIdType GetID (const int theIndex)
 Don't use it! More...
 
const SMESHDS_MeshGetMesh () const
 
virtual void SetType (SMDSAbs_ElementType theType)
 
SMDSAbs_ElementType GetType () const
 
void SetStoreName (const char *theName)
 
const char * GetStoreName () const
 
virtual smIdType 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 smIdType 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
 
int myID
 
const SMESHDS_MeshmyMesh
 
SMDSAbs_ElementType myType
 
std::string myStoreName
 
Quantity_Color myColor
 
smIdType myCurIndex
 
smIdType 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_GroupOnGeom()

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

References SetShape().

Member Function Documentation

◆ Contains() [1/2]

bool SMESHDS_GroupOnGeom::Contains ( const SMDS_MeshElement elem)
virtual

◆ Contains() [2/2]

bool SMESHDS_GroupOnGeom::Contains ( const smIdType  theID)
virtual

◆ Extent()

◆ findInMesh()

◆ GetColor()

◆ GetColorGroup()

int SMESHDS_GroupBase::GetColorGroup ( ) const
inherited

◆ GetElements()

SMDS_ElemIteratorPtr SMESHDS_GroupOnGeom::GetElements ( ) const
virtual

◆ GetID() [1/2]

◆ GetID() [2/2]

smIdType SMESHDS_GroupBase::GetID ( const int  theIndex)
virtualinherited

◆ GetMesh()

◆ GetShape()

TopoDS_Shape SMESHDS_GroupOnGeom::GetShape ( ) const

◆ GetStoreName()

◆ GetTic()

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().

◆ GetType()

◆ IsEmpty()

◆ resetIterator()

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().

◆ SetColor()

void SMESHDS_GroupBase::SetColor ( const Quantity_Color &  theColor)
inherited

◆ SetColorGroup()

void SMESHDS_GroupBase::SetColorGroup ( int  theColorGroup)
inherited

◆ SetDefaultColor()

static void SMESHDS_GroupBase::SetDefaultColor ( const Quantity_Color &  theColor)
staticinherited

Referenced by SMESH_Gen_i::SetOption().

◆ SetShape()

void SMESHDS_GroupOnGeom::SetShape ( const TopoDS_Shape &  theShape)

◆ SetStoreName()

◆ SetType()

void SMESHDS_GroupBase::SetType ( SMDSAbs_ElementType  theType)
virtualinherited

Reimplemented in SMESHDS_Group.

References SMESHDS_GroupBase::myType.

Referenced by SMESHDS_Group::SetType().

Field Documentation

◆ myColor

Quantity_Color SMESHDS_GroupBase::myColor
privateinherited

◆ myCurID

smIdType SMESHDS_GroupBase::myCurID
privateinherited

◆ myCurIndex

smIdType SMESHDS_GroupBase::myCurIndex
privateinherited

◆ myDefaultColor

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

◆ myID

int SMESHDS_GroupBase::myID
privateinherited

◆ myIterator

SMDS_ElemIteratorPtr SMESHDS_GroupBase::myIterator
privateinherited

◆ myMesh

const SMESHDS_Mesh* SMESHDS_GroupBase::myMesh
privateinherited

◆ myShape

TopoDS_Shape SMESHDS_GroupOnGeom::myShape
private

Referenced by SetShape().

◆ myStoreName

std::string SMESHDS_GroupBase::myStoreName
privateinherited

◆ mySubMesh

const SMESHDS_SubMesh* SMESHDS_GroupOnGeom::mySubMesh
private

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

◆ myType

SMDSAbs_ElementType SMESHDS_GroupBase::myType
privateinherited