A base for objects reacting on submesh events. More...
#include <SMESH_subMeshEventListener.hxx>
Public Member Functions | |
virtual void | BeforeDelete (SMESH_subMesh *subMesh, SMESH_subMeshEventListenerData *data) |
const char * | GetName () const |
bool | IsDeletable () const |
virtual void | ProcessEvent (const int event, const int eventType, SMESH_subMesh *subMesh, SMESH_subMeshEventListenerData *data, const SMESH_Hypothesis *hyp=0) |
Do something on a certain event. More... | |
SMESH_subMeshEventListener (bool isDeletable, const char *name) | |
virtual | ~SMESH_subMeshEventListener () |
Friends | |
class | SMESH_subMesh |
Detailed Description
A base for objects reacting on submesh events.
Constructor & Destructor Documentation
◆ SMESH_subMeshEventListener()
SMESH_subMeshEventListener::SMESH_subMeshEventListener | ( | bool | isDeletable, |
const char * | name | ||
) |
◆ ~SMESH_subMeshEventListener()
|
virtual |
Member Function Documentation
◆ BeforeDelete()
|
virtual |
◆ GetName()
const char* SMESH_subMeshEventListener::GetName | ( | ) | const |
Referenced by SMESH_subMesh::setEventListener().
◆ IsDeletable()
bool SMESH_subMeshEventListener::IsDeletable | ( | ) | const |
◆ ProcessEvent()
|
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 occures 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 occures 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 in VISCOUS_3D::_ViscousListener, VISCOUS_2D::_ProxyMeshHolder, and VISCOUS_3D::_ShrinkShapeListener.
References SMESH_subMesh::CLEAN, SMESH_subMesh::COMPUTE, SMESH_subMesh::COMPUTE_EVENT, SMESH_subMesh::COMPUTE_OK, SMESH_subMesh::COMPUTE_SUBMESH, SMESH_subMesh::GetComputeState(), and SMESH_subMesh::SUBMESH_COMPUTED.
Referenced by VISCOUS_3D::_ShrinkShapeListener::ProcessEvent().
Friends And Related Function Documentation
◆ SMESH_subMesh
|
friend |
The documentation for this class was generated from the following files:
- src/3rdParty/salomesmesh/inc/SMESH_subMeshEventListener.hxx
- src/3rdParty/salomesmesh/src/SMESH/SMESH_subMesh.cpp