#include <SMESHDS_Group.hxx>
Public Member Functions | |
SMESHDS_Group (const int theID, const SMESHDS_Mesh *theMesh, const SMDSAbs_ElementType theType) | |
virtual void | SetType (SMDSAbs_ElementType theType) |
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 |
virtual int | GetTic () const |
Return a value allowing to find out if a group has changed or not. More... | |
bool | Add (const int theID) |
bool | Add (const SMDS_MeshElement *theElem) |
bool | Remove (const int theID) |
void | Clear () |
SMDS_MeshGroup & | SMDSGroup () |
int | GetID () const |
virtual int | GetID (const int theIndex) |
const SMESHDS_Mesh * | GetMesh () const |
SMDSAbs_ElementType | GetType () const |
void | SetStoreName (const char *theName) |
const char * | GetStoreName () const |
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_MeshElement * | findInMesh (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 | |
SMDS_MeshGroup | myGroup |
SMESHDS_Group::SMESHDS_Group | ( | const int | theID, |
const SMESHDS_Mesh * | theMesh, | ||
const SMDSAbs_ElementType | theType | ||
) |
References SMESHDS_GroupBase::findInMesh().
Referenced by SMESH_Group_i::Add(), SMESH_Group_i::AddByPredicate(), SMESH_Mesh::ConvertToStandalone(), SMESH_MeshEditor::CreateFlatElementsOnFacesGroups(), SMESH_MeshEditor::CreateHoleSkin(), SMESH_MeshEditor::DoubleNodesOnGroupBoundaries(), and DriverGMF_Read::Perform().
bool SMESHDS_Group::Add | ( | const SMDS_MeshElement * | theElem | ) |
void SMESHDS_Group::Clear | ( | ) |
References SMDS_MeshGroup::Clear(), myGroup, and SMESHDS_GroupBase::resetIterator().
Referenced by SMESH_Group_i::Clear().
Reimplemented from SMESHDS_GroupBase.
References SMDS_MeshGroup::Contains(), SMESHDS_GroupBase::findInMesh(), and myGroup.
Referenced by SMESH_MeshEditor::AddToSameGroups(), and SMESH_MeshEditor::CreateHoleSkin().
|
virtual |
Reimplemented from SMESHDS_GroupBase.
References SMDS_MeshGroup::Contains(), and myGroup.
|
virtual |
Reimplemented from SMESHDS_GroupBase.
References SMDS_MeshGroup::Extent(), and myGroup.
|
protectedinherited |
References SMDS_Mesh::FindElement(), SMDS_Mesh::FindNode(), SMESHDS_GroupBase::GetMesh(), SMESHDS_GroupBase::GetType(), SMDS_MeshElement::GetType(), SMDSAbs_All, and SMDSAbs_Node.
Referenced by Add(), SMESHDS_GroupOnGeom::Contains(), Contains(), and Remove().
|
inherited |
|
inherited |
References SMESHDS_GroupBase::GetColor().
Referenced by SMESH_GroupBase_i::GetColorNumber().
|
virtual |
Implements SMESHDS_GroupBase.
References myGroup.
Referenced by SMESH_MeshEditor::CreateHoleSkin(), and SMESH_MeshEditor::generateGroups().
|
inherited |
|
inherited |
Referenced by ChangeByPredicate(), StdMeshers_Import_1D::Compute(), StdMeshers_Import_1D2D::Compute(), SMESH_Mesh_i::CreateDimGroup(), SMESHDS_GroupBase::findInMesh(), SMESHDS_GroupOnFilter::GetElements(), SMESH_GroupOnFilter_i::GetListOfID(), StdMeshers_ImportSource1D::GetSourceMeshes(), StdMeshers_ImportSource1D::GetSourceSubMeshes(), SMESHDS_GroupOnGeom::GetTic(), SMESHDS_GroupOnFilter::GetTic(), SMESHDS_GroupOnFilter::IsUpToDate(), SMESHDS_GroupOnFilter::setChanged(), SMESH::Controls::BelongToMeshGroup::SetMesh(), SMESHDS_GroupOnFilter::setNbElemToSkip(), SMESHDS_GroupOnFilter::SetPredicate(), and SMESHDS_GroupOnGeom::SetShape().
|
inherited |
|
virtual |
Return a value allowing to find out if a group has changed or not.
Implements SMESHDS_GroupBase.
References myGroup, and SMDS_MeshGroup::Tic().
|
inherited |
Referenced by StdMeshers_QuadToTriaAdaptor::Compute(), SMESH_Mesh::ConvertToStandalone(), SMESH_Gen_i::CopyMesh(), SMESH_MeshEditor::CreateHoleSkin(), SMESHDS_GroupBase::findInMesh(), SMESH_MeshEditor::generateGroups(), SMESHDS_GroupOnGeom::GetElements(), SMESHDS_GroupOnFilter::GetElements(), SMESH_Mesh_i::GetElements(), DriverMED_R_SMESHDS_Mesh::GetGroup(), SMESH_GroupOnFilter_i::GetListOfID(), SMESH_GroupBase_i::GetType(), SMESH::Controls::BelongToMeshGroup::GetType(), StdMeshers_Import_1D::importMesh(), DriverMED_Family::Init(), DriverUNV_W_SMDS_Mesh::Perform(), DriverCGNS_Write::Perform(), SMESH::Controls::GroupColor::SetMesh(), SMESHDS_GroupOnFilter::setNbElemToSkip(), and SetType().
|
virtual |
Reimplemented from SMESHDS_GroupBase.
References SMDS_MeshGroup::IsEmpty(), and myGroup.
Referenced by SMESH_MeshEditor::generateGroups(), SMESH_MeshEditor::RemoveElemFromGroups(), SMESHDS_Mesh::RemoveFreeElement(), SMESHDS_Mesh::RemoveFreeNode(), and removeFromContainers().
References SMDS_MeshGroup::Contains(), SMESHDS_GroupBase::findInMesh(), myGroup, SMDS_MeshGroup::Remove(), and SMESHDS_GroupBase::resetIterator().
Referenced by SMESH_Group_i::Remove(), and SMESH_Group_i::RemoveByPredicate().
|
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.
|
inherited |
|
inherited |
References SMESHDS_GroupBase::SetColor().
Referenced by DriverMED_R_SMESHDS_Mesh::GetGroup(), and SMESH_GroupBase_i::SetColorNumber().
|
staticinherited |
Referenced by SMESH_Gen_i::SetOption().
|
inherited |
|
virtual |
Reimplemented from SMESHDS_GroupBase.
References SMESHDS_GroupBase::GetType(), SMDS_MeshGroup::GetType(), SMDS_MeshGroup::IsEmpty(), myGroup, SMDS_MeshGroup::SetType(), SMESHDS_GroupBase::SetType(), and SMDSAbs_All.
Referenced by Add(), SMESH_MeshEditor::generateGroups(), DriverCGNS_Read::Perform(), and SMESH_Mesh::UNVToMesh().
SMDS_MeshGroup& SMESHDS_Group::SMDSGroup | ( | ) |
Referenced by SMESH_Group_i::AddFrom(), SMESH_MeshEditor::AddToSameGroups(), SMESH_Pattern::createElements(), SMESH_Mesh_i::CutGroups(), SMESH_Mesh_i::CutListOfGroups(), SMESH_MeshEditor_i::DoubleElements(), DriverMED_R_SMESHDS_Mesh::GetGroup(), StdMeshers_Import_1D::importMesh(), SMESH_Mesh_i::IntersectGroups(), SMESH_Mesh_i::IntersectListOfGroups(), DriverCGNS_Read::Perform(), SMESH_MeshEditor::RemoveElemFromGroups(), SMESHDS_Mesh::RemoveFreeElement(), SMESHDS_Mesh::RemoveFreeNode(), removeFromContainers(), SMESH_MeshEditor::ReplaceElemInGroups(), and SMESH_Mesh::UNVToMesh().
|
private |
Referenced by Add(), Clear(), Contains(), Extent(), GetElements(), GetTic(), IsEmpty(), Remove(), and SetType().