#include <SMESH_Group_i.hxx>
Public Member Functions | |
SMESH_Group_i (PortableServer::POA_ptr thePOA, SMESH_Mesh_i *theMeshServant, const int theLocalID) | |
void | Clear () |
CORBA::Long | Add (const SMESH::long_array &theIDs) |
CORBA::Long | Remove (const SMESH::long_array &theIDs) |
CORBA::Long | AddByPredicate (SMESH::Predicate_ptr thePredicate) |
CORBA::Long | RemoveByPredicate (SMESH::Predicate_ptr thePredicate) |
CORBA::Long | AddFrom (SMESH::SMESH_IDSource_ptr theSource) |
void | SetName (const char *name) |
char * | GetName () |
SMESH::ElementType | GetType () |
CORBA::Long | Size () |
CORBA::Boolean | IsEmpty () |
CORBA::Boolean | Contains (CORBA::Long elem_id) |
CORBA::Long | GetID (CORBA::Long elem_index) |
SMESH::long_array * | GetListOfID () |
SMESH::long_array * | GetNodeIDs () |
Return IDs of nodes of cells included to the group. More... | |
CORBA::Long | 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::long_array * | GetMeshInfo () |
Returns number of mesh elements of each EntityType Result array of number of elements per EntityType Inherited from SMESH_IDSource. More... | |
virtual SMESH::long_array * | GetNbElementsByType () |
Returns number of mesh elements of each ElementType. More... | |
virtual SMESH::long_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 bool | IsMeshInfoCorrect () |
Returns false if GetMeshInfo() returns incorrect information that may happen if mesh data is not yet fully loaded from the file of study. 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 *obj, bool removed) |
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... | |
Data Fields | |
std::list< NotifyerAndWaiter * > | myWaiters |
Protected Member Functions | |
SMESH_PreMeshInfo *& | changePreMeshInfo () |
Protected Attributes | |
SMESH_PreMeshInfo * | myPreMeshInfo |
int | myNbNodes |
int | myGroupDSTic |
SMESH_Group_i::SMESH_Group_i | ( | PortableServer::POA_ptr | thePOA, |
SMESH_Mesh_i * | theMeshServant, | ||
const int | theLocalID | ||
) |
CORBA::Long SMESH_Group_i::Add | ( | const SMESH::long_array & | theIDs | ) |
CORBA::Long SMESH_Group_i::AddByPredicate | ( | SMESH::Predicate_ptr | thePredicate | ) |
CORBA::Long SMESH_Group_i::AddFrom | ( | SMESH::SMESH_IDSource_ptr | theSource | ) |
|
inherited |
Stores an object to be notified on change of predicate.
References SMESH::NotifyerAndWaiter::myWaiters.
Referenced by SMESH::Filter_i::FindBaseObjects().
|
protectedinherited |
void SMESH_Group_i::Clear | ( | ) |
|
inherited |
Checks if a waiter is among myWaiters, maybe nested.
References SMESH::NotifyerAndWaiter::myWaiters.
Referenced by SMESH_GroupBase_i::IsInDependency().
|
inherited |
|
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.
|
inherited |
References SMESH_GroupBase_i::GetSmeshGroup().
Referenced by Add(), AddByPredicate(), AddFrom(), Clear(), SMESH_GroupBase_i::Contains(), SMESH_GroupBase_i::GetColor(), SMESH_GroupBase_i::GetColorNumber(), SMESH_GroupBase_i::GetID(), SMESH_GroupBase_i::GetListOfID(), SMESH_GroupOnFilter_i::GetListOfID(), SMESH_GroupBase_i::GetMeshInfo(), SMESH_GroupOnFilter_i::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(), SMESH_Gen_i::Load(), SMESH_Mesh_i::MakeGroupsOfBadInputElements(), SMESH_GroupOnFilter_i::OnBaseObjModified(), Remove(), RemoveByPredicate(), SMESH_Gen_i::Save(), SMESH_GroupBase_i::SetColor(), SMESH_GroupBase_i::SetColorNumber(), and SMESH_GroupBase_i::Size().
|
inherited |
|
virtualinherited |
Returns a sequence of all element IDs.
References SMESH_GroupBase_i::GetListOfID().
|
inherited |
|
inherited |
|
virtualinherited |
References SMESH_GroupBase_i::myMeshServant.
|
virtualinherited |
Returns number of mesh elements of each EntityType Result array of number of elements per EntityType Inherited from SMESH_IDSource.
Reimplemented in SMESH_GroupOnFilter_i.
References SMESH_Mesh_i::CollectMeshInfo(), SMESH::Entity_Last, SMESH::Entity_Node, SMESH_GroupBase_i::GetGroupDS(), SMESH_PreMeshInfo::GetMeshInfo(), SMESH_GroupBase_i::GetNumberOfNodes(), SMESH_GroupBase_i::myPreMeshInfo, SMDSAbs_Node, and SMDSEntity_Node.
|
inherited |
Referenced by SMESH_GroupOnGeom_i::GetShape().
|
inherited |
References SMESH::SMESH_GroupBase::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 SMESH_GroupOnFilter_i::GetMeshInfo().
|
inherited |
References SMESH_Mesh_i::GetImpl(), SMESH_GroupBase_i::myLocalID, and SMESH_GroupBase_i::myMeshServant.
Referenced by SMESH_GroupBase_i::GetGroupDS(), SMESH_GroupBase_i::GetName(), and SMESH_GroupBase_i::SetName().
|
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 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().
Referenced by SMESH_Mesh_i::ConvertToStandalone().
|
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.
References SMESH::NotifyerAndWaiter::ContainModifWaiter().
|
virtualinherited |
Returns false if GetMeshInfo() returns incorrect information that may happen if mesh data is not yet fully loaded from the file of study.
References SMESH_PreMeshInfo::IsMeshInfoCorrect(), 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.
|
inherited |
calls OnBaseObjModified(), if who != this, and myWaiters[i]->Modified(who)
References SMESH::NotifyerAndWaiter::myWaiters, and SMESH::NotifyerAndWaiter::OnBaseObjModified().
Referenced by Add(), AddFrom(), ChangeByPredicate(), Clear(), Remove(), SMESH_Mesh_i::RemoveGroup(), and SMESH::Filter_i::SetPredicate().
|
virtualinherited |
Reimplemented in SMESH::Filter_i.
Referenced by SMESH::NotifyerAndWaiter::Modified().
CORBA::Long SMESH_Group_i::Remove | ( | const SMESH::long_array & | theIDs | ) |
CORBA::Long SMESH_Group_i::RemoveByPredicate | ( | SMESH::Predicate_ptr | thePredicate | ) |
|
inherited |
Removes an object to be notified on change of predicate.
References SMESH::NotifyerAndWaiter::myWaiters.
Referenced by SMESH_GroupOnFilter_i::~SMESH_GroupOnFilter_i().
|
inherited |
|
inherited |
References SMESH_GroupBase_i::GetGroupDS(), and SMESHDS_GroupBase::SetColorGroup().
|
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 AddFrom(), SMESH_GroupBase_i::GetNbElementsByType(), SMESH_GroupBase_i::GetNumberOfNodes(), and SMESH_GroupBase_i::IsEmpty().
|
protectedinherited |
Referenced by SMESH_GroupBase_i::GetNumberOfNodes(), and SMESH_GroupBase_i::IsNodeInfoAvailable().
|
protectedinherited |
Referenced by SMESH_GroupBase_i::GetNumberOfNodes(), and SMESH_GroupBase_i::IsNodeInfoAvailable().
|
protectedinherited |
Referenced by Add(), AddByPredicate(), AddFrom(), Clear(), SMESH_GroupBase_i::Contains(), SMESH_GroupBase_i::GetID(), SMESH_GroupBase_i::GetListOfID(), SMESH_GroupOnFilter_i::GetListOfID(), SMESH_GroupBase_i::GetMeshInfo(), SMESH_GroupOnFilter_i::GetMeshInfo(), SMESH_GroupBase_i::GetNbElementsByType(), SMESH_GroupBase_i::GetNodeIDs(), SMESH_GroupBase_i::GetNumberOfNodes(), SMESH_GroupBase_i::IsEmpty(), SMESH_GroupBase_i::IsMeshInfoCorrect(), SMESH_GroupBase_i::IsNodeInfoAvailable(), SMESH_GroupOnFilter_i::OnBaseObjModified(), Remove(), RemoveByPredicate(), SMESH_GroupBase_i::Size(), and SMESH_GroupBase_i::~SMESH_GroupBase_i().
|
inherited |