Back to index

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

Event which activates PARAVIS module if it is not active. More...

#include <PV_Events.h>

Inheritance diagram for PARAVIS::TActivateModule:
Inheritance graph
[legend]
Collaboration diagram for PARAVIS::TActivateModule:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TActivateModule (SalomeApp_Application *theApp)
virtual void Execute ()
PVGUI_ModulegetModule ()
 Returns pointer on PARAVIS module instance.

Public Attributes

SalomeApp_Application * myApp

Detailed Description

Event which activates PARAVIS module if it is not active.

Definition at line 92 of file PV_Events.h.


Constructor & Destructor Documentation

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

Definition at line 94 of file PV_Events.h.

:TModuleEvent(theApp) {}

Member Function Documentation

virtual void PARAVIS::TActivateModule::Execute ( ) [inline, virtual]

Definition at line 96 of file PV_Events.h.

    {
      PVGUI_Module* aPVModule = getModule();
      if ((aPVModule == 0) || (myApp->activeModule() != aPVModule)) {
        myApp->activateModule("ParaViS");
      }
    }

Here is the call graph for this function:

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 [inherited]

Definition at line 70 of file PV_Events.h.


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