Version: 9.12.0
SMESH_Group_i Class Reference

#include <SMESH_Group_i.hxx>

Inheritance diagram for SMESH_Group_i:

Public Member Functions

 SMESH_Group_i (PortableServer::POA_ptr thePOA, SMESH_Mesh_i *theMeshServant, const int theLocalID)
 
void Clear ()
 
SMESH::smIdType Add (const SMESH::smIdType_array &theIDs)
 
SMESH::smIdType Remove (const SMESH::smIdType_array &theIDs)
 
SMESH::smIdType AddByPredicate (SMESH::Predicate_ptr thePredicate)
 
SMESH::smIdType RemoveByPredicate (SMESH::Predicate_ptr thePredicate)
 
SMESH::smIdType AddFrom (SMESH::SMESH_IDSource_ptr theSource)
 
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_arrayGetListOfID ()
 
SMESH::smIdType_arrayGetNodeIDs ()
 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_arrayGetMeshInfo ()
 Returns number of mesh elements of each EntityType Result array of number of elements per EntityType Inherited from SMESH_IDSource. More...
 
virtual SMESH::smIdType_arrayGetNbElementsByType ()
 Returns number of mesh elements of each ElementType. More...
 
virtual SMESH::smIdType_arrayGetIDs ()
 Returns a sequence of all element IDs. More...
 
virtual SMESH::array_of_ElementTypeGetTypes ()
 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_iGetMeshServant () const
 
SMESH_GroupGetSmeshGroup () const
 
SMESHDS_GroupBaseGetGroupDS () 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...
 

Data Fields

std::list< NotifyerAndWaiter * > myWaiters
 

Protected Member Functions

SMESH_PreMeshInfo *& changePreMeshInfo ()
 

Protected Attributes

SMESH_PreMeshInfomyPreMeshInfo
 
int myNbNodes
 
int myGroupDSTic
 

Private Member Functions

void changeLocalId (int localId)
 

Private Attributes

SMESH_Mesh_imyMeshServant
 
int myLocalID
 

Constructor & Destructor Documentation

◆ SMESH_Group_i()

SMESH_Group_i::SMESH_Group_i ( PortableServer::POA_ptr  thePOA,
SMESH_Mesh_i theMeshServant,
const int  theLocalID 
)

Member Function Documentation

◆ Add()

◆ AddByPredicate()

SMESH::smIdType SMESH_Group_i::AddByPredicate ( SMESH::Predicate_ptr  thePredicate)

◆ AddFrom()

◆ AddModifWaiter()

void SMESH::NotifyerAndWaiter::AddModifWaiter ( NotifyerAndWaiter waiter)
inherited

Stores an object to be notified on change of predicate.

References SMESH::NotifyerAndWaiter::myWaiters.

Referenced by SMESH::Filter_i::FindBaseObjects().

◆ changeLocalId()

void SMESH_GroupBase_i::changeLocalId ( int  localId)
privateinherited

◆ changePreMeshInfo()

SMESH_PreMeshInfo* & SMESH_GroupBase_i::changePreMeshInfo ( )
protectedinherited

◆ Clear()

◆ ContainModifWaiter()

bool SMESH::NotifyerAndWaiter::ContainModifWaiter ( NotifyerAndWaiter waiter)
inherited

Checks if a waiter is among myWaiters, maybe nested.

References SMESH::NotifyerAndWaiter::myWaiters.

◆ Contains()

CORBA::Boolean SMESH_GroupBase_i::Contains ( SMESH::smIdType  elem_id)
inherited

◆ GetColor()

SALOMEDS::Color SMESH_GroupBase_i::GetColor ( )
inherited

◆ GetColorNumber()

CORBA::Long SMESH_GroupBase_i::GetColorNumber ( )
inherited

◆ GetGroupDS()

◆ GetID()

SMESH::smIdType SMESH_GroupBase_i::GetID ( SMESH::smIdType  elem_index)
inherited

◆ GetIDs()

SMESH::smIdType_array * SMESH_GroupBase_i::GetIDs ( )
virtualinherited

