A base for objects reacting on submesh events.
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 in MeshEditor_I::TSearchersDeleter, VISCOUS_3D::_ViscousListener, VISCOUS_3D::_ShrinkShapeListener, and VISCOUS_2D::_ProxyMeshHolder.
References SMESH_subMesh::CLEAN, SMESH_subMesh::COMPUTE, SMESH_subMesh::COMPUTE_EVENT, SMESH_subMesh::COMPUTE_OK, SMESH_subMesh::COMPUTE_SUBMESH, SMESH_subMeshEventListenerData::mySubMeshes, and SMESH_subMesh::SUBMESH_COMPUTED.
Referenced by VISCOUS_3D::_ShrinkShapeListener::ProcessEvent().