#include <SMDS_MeshGroup.hxx>
Public Member Functions | |
SMDS_MeshGroup (const SMDS_Mesh *theMesh, const SMDSAbs_ElementType theType=SMDSAbs_All) | |
const SMDS_MeshGroup * | AddSubGroup (const SMDSAbs_ElementType theType=SMDSAbs_All) |
virtual bool | RemoveSubGroup (const SMDS_MeshGroup *theGroup) |
virtual bool | RemoveFromParent () |
const SMDS_Mesh * | GetMesh () const |
void | SetType (const SMDSAbs_ElementType theType) |
void | Clear () |
bool | Add (const SMDS_MeshElement *theElem) |
bool | Remove (const SMDS_MeshElement *theElem) |
bool | IsEmpty () const |
int | Extent () const |
int | Tic () const |
int | SubGroupsNb () const |
SMDSAbs_ElementType | GetType () const |
bool | Contains (const SMDS_MeshElement *theElem) const |
void | InitIterator () const |
bool | More () const |
const SMDS_MeshElement * | Next () const |
void | InitSubGroupsIterator () const |
bool | MoreSubGroups () const |
const SMDS_MeshGroup * | NextSubGroup () const |
Private Types | |
typedef std::set< const SMDS_MeshElement * > ::const_iterator | TIterator |
typedef std::list< const SMDS_MeshGroup * > ::const_iterator | TGroupIterator |
Private Member Functions | |
SMDS_MeshGroup (SMDS_MeshGroup *theParent, const SMDSAbs_ElementType theType=SMDSAbs_All) | |
Private Attributes | |
const SMDS_Mesh * | myMesh |
SMDSAbs_ElementType | myType |
std::set< const SMDS_MeshElement * > | myElements |
SMDS_MeshGroup * | myParent |
std::list< const SMDS_MeshGroup * > | myChildren |
TIterator | myIterator |
TGroupIterator | myGroupIterator |
int | myTic |
|
private |
|
private |
SMDS_MeshGroup::SMDS_MeshGroup | ( | const SMDS_Mesh * | theMesh, |
const SMDSAbs_ElementType | theType = SMDSAbs_All |
||
) |
|
private |
bool SMDS_MeshGroup::Add | ( | const SMDS_MeshElement * | theElem | ) |
References SMDS_MeshElement::GetType(), MESSAGE, myElements, myTic, and myType.
Referenced by SMESHDS_Group::Add(), SMESH_Group_i::AddFrom(), SMESH_MeshEditor::AddToSameGroups(), SMESH_Gen_i::CopyMesh(), SMESH_Mesh_i::CreateDimGroup(), SMESH_Mesh_i::CutGroups(), SMESH_Mesh_i::CutListOfGroups(), SMESH_MeshEditor_i::DoubleElements(), SMESH_MeshEditor::generateGroups(), DriverMED_R_SMESHDS_Mesh::GetGroup(), StdMeshers_Import_1D::importMesh(), SMESH_Mesh_i::IntersectGroups(), SMESH_Mesh_i::IntersectListOfGroups(), DriverCGNS_Read::Perform(), DriverUNV_R_SMDS_Mesh::Perform(), SMESH_MeshEditor::ReplaceElemInGroups(), and SMESH_Mesh::UNVToMesh().
const SMDS_MeshGroup * SMDS_MeshGroup::AddSubGroup | ( | const SMDSAbs_ElementType | theType = SMDSAbs_All | ) |
Referenced by DriverUNV_R_SMDS_Mesh::Perform().
void SMDS_MeshGroup::Clear | ( | ) |
References myElements, myTic, myType, and SMDSAbs_All.
Referenced by SMESHDS_Group::Clear().
bool SMDS_MeshGroup::Contains | ( | const SMDS_MeshElement * | theElem | ) | const |
References myElements.
Referenced by SMESHDS_Group::Add(), SMESHDS_Group::Contains(), SMESH_Pattern::createElements(), and SMESHDS_Group::Remove().
int SMDS_MeshGroup::Extent | ( | ) | const |
Referenced by SMESHDS_Group::Extent().
const SMDS_Mesh* SMDS_MeshGroup::GetMesh | ( | ) | const |
SMDSAbs_ElementType SMDS_MeshGroup::GetType | ( | ) | const |
Referenced by DriverCGNS_Read::Perform(), SMESHDS_Group::SetType(), and SMESH_Mesh::UNVToMesh().
void SMDS_MeshGroup::InitIterator | ( | ) | const |
Referenced by MyGroupIterator::MyGroupIterator(), and SMESH_Mesh::UNVToMesh().
void SMDS_MeshGroup::InitSubGroupsIterator | ( | ) | const |
bool SMDS_MeshGroup::IsEmpty | ( | ) | const |
Referenced by SMESHDS_Group::Add(), SMESHDS_Group::IsEmpty(), SMESHDS_Group::SetType(), and SetType().
bool SMDS_MeshGroup::More | ( | ) | const |
Referenced by MyGroupIterator::more(), and SMESH_Mesh::UNVToMesh().
bool SMDS_MeshGroup::MoreSubGroups | ( | ) | const |
const SMDS_MeshElement* SMDS_MeshGroup::Next | ( | ) | const |
Referenced by MyGroupIterator::next(), and SMESH_Mesh::UNVToMesh().
const SMDS_MeshGroup* SMDS_MeshGroup::NextSubGroup | ( | ) | const |
Referenced by SMESH_Mesh::UNVToMesh().
bool SMDS_MeshGroup::Remove | ( | const SMDS_MeshElement * | theElem | ) |
|
virtual |
References myParent, and RemoveSubGroup().
|
virtual |
References myChildren.
Referenced by RemoveFromParent().
void SMDS_MeshGroup::SetType | ( | const SMDSAbs_ElementType | theType | ) |
References IsEmpty(), and myType.
Referenced by SMESHDS_Group::SetType().
int SMDS_MeshGroup::SubGroupsNb | ( | ) | const |
int SMDS_MeshGroup::Tic | ( | ) | const |
Referenced by SMESHDS_Group::GetTic().
|
private |
Referenced by RemoveSubGroup().
|
private |
Referenced by Add(), Clear(), Contains(), and Remove().
|
private |
|
private |
|
private |
|
private |
Referenced by RemoveFromParent().
|
private |