Back to index

salome-smesh  6.5.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions
VISCOUS::_SrinkShapeListener Class Reference

Listener of events of 3D sub-meshes computed with viscous layers. More...

List of all members.

Public Member Functions

virtual void ProcessEvent (const int event, const int eventType, SMESH_subMesh *solidSM, SMESH_subMeshEventListenerData *data, const SMESH_Hypothesis *hyp)

Static Public Member Functions

static void ToClearSubMeshWithSolid (SMESH_subMesh *sm, const TopoDS_Shape &solid)

Private Member Functions

 _SrinkShapeListener ()

Static Private Member Functions

static SMESH_subMeshEventListener * Get ()

Detailed Description

Listener of events of 3D sub-meshes computed with viscous layers.

It is used to clear an inferior dim sub-meshes modified by viscous layers

Definition at line 124 of file StdMeshers_ViscousLayers.cxx.

Constructor & Destructor Documentation

Definition at line 126 of file StdMeshers_ViscousLayers.cxx.

      : SMESH_subMeshEventListener(/*isDeletable=*/false,
                                   "StdMeshers_ViscousLayers::_SrinkShapeListener") {}

Member Function Documentation

static SMESH_subMeshEventListener* VISCOUS::_SrinkShapeListener::Get ( ) [inline, static, private]

Definition at line 129 of file StdMeshers_ViscousLayers.cxx.

{ static _SrinkShapeListener l; return &l; }
virtual void VISCOUS::_SrinkShapeListener::ProcessEvent ( const int  event,
const int  eventType,
SMESH_subMesh *  solidSM,
SMESH_subMeshEventListenerData data,
const SMESH_Hypothesis *  hyp 
) [inline, virtual]

Definition at line 131 of file StdMeshers_ViscousLayers.cxx.

      if ( SMESH_subMesh::COMPUTE_EVENT == eventType && solidSM->IsEmpty() && data )
static void VISCOUS::_SrinkShapeListener::ToClearSubMeshWithSolid ( SMESH_subMesh *  sm,
const TopoDS_Shape &  solid 
) [inline, static]

Definition at line 142 of file StdMeshers_ViscousLayers.cxx.

      SMESH_subMesh* solidSM = sm->GetFather()->GetSubMesh( solid );
      SMESH_subMeshEventListenerData* data = solidSM->GetEventListenerData( Get());
      if ( data )
        if ( find( data->mySubMeshes.begin(), data->mySubMeshes.end(), sm ) ==
          data->mySubMeshes.push_back( sm );
        data = SMESH_subMeshEventListenerData::MakeData( /*dependent=*/sm );
        sm->SetEventListener( Get(), data, /*whereToListenTo=*/solidSM );

Here is the call graph for this function:

Here is the caller graph for this function:

The documentation for this class was generated from the following file: