Version: 9.16.0
VISCOUS_2D::_ProxyMeshHolder Struct Reference

SMESH_subMeshEventListener used to store _ProxyMeshOfFace, computed by _ViscousBuilder2D, in a SMESH_subMesh of the FACE. More...

Inheritance diagram for VISCOUS_2D::_ProxyMeshHolder:

Data Structures

struct  _Data
 

Public Member Functions

 _ProxyMeshHolder (const TopoDS_Face &face, SMESH_ProxyMesh::Ptr &mesh)
 
void ProcessEvent (const int event, const int eventType, SMESH_subMesh *, EventListenerData *data, const SMESH_Hypothesis *)
 Do something on a certain event. More...
 
bool IsDeletable () const
 
const char * GetName () const
 
virtual void BeforeDelete (SMESH_subMesh *, SMESH_subMeshEventListenerData *)
 

Static Public Member Functions

static SMESH_ProxyMesh::Ptr FindProxyMeshOfFace (const TopoDS_Shape &face, SMESH_Mesh &mesh)
 

Static Private Member Functions

static const char * Name ()
 

Private Attributes

bool myIsDeletable
 if true, it will be deleted by SMESH_subMesh More...
 
std::set< SMESH_subMesh * > myBusySM
 to avoid infinite recursion via events More...
 
const char * myName
 identifier More...
 

Detailed Description

SMESH_subMeshEventListener used to store _ProxyMeshOfFace, computed by _ViscousBuilder2D, in a SMESH_subMesh of the FACE.

This is to delete _ProxyMeshOfFace when StdMeshers_ViscousLayers2D hypothesis is modified

Constructor & Destructor Documentation

◆ _ProxyMeshHolder()

VISCOUS_2D::_ProxyMeshHolder::_ProxyMeshHolder ( const TopoDS_Face &  face,
SMESH_ProxyMesh::Ptr mesh 
)

Member Function Documentation

◆ BeforeDelete()

virtual void SMESH_subMeshEventListener::BeforeDelete ( SMESH_subMesh ,
SMESH_subMeshEventListenerData  
)
virtualinherited

◆ FindProxyMeshOfFace()

static SMESH_ProxyMesh::Ptr VISCOUS_2D::_ProxyMeshHolder::FindProxyMeshOfFace ( const TopoDS_Shape &  face,
SMESH_Mesh mesh 
)
static

◆ GetName()

const char * SMESH_subMeshEventListener::GetName ( ) const
inherited

◆ IsDeletable()

bool SMESH_subMeshEventListener::IsDeletable ( ) const
inherited

◆ Name()

static const char * VISCOUS_2D::_ProxyMeshHolder::Name ( )
staticprivate

Referenced by FindProxyMeshOfFace().

◆ ProcessEvent()

void VISCOUS_2D::_ProxyMeshHolder::ProcessEvent ( const int  event,
const int  eventType,
SMESH_subMesh subMesh,
EventListenerData data,
const SMESH_Hypothesis hyp 
)
virtual

Do something on a certain event.

Parameters
event- algo_event or compute_event itself (of SMESH_subMesh)
eventType- ALGO_EVENT or COMPUTE_EVENT (of SMESH_subMesh)
subMesh- the submesh where the event occurs
data- listener data stored in the subMesh
hyp- hypothesis, if eventType is algo_event

The base implementation (see SMESH_subMesh.cxx) translates CLEAN event to the subMeshes stored in the listener data. Also it sends SUBMESH_COMPUTED event in case of successful COMPUTE event.

Parameters
event- algo_event or compute_event itself
eventType- algo_event or compute_event
subMesh- the submesh where the event occurs
data- listener data stored in the subMesh
hyp- hypothesis, if eventType is algo_event

The base implementation translates CLEAN event to the subMesh stored in listener data. Also it sends SUBMESH_COMPUTED event in case of successful COMPUTE event.

Reimplemented from SMESH_subMeshEventListener.

References SMESH_subMesh::CLEAN, and SMESH_subMesh::COMPUTE_EVENT.

Field Documentation

◆ myBusySM

std::set<SMESH_subMesh*> SMESH_subMeshEventListener::myBusySM
mutableprivateinherited

to avoid infinite recursion via events

◆ myIsDeletable

bool SMESH_subMeshEventListener::myIsDeletable
privateinherited

if true, it will be deleted by SMESH_subMesh

◆ myName

const char* SMESH_subMeshEventListener::myName
privateinherited

identifier