Groups whose contents is dynamically updated using the filter. More...
#include <SMESHDS_GroupOnFilter.hxx>
Public Member Functions | |
| virtual bool | Contains (const int theID) |
| Checks if the element belongs to the group. More... | |
| virtual bool | Contains (const SMDS_MeshElement *elem) |
| Checks if the element belongs to the group. More... | |
| virtual int | Extent () const |
| Returns nb of elements. More... | |
| template<typename IDTYPE > | |
| int | GetElementIds (IDTYPE *ids) const |
| virtual SMDS_ElemIteratorPtr | GetElements () const |
| Return iterator on all elements. More... | |
| std::vector< int > | GetMeshInfo () const |
| Return info on sub-types of elements. More... | |
| SMESH_PredicatePtr | GetPredicate () const |
| virtual VTK_MTIME_TYPE | GetTic () const |
| Return a value allowing to find out if a group has changed or not. More... | |
| virtual bool | IsEmpty () |
| Checks emptyness. More... | |
| bool | IsUpToDate () const |
| Return false if update() is needed. More... | |
| void | SetPredicate (const SMESH_PredicatePtr &thePredicate) |
| Sets a new predicate. More... | |
| SMESHDS_GroupOnFilter (const int theID, const SMESHDS_Mesh *theMesh, const SMDSAbs_ElementType theType, const SMESH_PredicatePtr &thePredicate) | |
Public Member Functions inherited from SMESHDS_GroupBase | |
| virtual bool | Contains (const int theID) |
| virtual bool | Contains (const SMDS_MeshElement *elem) |
| virtual int | Extent () const |
| Quantity_Color | GetColor () const |
| int | GetColorGroup () const |
| virtual SMDS_ElemIteratorPtr | GetElements () const =0 |
| int | GetID () const |
| virtual int | GetID (const int theIndex) |
| const SMESHDS_Mesh * | GetMesh () const |
| const char * | GetStoreName () const |
| virtual VTK_MTIME_TYPE | GetTic () const =0 |
| SMDSAbs_ElementType | GetType () const |
| virtual bool | IsEmpty () |
| void | SetColor (const Quantity_Color &theColor) |
| void | SetColorGroup (int theColorGroup) |
| void | SetStoreName (const char *theName) |
| virtual void | SetType (SMDSAbs_ElementType theType) |
| SMESHDS_GroupBase (const int theID, const SMESHDS_Mesh *theMesh, const SMDSAbs_ElementType theType) | |
| virtual | ~SMESHDS_GroupBase () |
Additional Inherited Members | |
Static Public Member Functions inherited from SMESHDS_GroupBase | |
| static void | SetDefaultColor (const Quantity_Color &theColor) |
Protected Member Functions inherited from SMESHDS_GroupBase | |
| const SMDS_MeshElement * | findInMesh (const int theID) const |
| void | resetIterator () |
Groups whose contents is dynamically updated using the filter.
| SMESHDS_GroupOnFilter::SMESHDS_GroupOnFilter | ( | const int | theID, |
| const SMESHDS_Mesh * | theMesh, | ||
| const SMDSAbs_ElementType | theType, | ||
| const SMESH_PredicatePtr & | thePredicate | ||
| ) |
Creates a group based on thePredicate
References SetPredicate().
Checks if the element belongs to the group.
Reimplemented from SMESHDS_GroupBase.
|
virtual |
Checks if the element belongs to the group.
Reimplemented from SMESHDS_GroupBase.
References SMDS_MeshElement::GetID().
|
virtual |
Returns nb of elements.
Reimplemented from SMESHDS_GroupBase.
Referenced by GetElements(), and IsEmpty().
| int SMESHDS_GroupOnFilter::GetElementIds | ( | IDTYPE * | ids | ) | const |
|
virtual |
Return iterator on all elements.
Implements SMESHDS_GroupBase.
References SMDS_Mesh::elementsIterator(), Extent(), SMESHDS_GroupBase::GetMesh(), SMDS_Mesh::GetMeshInfo(), SMESHDS_GroupBase::GetType(), IsUpToDate(), and SMDS_MeshInfo::NbElements().
Referenced by IsEmpty().
| std::vector< int > SMESHDS_GroupOnFilter::GetMeshInfo | ( | ) | const |
Return info on sub-types of elements.
| SMESH_PredicatePtr SMESHDS_GroupOnFilter::GetPredicate | ( | ) | 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().
|
virtual |
Checks emptyness.
Reimplemented from SMESHDS_GroupBase.
References Extent(), GetElements(), and IsUpToDate().
| bool SMESHDS_GroupOnFilter::IsUpToDate | ( | ) | const |
Return false if update() is needed.
References SMESHDS_GroupBase::GetMesh(), and SMDS_Mesh::GetMTime().
Referenced by GetElements(), and IsEmpty().
| void SMESHDS_GroupOnFilter::SetPredicate | ( | const SMESH_PredicatePtr & | thePredicate | ) |
Sets a new predicate.
References SMESHDS_GroupBase::GetMesh().
Referenced by SMESHDS_GroupOnFilter().