Version: 8.3.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 ()
 
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_arrayGetListOfID ()
 
SMESH::long_arrayGetNodeIDs ()
 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_arrayGetMeshInfo ()
 Returns number of mesh elements of each EntityType Result array of number of elements per EntityType Inherited from SMESH_IDSource. More...
 
virtual SMESH::long_arrayGetNbElementsByType ()
 Returns number of mesh elements of each ElementType. More...
 
virtual SMESH::long_arrayGetIDs ()
 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_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 *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_PreMeshInfomyPreMeshInfo
 
int myNbNodes
 
int myGroupDSTic
 

Constructor & Destructor Documentation

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

Member Function Documentation

CORBA::Long SMESH_Group_i::AddByPredicate ( SMESH::Predicate_ptr  thePredicate)
void 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().

SMESH_PreMeshInfo* & SMESH_GroupBase_i::changePreMeshInfo ( )
protectedinherited
bool NotifyerAndWaiter::ContainModifWaiter ( NotifyerAndWaiter waiter)
inherited

Checks if a waiter is among myWaiters, maybe nested.

References SMESH::NotifyerAndWaiter::myWaiters.

Referenced by SMESH_GroupBase_i::IsInDependency().

CORBA::Boolean SMESH_GroupBase_i::Contains ( CORBA::Long  elem_id)
inherited
SALOMEDS::Color SMESH_GroupBase_i::GetColor ( )
inherited
CORBA::Long SMESH_GroupBase_i::GetColorNumber ( )
inherited
CORBA::Long SMESH_GroupBase_i::GetID ( CORBA::Long  elem_index)
inherited
SMESH::long_array * SMESH_GroupBase_i::GetIDs ( )
virtualinherited

Returns a sequence of all element IDs.

References SMESH_GroupBase_i::GetListOfID().

int SMESH_GroupBase_i::GetLocalID ( ) const
inherited
SMESH::SMESH_Mesh_ptr SMESH_GroupBase_i::GetMesh ( )
virtualinherited
SMESH::long_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.

SMESH_Mesh_i* SMESH_GroupBase_i::GetMeshServant ( ) const
inherited
char * SMESH_GroupBase_i::GetName ( )
inherited
SMESH::long_array * SMESH_GroupBase_i::GetNbElementsByType ( )
virtualinherited
SMESH::long_array * SMESH_GroupBase_i::GetNodeIDs ( )
inherited
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().

Referenced by SMESH_Mesh_i::ConvertToStandalone().

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

Returns mesh unstructed grid information.

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.

References SMESH::NotifyerAndWaiter::ContainModifWaiter().

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.

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

CORBA::Boolean SMESH_GroupBase_i::IsNodeInfoAvailable ( )
inherited
void NotifyerAndWaiter::Modified ( bool  removed = false,
NotifyerAndWaiter who = 0 
)
inherited
virtual void SMESH::NotifyerAndWaiter::OnBaseObjModified ( NotifyerAndWaiter obj,
bool  removed 
)
virtualinherited

Reimplemented in SMESH::Filter_i.

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

CORBA::Long SMESH_Group_i::RemoveByPredicate ( SMESH::Predicate_ptr  thePredicate)
void NotifyerAndWaiter::RemoveModifWaiter ( NotifyerAndWaiter waiter)
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)
inherited
void SMESH_GroupBase_i::SetColorNumber ( CORBA::Long  color)
inherited

Field Documentation

int SMESH_GroupBase_i::myGroupDSTic
protectedinherited
int SMESH_GroupBase_i::myNbNodes
protectedinherited