#include <SMESH_Group_i.hxx>

Public Member Functions | |
| SMESH_GroupOnFilter_i (PortableServer::POA_ptr thePOA, SMESH_Mesh_i *theMeshServant, const int theLocalID) | |
| ~SMESH_GroupOnFilter_i () | |
| Destructor of SMESH_GroupOnFilter_i. More... | |
| std::string | FilterToString () const |
| Return a string to be used to store group definition in the study. More... | |
| void | SetFilter (SMESH::Filter_ptr theFilter) |
| Sets the filter defining group contents. More... | |
| SMESH::Filter_ptr | GetFilter () |
| Return the filter defining group contents. More... | |
| virtual CORBA::Boolean | IsUpToDate () |
| virtual SMESH::smIdType_array * | GetListOfID () |
| virtual SMESH::smIdType_array * | GetMeshInfo () |
| Return statistic of mesh elements Result array of number enityties Inherited from SMESH_IDSource. More... | |
| virtual bool | IsMeshInfoCorrect () |
| virtual void | OnBaseObjModified (NotifyerAndWaiter *filter, bool) |
| Method called when a predicate of myFilter changes. More... | |
| void | SetName (const char *name) |
| char * | GetName () |
| SMESH::ElementType | GetType () |
| SMESH::smIdType | Size () |
| CORBA::Boolean | IsEmpty () |
| CORBA::Boolean | Contains (SMESH::smIdType elem_id) |
| SMESH::smIdType | GetID (SMESH::smIdType elem_index) |
| Return ID of theIndex-th group item. More... | |
| SMESH::smIdType_array * | GetNodeIDs () |
| Return IDs of nodes of cells included to the group. More... | |
| SMESH::smIdType | GetNumberOfNodes () |
| return the number of nodes of cells included to the group More... | |
| CORBA::Boolean | IsNodeInfoAvailable () |
| Return true if GetNumberOfNodes() won't take a long time for computation. More... | |
| virtual SMESH::SMESH_Mesh_ptr | GetMesh () |
| virtual SMESH::smIdType_array * | GetNbElementsByType () |
| Returns number of mesh elements of each ElementType. More... | |
| virtual SMESH::smIdType_array * | GetIDs () |
| Returns a sequence of all element IDs. More... | |
| virtual SMESH::array_of_ElementType * | GetTypes () |
| Returns types of elements it contains Inherited from SMESH_IDSource interface. More... | |
| virtual SALOMEDS::TMPFile * | GetVtkUgStream () |
| Returns mesh unstructed grid information. More... | |
| virtual CORBA::Boolean | IsInDependency (SMESH::SMESH_GroupBase_ptr other) |
Returns true if this group depends on the other via FT_BelongToMeshGroup predicate or vice versa. More... | |
| int | GetLocalID () const |
| SMESH_Mesh_i * | GetMeshServant () const |
| SMESH_Group * | GetSmeshGroup () const |
| SMESHDS_GroupBase * | GetGroupDS () const |
| void | SetColor (const SALOMEDS::Color &color) |
| SALOMEDS::Color | GetColor () |
| void | SetColorNumber (CORBA::Long color) |
| CORBA::Long | GetColorNumber () |
| virtual void | OnBaseObjModified (NotifyerAndWaiter *, bool) |
| void | Modified (bool removed=false, NotifyerAndWaiter *who=0) |
| calls OnBaseObjModified(), if who != this, and myWaiters[i]->Modified(who) More... | |
| void | AddModifWaiter (NotifyerAndWaiter *waiter) |
| Stores an object to be notified on change of predicate. More... | |
| void | RemoveModifWaiter (NotifyerAndWaiter *waiter) |
| Removes an object to be notified on change of predicate. More... | |
| bool | ContainModifWaiter (NotifyerAndWaiter *waiter) |
| Checks if a waiter is among myWaiters, maybe nested. More... | |
Static Public Member Functions | |
| static SMESH::Filter_ptr | StringToFilter (const std::string &thePersistentString) |
| Restore the filter by the persistent string. More... | |
| static SMESH_PredicatePtr | GetPredicate (SMESH::Filter_ptr) |
| Retrieves the predicate from the filter. More... | |
Data Fields | |
| std::list< NotifyerAndWaiter * > | myWaiters |
Protected Member Functions | |
| SMESH_PreMeshInfo *& | changePreMeshInfo () |
Protected Attributes | |
| SMESH_PreMeshInfo * | myPreMeshInfo |
| int | myNbNodes |
| int | myGroupDSTic |
Private Member Functions | |
| void | changeLocalId (int localId) |
Private Attributes | |
| SMESH::Filter_var | myFilter |
| SMESH_Mesh_i * | myMeshServant |
| int | myLocalID |
| SMESH_GroupOnFilter_i::SMESH_GroupOnFilter_i | ( | PortableServer::POA_ptr | thePOA, |
| SMESH_Mesh_i * | theMeshServant, | ||
| const int | theLocalID | ||
| ) |
| SMESH_GroupOnFilter_i::~SMESH_GroupOnFilter_i | ( | ) |
Destructor of SMESH_GroupOnFilter_i.
References myFilter.
|
inherited |
Stores an object to be notified on change of predicate.
References SMESH::NotifyerAndWaiter::myWaiters.
Referenced by SMESH::Filter_i::FindBaseObjects().
|
privateinherited |
|
protectedinherited |
|
inherited |
Checks if a waiter is among myWaiters, maybe nested.
References SMESH::NotifyerAndWaiter::myWaiters.
|
inherited |
| std::string SMESH_GroupOnFilter_i::FilterToString | ( | ) | const |
Return a string to be used to store group definition in the study.
References SMESH::Filter::Criterion::BinaryOp, SMESH::Filter::Criterion::Compare, SMESH::FT_BelongToMeshGroup, SMESH::FunctorTypeToString(), SMESH_Gen_i::GetORB(), myFilter, SMESH::Filter::Criterion::Precision, SEPAR, SMESH::Filter::Criterion::Threshold, SMESH::Filter::Criterion::ThresholdID, SMESH::Filter::Criterion::ThresholdStr, SMESH::Filter::Criterion::Tolerance, SMESH::Filter::Criterion::Type, SMESH::Filter::Criterion::TypeOfElement, and SMESH::Filter::Criterion::UnaryOp.
|
inherited |
References SMESHDS_GroupBase::GetColor(), and SMESH_GroupBase_i::GetGroupDS().
Referenced by SMESH_Gen_i::Save().
|
inherited |
References SMESHDS_GroupBase::GetColorGroup(), SMESH_GroupBase_i::GetGroupDS(), and MESSAGE.
| SMESH::Filter_ptr SMESH_GroupOnFilter_i::GetFilter | ( | ) |
Return the filter defining group contents.
References myFilter.
|
inherited |
References SMESH_Group::GetGroupDS(), and SMESH_GroupBase_i::GetSmeshGroup().
Referenced by SMESH_Group_i::Add(), SMESH_Group_i::AddByPredicate(), SMESH_Group_i::AddFrom(), SMESH_Group_i::Clear(), SMESH_GroupBase_i::Contains(), SMESH_MeshEditor_i::FillHole(), SMESH_GroupBase_i::GetColor(), SMESH_GroupBase_i::GetColorNumber(), SMESH_GroupBase_i::GetID(), SMESH_GroupBase_i::GetListOfID(), GetListOfID(), SMESH_GroupBase_i::GetMeshInfo(), GetMeshInfo(), SMESH_GroupBase_i::GetNodeIDs(), SMESH_GroupBase_i::GetNumberOfNodes(), SMESH_GroupOnGeom_i::GetShape(), SMESH_GroupBase_i::GetType(), SMESH_GroupBase_i::IsEmpty(), SMESH_GroupBase_i::IsNodeInfoAvailable(), IsUpToDate(), SMESH_Gen_i::Load(), SMESH_Mesh_i::MakeGroupsOfBadInputElements(), OnBaseObjModified(), SMESH_Group_i::Remove(), SMESH_Group_i::RemoveByPredicate(), SMESH_Gen_i::Save(), SMESH_GroupBase_i::SetColor(), SMESH_GroupBase_i::SetColorNumber(), SetFilter(), and SMESH_GroupBase_i::Size().
|
inherited |
Return ID of theIndex-th group item.
References SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_GroupBase_i::GetGroupDS(), SMESHDS_GroupBase::GetID(), MESSAGE, and SMESH_GroupBase_i::myPreMeshInfo.
|
virtualinherited |
Returns a sequence of all element IDs.
References SMESH_GroupBase_i::GetListOfID().
|
virtual |
|
inherited |
|
virtualinherited |
References SMESH_GroupBase_i::myMeshServant.
|
virtual |
Return statistic of mesh elements Result array of number enityties Inherited from SMESH_IDSource.
Reimplemented from SMESH_GroupBase_i.
References SMESH::Entity_Last, SMESH::Entity_Node, SMESH_GroupBase_i::GetGroupDS(), GetMeshInfo(), SMESH_PreMeshInfo::GetMeshInfo(), SMESH_GroupBase_i::GetNumberOfNodes(), SMESH_GroupBase_i::myPreMeshInfo, SMDSAbs_Node, and SMDSEntity_Node.
Referenced by GetMeshInfo().
|
inherited |
|
inherited |
References SMESH_Group::GetName(), and SMESH_GroupBase_i::GetSmeshGroup().
Referenced by SMESH_Gen_i::Save().
|
virtualinherited |
Returns number of mesh elements of each ElementType.
References SMESH_GroupBase_i::GetType(), SMESH_GroupBase_i::myPreMeshInfo, SMESH::NB_ELEMENT_TYPES, SMDS_MeshInfo::NbElements(), and SMESH_GroupBase_i::Size().
|
inherited |
Return IDs of nodes of cells included to the group.
References SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_GroupBase_i::GetGroupDS(), SMESH_GroupBase_i::GetListOfID(), SMESH_GroupBase_i::GetType(), SMESH_GroupBase_i::myPreMeshInfo, and SMESH::NODE.
|
inherited |
return the number of nodes of cells included to the group
References SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_GroupBase_i::GetGroupDS(), SMESH_GroupBase_i::GetType(), SMESH_GroupBase_i::myGroupDSTic, SMESH_GroupBase_i::myNbNodes, SMESH_GroupBase_i::myPreMeshInfo, SMESH::NODE, and SMESH_GroupBase_i::Size().
Referenced by SMESH_GroupBase_i::GetMeshInfo(), and GetMeshInfo().
|
static |
Retrieves the predicate from the filter.
Referenced by SMESH_Mesh_i::CreateGroupFromFilter(), SMESH_Gen_i::Load(), OnBaseObjModified(), and SetFilter().
|
inherited |
|
inherited |
References SMESH::ALL, SMESH::BALL, SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, SMESH_GroupBase_i::GetGroupDS(), SMESHDS_GroupBase::GetType(), SMESH::NODE, SMDSAbs_0DElement, SMDSAbs_Ball, SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Node, SMDSAbs_Volume, and SMESH::VOLUME.
Referenced by SMESH_Group_i::AddFrom(), SMESH_GroupBase_i::GetNbElementsByType(), SMESH_GroupBase_i::GetNodeIDs(), SMESH_GroupBase_i::GetNumberOfNodes(), SMESH_GroupBase_i::GetTypes(), SMESH_GroupBase_i::IsNodeInfoAvailable(), and SMESH_GroupBase_i::Size().
|
virtualinherited |
Returns types of elements it contains Inherited from SMESH_IDSource interface.
References SMESH_GroupBase_i::GetType(), and SMESH_GroupBase_i::IsEmpty().
|
virtualinherited |
Returns mesh unstructed grid information.
|
inherited |
References SMESH_GroupBase_i::GetGroupDS(), SMESHDS_GroupBase::IsEmpty(), SMESH_GroupBase_i::myPreMeshInfo, and SMESH_GroupBase_i::Size().
Referenced by SMESH_GroupBase_i::GetTypes().
|
virtualinherited |
Returns true if this group depends on the other via FT_BelongToMeshGroup predicate or vice versa.
|
virtual |
Reimplemented from SMESH_GroupBase_i.
References SMESH_PreMeshInfo::IsMeshInfoCorrect(), IsUpToDate(), and SMESH_GroupBase_i::myPreMeshInfo.
|
inherited |
Return true if GetNumberOfNodes() won't take a long time for computation.
References SMESH_GroupBase_i::GetGroupDS(), SMESH_GroupBase_i::GetType(), SMESH_GroupBase_i::myGroupDSTic, SMESH_GroupBase_i::myNbNodes, SMESH_GroupBase_i::myPreMeshInfo, and SMESH::NODE.
|
virtual |
References SMESH_GroupBase_i::GetGroupDS(), and SMESH_GroupBase_i::myPreMeshInfo.
Referenced by IsMeshInfoCorrect().
|
inherited |
calls OnBaseObjModified(), if who != this, and myWaiters[i]->Modified(who)
References SMESH::NotifyerAndWaiter::myWaiters, and SMESH::NotifyerAndWaiter::OnBaseObjModified().
Referenced by SMESH_Group_i::Add(), SMESH_Group_i::AddFrom(), ChangeByPredicate(), SMESH_Group_i::Clear(), SMESH_Group_i::Remove(), SMESH_Mesh_i::RemoveGroup(), SetFilter(), and SMESH::Filter_i::SetPredicate().
|
virtualinherited |
Reimplemented in SMESH::Filter_i.
Referenced by SMESH::NotifyerAndWaiter::Modified().
|
virtual |
Method called when a predicate of myFilter changes.
References SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_GroupBase_i::GetGroupDS(), GetPredicate(), myFilter, and SMESH_GroupBase_i::myPreMeshInfo.
|
inherited |
Removes an object to be notified on change of predicate.
References SMESH::NotifyerAndWaiter::myWaiters.
|
inherited |
|
inherited |
References SMESH_GroupBase_i::GetGroupDS(), and SMESHDS_GroupBase::SetColorGroup().
| void SMESH_GroupOnFilter_i::SetFilter | ( | SMESH::Filter_ptr | theFilter | ) |
Sets the filter defining group contents.
References SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_Mesh_i::GetGen(), SMESH_GroupBase_i::GetGroupDS(), SMESH_GroupBase_i::GetMeshServant(), GetPredicate(), SMESH_Gen_i::HighLightInvalid(), SMESH::NotifyerAndWaiter::Modified(), myFilter, SMESH_GroupBase_i::myPreMeshInfo, SetFilter(), and SMESH_Gen_i::UpdateGroupIcon().
Referenced by SetFilter().
|
inherited |
|
inherited |
References SMESHDS_GroupBase::Extent(), SMESH_GroupBase_i::GetGroupDS(), SMESH_GroupBase_i::GetType(), SMESH_GroupBase_i::myPreMeshInfo, SMDS_MeshInfo::NbElements(), SMDS_MeshInfo::NbNodes(), and SMESH::NODE.
Referenced by SMESH_Group_i::AddFrom(), SMESH_GroupBase_i::GetNbElementsByType(), SMESH_GroupBase_i::GetNumberOfNodes(), and SMESH_GroupBase_i::IsEmpty().
|
static |
Restore the filter by the persistent string.
References SMESH::Filter::Criterion::BinaryOp, SMESH::Filter::Criterion::Compare, SMESH::FilterManager_i::CreateFilter(), SMESH::Filter::Criterion::Precision, SEPAR, SMESH::StringToFunctorType(), SMESH::Filter::Criterion::Threshold, SMESH::Filter::Criterion::ThresholdID, SMESH::Filter::Criterion::ThresholdStr, SMESH::Filter::Criterion::Tolerance, SMESH::Filter::Criterion::Type, SMESH::Filter::Criterion::TypeOfElement, and SMESH::Filter::Criterion::UnaryOp.
Referenced by SMESH_Gen_i::Load().
|
private |
Referenced by FilterToString(), GetFilter(), OnBaseObjModified(), SetFilter(), and ~SMESH_GroupOnFilter_i().
|
protectedinherited |
Referenced by SMESH_GroupBase_i::GetNumberOfNodes(), and SMESH_GroupBase_i::IsNodeInfoAvailable().
|
privateinherited |
Referenced by SMESH_GroupBase_i::GetSmeshGroup().
|
privateinherited |
Referenced by SMESH_GroupBase_i::GetMesh(), SMESH_GroupBase_i::GetSmeshGroup(), and SMESH_GroupBase_i::SetName().
|
protectedinherited |
Referenced by SMESH_GroupBase_i::GetNumberOfNodes(), and SMESH_GroupBase_i::IsNodeInfoAvailable().
|
protectedinherited |
Referenced by SMESH_Group_i::Add(), SMESH_Group_i::AddByPredicate(), SMESH_Group_i::AddFrom(), SMESH_Group_i::Clear(), SMESH_GroupBase_i::Contains(), SMESH_GroupBase_i::GetID(), SMESH_GroupBase_i::GetListOfID(), GetListOfID(), SMESH_GroupBase_i::GetMeshInfo(), GetMeshInfo(), SMESH_GroupBase_i::GetNbElementsByType(), SMESH_GroupBase_i::GetNodeIDs(), SMESH_GroupBase_i::GetNumberOfNodes(), SMESH_GroupBase_i::IsEmpty(), SMESH_GroupBase_i::IsMeshInfoCorrect(), IsMeshInfoCorrect(), SMESH_GroupBase_i::IsNodeInfoAvailable(), IsUpToDate(), OnBaseObjModified(), SMESH_Group_i::Remove(), SMESH_Group_i::RemoveByPredicate(), SetFilter(), SMESH_GroupBase_i::Size(), and SMESH_GroupBase_i::~SMESH_GroupBase_i().
|
inherited |