Back to index

salome-paravis  6.5.0
Public Member Functions | Public Attributes
PARAVIS::TModuleEvent Struct Reference

Parent event for all events what is going to work with PARAVIS module instance. More...

#include <PV_Events.h>

Inheritance diagram for PARAVIS::TModuleEvent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TModuleEvent (SalomeApp_Application *theApp)
PVGUI_ModulegetModule ()
 Returns pointer on PARAVIS module instance.

Public Attributes

SalomeApp_Application * myApp

Detailed Description

Parent event for all events what is going to work with PARAVIS module instance.

Definition at line 68 of file PV_Events.h.


Constructor & Destructor Documentation

PARAVIS::TModuleEvent::TModuleEvent ( SalomeApp_Application *  theApp) [inline]

Definition at line 72 of file PV_Events.h.

:myApp(theApp) {}

Member Function Documentation

Returns pointer on PARAVIS module instance.

Definition at line 75 of file PV_Events.h.

    {
      PVGUI_Module* aPVModule = 0;
      CAM_Application::ModuleList aList = myApp->modules();
      foreach(CAM_Module* aModule, aList) {
        if (aModule->moduleName() == "ParaViS") {
          aPVModule = dynamic_cast<PVGUI_Module*>(aModule);
          break;
        }
      }
      return aPVModule;
    }

Here is the caller graph for this function:


Member Data Documentation

SalomeApp_Application* PARAVIS::TModuleEvent::myApp

Definition at line 70 of file PV_Events.h.


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