#include <SMESH_Group_i.hxx>
Public Member Functions | |
SMESH_GroupBase_i (PortableServer::POA_ptr thePOA, SMESH_Mesh_i *theMeshServant, const int theLocalID) | |
virtual | ~SMESH_GroupBase_i () |
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 |
Private Member Functions | |
void | changeLocalId (int localId) |
Private Attributes | |
SMESH_Mesh_i * | myMeshServant |
int | myLocalID |
Friends | |
class | SMESH_PreMeshInfo |
class | SMESH_Mesh_i |
SMESH_GroupBase_i::SMESH_GroupBase_i | ( | PortableServer::POA_ptr | thePOA, |
SMESH_Mesh_i * | theMeshServant, | ||
const int | theLocalID | ||
) |
|
virtual |
References myPreMeshInfo.
|
inherited |
Stores an object to be notified on change of predicate.
References SMESH::NotifyerAndWaiter::myWaiters.
Referenced by SMESH::Filter_i::FindBaseObjects().
|
private |
Referenced by SMESH_Mesh_i::CheckGeomGroupModif(), and SMESH_Mesh_i::CheckGeomModif().
|
protected |
|
inherited |
Checks if a waiter is among myWaiters, maybe nested.
References SMESH::NotifyerAndWaiter::myWaiters.
Referenced by IsInDependency().
CORBA::Boolean SMESH_GroupBase_i::Contains | ( | CORBA::Long | elem_id | ) |
SALOMEDS::Color SMESH_GroupBase_i::GetColor | ( | ) |
References SMESHDS_GroupBase::GetColor(), and GetGroupDS().
Referenced by SMESH_Gen_i::Save().
CORBA::Long SMESH_GroupBase_i::GetColorNumber | ( | ) |
References SMESHDS_GroupBase::GetColorGroup(), GetGroupDS(), and MESSAGE.
SMESHDS_GroupBase * SMESH_GroupBase_i::GetGroupDS | ( | ) | const |
References GetSmeshGroup().
Referenced by SMESH_Group_i::Add(), SMESH_Group_i::AddByPredicate(), SMESH_Group_i::AddFrom(), SMESH_Group_i::Clear(), Contains(), GetColor(), GetColorNumber(), GetID(), GetListOfID(), SMESH_GroupOnFilter_i::GetListOfID(), GetMeshInfo(), SMESH_GroupOnFilter_i::GetMeshInfo(), GetNodeIDs(), GetNumberOfNodes(), SMESH_GroupOnGeom_i::GetShape(), GetType(), IsEmpty(), IsNodeInfoAvailable(), SMESH_Gen_i::Load(), SMESH_Mesh_i::MakeGroupsOfBadInputElements(), SMESH_GroupOnFilter_i::OnBaseObjModified(), SMESH_Group_i::Remove(), SMESH_Group_i::RemoveByPredicate(), SMESH_Gen_i::Save(), SetColor(), SetColorNumber(), and Size().
CORBA::Long SMESH_GroupBase_i::GetID | ( | CORBA::Long | elem_index | ) |
References SMESH_PreMeshInfo::FullLoadFromFile(), GetGroupDS(), SMESHDS_GroupBase::GetID(), MESSAGE, and myPreMeshInfo.
|
virtual |
Returns a sequence of all element IDs.
References GetListOfID().
SMESH::long_array * SMESH_GroupBase_i::GetListOfID | ( | ) |
References SMESHDS_GroupBase::Extent(), SMESH_PreMeshInfo::FullLoadFromFile(), GetGroupDS(), SMESHDS_GroupBase::GetID(), and myPreMeshInfo.
Referenced by GetIDs(), and GetNodeIDs().
int SMESH_GroupBase_i::GetLocalID | ( | ) | const |
|
virtual |
References myMeshServant.
|
virtual |
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, GetGroupDS(), SMESH_PreMeshInfo::GetMeshInfo(), GetNumberOfNodes(), myPreMeshInfo, SMDSAbs_Node, and SMDSEntity_Node.
SMESH_Mesh_i* SMESH_GroupBase_i::GetMeshServant | ( | ) | const |
Referenced by SMESH_GroupOnGeom_i::GetShape().
char * SMESH_GroupBase_i::GetName | ( | ) |
References SMESH::SMESH_GroupBase::GetName(), and GetSmeshGroup().
Referenced by SMESH_Gen_i::Save().
|
virtual |
Returns number of mesh elements of each ElementType.
References GetType(), myPreMeshInfo, SMESH::NB_ELEMENT_TYPES, SMDS_MeshInfo::NbElements(), and Size().
SMESH::long_array * SMESH_GroupBase_i::GetNodeIDs | ( | ) |
Return IDs of nodes of cells included to the group.
References SMESH_PreMeshInfo::FullLoadFromFile(), GetGroupDS(), GetListOfID(), GetType(), myPreMeshInfo, and SMESH::NODE.
CORBA::Long SMESH_GroupBase_i::GetNumberOfNodes | ( | ) |
return the number of nodes of cells included to the group
References SMESH_PreMeshInfo::FullLoadFromFile(), GetGroupDS(), GetType(), myGroupDSTic, myNbNodes, myPreMeshInfo, SMESH::NODE, and Size().
Referenced by GetMeshInfo(), and SMESH_GroupOnFilter_i::GetMeshInfo().
SMESH_Group * SMESH_GroupBase_i::GetSmeshGroup | ( | ) | const |
References SMESH_Mesh_i::GetImpl(), myLocalID, and myMeshServant.
Referenced by GetGroupDS(), GetName(), and SetName().
SMESH::ElementType SMESH_GroupBase_i::GetType | ( | ) |
References SMESH::ALL, SMESH::BALL, SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, 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(), GetNbElementsByType(), GetNodeIDs(), GetNumberOfNodes(), GetTypes(), IsNodeInfoAvailable(), and Size().
|
virtual |
Returns types of elements it contains Inherited from SMESH_IDSource interface.
References GetType(), and IsEmpty().
Referenced by SMESH_Mesh_i::ConvertToStandalone().
|
virtual |
Returns mesh unstructed grid information.
CORBA::Boolean SMESH_GroupBase_i::IsEmpty | ( | ) |
References GetGroupDS(), SMESHDS_GroupBase::IsEmpty(), myPreMeshInfo, and Size().
Referenced by GetTypes().
|
virtual |
Returns true
if this
group depends on the other via FT_BelongToMeshGroup predicate or vice versa.
References SMESH::NotifyerAndWaiter::ContainModifWaiter().
|
virtual |
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 myPreMeshInfo.
CORBA::Boolean SMESH_GroupBase_i::IsNodeInfoAvailable | ( | ) |
Return true if GetNumberOfNodes() won't take a long time for computation.
References GetGroupDS(), GetType(), myGroupDSTic, myNbNodes, 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 SMESH_Group_i::Add(), SMESH_Group_i::AddFrom(), ChangeByPredicate(), SMESH_Group_i::Clear(), SMESH_Group_i::Remove(), SMESH_Mesh_i::RemoveGroup(), and SMESH::Filter_i::SetPredicate().
|
virtualinherited |
Reimplemented in SMESH::Filter_i.
Referenced by SMESH::NotifyerAndWaiter::Modified().
|
inherited |
Removes an object to be notified on change of predicate.
References SMESH::NotifyerAndWaiter::myWaiters.
Referenced by SMESH_GroupOnFilter_i::~SMESH_GroupOnFilter_i().
void SMESH_GroupBase_i::SetColor | ( | const SALOMEDS::Color & | color | ) |
References SMESHDS_GroupBase::GetColor(), GetGroupDS(), and SMESHDS_GroupBase::SetColor().
void SMESH_GroupBase_i::SetColorNumber | ( | CORBA::Long | color | ) |
References GetGroupDS(), and SMESHDS_GroupBase::SetColorGroup().
void SMESH_GroupBase_i::SetName | ( | const char * | name | ) |
CORBA::Long SMESH_GroupBase_i::Size | ( | ) |
References SMESHDS_GroupBase::Extent(), GetGroupDS(), GetType(), myPreMeshInfo, SMDS_MeshInfo::NbElements(), SMDS_MeshInfo::NbNodes(), and SMESH::NODE.
Referenced by SMESH_Group_i::AddFrom(), GetNbElementsByType(), GetNumberOfNodes(), and IsEmpty().
|
friend |
|
friend |
|
protected |
Referenced by GetNumberOfNodes(), and IsNodeInfoAvailable().
|
private |
Referenced by GetSmeshGroup().
|
private |
Referenced by GetMesh(), GetSmeshGroup(), and SetName().
|
protected |
Referenced by GetNumberOfNodes(), and IsNodeInfoAvailable().
|
protected |
Referenced by SMESH_Group_i::Add(), SMESH_Group_i::AddByPredicate(), SMESH_Group_i::AddFrom(), SMESH_Group_i::Clear(), Contains(), GetID(), GetListOfID(), SMESH_GroupOnFilter_i::GetListOfID(), GetMeshInfo(), SMESH_GroupOnFilter_i::GetMeshInfo(), GetNbElementsByType(), GetNodeIDs(), GetNumberOfNodes(), IsEmpty(), IsMeshInfoCorrect(), IsNodeInfoAvailable(), SMESH_GroupOnFilter_i::OnBaseObjModified(), SMESH_Group_i::Remove(), SMESH_Group_i::RemoveByPredicate(), Size(), and ~SMESH_GroupBase_i().
|
inherited |