#include <SMDS_MeshNodeIDFactory.hxx>
Public Member Functions | |
SMDS_MeshNodeIDFactory () | |
bool | BindID (int ID, SMDS_MeshElement *elem) |
SMDS_MeshElement * | MeshElement (int ID) |
virtual int | GetFreeID () |
virtual void | ReleaseID (int ID, int vtkId=-1) |
int | GetMaxID () const |
int | GetMinID () const |
SMDS_ElemIteratorPtr | elementsIterator () const |
virtual void | Clear () |
virtual void | emptyPool (int maxId) |
void | SetMesh (SMDS_Mesh *mesh) |
SMDS_Mesh * | GetMesh () |
bool | isPoolIdEmpty () |
void | adjustMaxId (int ID) |
Protected Member Functions | |
virtual void | updateMinMax () const |
void | updateMinMax (int id) const |
Protected Attributes | |
int | myMin |
int | myMax |
int | myMaxID |
std::set< int > | myPoolOfID |
SMDS_Mesh * | myMesh |
SMDS_MeshNodeIDFactory::SMDS_MeshNodeIDFactory | ( | ) |
|
inherited |
Referenced by SMDS_Mesh::AddNodeWithID().
bool SMDS_MeshNodeIDFactory::BindID | ( | int | ID, |
SMDS_MeshElement * | elem | ||
) |
References updateMinMax().
Referenced by SMDS_Mesh::AddNodeWithID(), and SMDS_Mesh::Renumber().
|
virtual |
Reimplemented from SMDS_MeshIDFactory.
Reimplemented in SMDS_MeshElementIDFactory.
References SMDS_MeshIDFactory::Clear(), myMax, and myMin.
Referenced by SMDS_Mesh::Clear(), and SMDS_Mesh::Renumber().
SMDS_ElemIteratorPtr SMDS_MeshNodeIDFactory::elementsIterator | ( | ) | const |
References SMDS_Mesh::elementsIterator(), SMDS_MeshIDFactory::myMesh, and SMDSAbs_Node.
Referenced by SMDS_Mesh::Renumber().
|
virtual |
Reimplemented from SMDS_MeshIDFactory.
References SMDS_MeshIDFactory::emptyPool(), and myMax.
Referenced by SMESHDS_Mesh::compactMesh().
|
virtual |
Reimplemented in SMDS_MeshElementIDFactory.
References SMDS_MeshIDFactory::GetFreeID(), and MeshElement().
Referenced by SMDS_Mesh::AddNode(), and SMDS_Mesh::AddNodeWithID().
int SMDS_MeshNodeIDFactory::GetMaxID | ( | ) | const |
References myMax, and updateMinMax().
Referenced by SMDS_Mesh::MaxElementID(), and SMDS_Mesh::MaxNodeID().
|
inherited |
References SMDS_MeshIDFactory::myMesh.
Referenced by MeshElement(), and SMDS_MeshElementIDFactory::MeshElement().
int SMDS_MeshNodeIDFactory::GetMinID | ( | ) | const |
References myMax, myMin, and updateMinMax().
Referenced by SMDS_Mesh::MinElementID(), and SMDS_Mesh::MinNodeID().
|
inherited |
SMDS_MeshElement * SMDS_MeshNodeIDFactory::MeshElement | ( | int | ID | ) |
References SMDS_Mesh::FindNode(), and SMDS_MeshIDFactory::GetMesh().
Referenced by SMDS_Mesh::Add0DElementWithID(), SMDS_Mesh::AddBallWithID(), SMDS_Mesh::AddEdgeWithID(), SMDS_Mesh::AddFaceWithID(), SMDS_Mesh::AddNodeWithID(), SMDS_Mesh::AddPolygonalFaceWithID(), SMDS_Mesh::AddQuadPolygonalFaceWithID(), SMDS_Mesh::AddVolumeWithID(), SMDS_Mesh::GetElementType(), and GetFreeID().
Reimplemented from SMDS_MeshIDFactory.
Reimplemented in SMDS_MeshElementIDFactory.
References myMax, SMDS_MeshIDFactory::myMesh, myMin, SMDS_MeshIDFactory::ReleaseID(), and SMDS_Mesh::setMyModified().
Referenced by SMDS_Mesh::Clear(), SMDS_Mesh::RemoveElement(), SMDS_Mesh::RemoveFreeElement(), and SMDS_Mesh::~SMDS_Mesh().
|
inherited |
References SMDS_MeshIDFactory::myMesh.
Referenced by SMDS_Mesh::SMDS_Mesh().
|
protectedvirtual |
Reimplemented in SMDS_MeshElementIDFactory.
References myMax, SMDS_MeshIDFactory::myMesh, myMin, and SMDS_Mesh::myNodes.
Referenced by BindID(), GetMaxID(), and GetMinID().
|
protected |
|
mutableprotected |
|
protectedinherited |
|
protectedinherited |
Referenced by SMDS_MeshElementIDFactory::BindID(), SMDS_MeshElementIDFactory::Clear(), elementsIterator(), SMDS_MeshElementIDFactory::elementsIterator(), SMDS_MeshIDFactory::GetMesh(), SMDS_MeshElementIDFactory::MeshElement(), ReleaseID(), SMDS_MeshElementIDFactory::ReleaseID(), SMDS_MeshElementIDFactory::SetInVtkGrid(), SMDS_MeshIDFactory::SetMesh(), updateMinMax(), and SMDS_MeshElementIDFactory::updateMinMax().
|
mutableprotected |
|
protectedinherited |