Returns a sequence of all element IDs.

References SMESH_GroupBase_i::GetListOfID().

◆ GetListOfID()

◆ GetLocalID()

int SMESH_GroupBase_i::GetLocalID ( ) const
inherited

◆ GetMesh()

SMESH::SMESH_Mesh_ptr SMESH_GroupBase_i::GetMesh ( )
virtualinherited

◆ GetMeshInfo()

SMESH::smIdType_array * SMESH_GroupBase_i::GetMeshInfo ( )
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.

◆ GetMeshServant()

◆ GetName()

char * SMESH_GroupBase_i::GetName ( )
inherited

◆ GetNbElementsByType()

SMESH::smIdType_array * SMESH_GroupBase_i::GetNbElementsByType ( )
virtualinherited

◆ GetNodeIDs()

◆ GetNumberOfNodes()

◆ GetSmeshGroup()

◆ GetType()

◆ GetTypes()

SMESH::array_of_ElementType * SMESH_GroupBase_i::GetTypes ( )
virtualinherited

Returns types of elements it contains Inherited from SMESH_IDSource interface.

References SMESH_GroupBase_i::GetType(), and SMESH_GroupBase_i::IsEmpty().

◆ GetVtkUgStream()

SALOMEDS::TMPFile * SMESH_GroupBase_i::GetVtkUgStream ( )
virtualinherited

Returns mesh unstructed grid information.

◆ IsEmpty()

◆ IsInDependency()

bool SMESH_GroupBase_i::IsInDependency ( SMESH::SMESH_GroupBase_ptr  other)
virtualinherited

Returns true if this group depends on the other via FT_BelongToMeshGroup predicate or vice versa.

◆ IsMeshInfoCorrect()

bool SMESH_GroupBase_i::IsMeshInfoCorrect ( )
virtualinherited

Returns false if GetMeshInfo() returns incorrect information that may happen if mesh data is not yet fully loaded from the file of study.

Reimplemented in SMESH_GroupOnFilter_i.

References SMESH_PreMeshInfo::IsMeshInfoCorrect(), and SMESH_GroupBase_i::myPreMeshInfo.

◆ IsNodeInfoAvailable()

CORBA::Boolean SMESH_GroupBase_i::IsNodeInfoAvailable ( )
inherited

◆ Modified()

void SMESH::NotifyerAndWaiter::Modified ( bool  removed = false,
NotifyerAndWaiter who = 0 
)
inherited

◆ OnBaseObjModified()

virtual void SMESH::NotifyerAndWaiter::OnBaseObjModified ( NotifyerAndWaiter ,
bool   
)
virtualinherited

Reimplemented in SMESH::Filter_i.

Referenced by SMESH::NotifyerAndWaiter::Modified().

◆ Remove()

◆ RemoveByPredicate()

SMESH::smIdType SMESH_Group_i::RemoveByPredicate ( SMESH::Predicate_ptr  thePredicate)

◆ RemoveModifWaiter()

void SMESH::NotifyerAndWaiter::RemoveModifWaiter ( NotifyerAndWaiter waiter)
inherited

Removes an object to be notified on change of predicate.

References SMESH::NotifyerAndWaiter::myWaiters.

◆ SetColor()

void SMESH_GroupBase_i::SetColor ( const SALOMEDS::Color &  color)
inherited

◆ SetColorNumber()

void SMESH_GroupBase_i::SetColorNumber ( CORBA::Long  color)
inherited

◆ SetName()

◆ Size()

Field Documentation

◆ myGroupDSTic

int SMESH_GroupBase_i::myGroupDSTic
protectedinherited

◆ myLocalID

int SMESH_GroupBase_i::myLocalID
privateinherited

◆ myMeshServant

SMESH_Mesh_i* SMESH_GroupBase_i::myMeshServant
privateinherited

◆ myNbNodes

int SMESH_GroupBase_i::myNbNodes
protectedinherited

◆ myPreMeshInfo

◆ myWaiters