Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Public Attributes
TGetRenderWindowEvent Class Reference
Inheritance diagram for TGetRenderWindowEvent:
Inheritance graph
Collaboration diagram for TGetRenderWindowEvent:
Collaboration graph

List of all members.

Public Types

typedef PyObject * TResult

Public Member Functions

 TGetRenderWindowEvent (bool toCreate)
virtual void Execute ()

Public Attributes

TResult myResult
int myCreate

Detailed Description

Definition at line 252 of file SalomePy.cxx.

Member Typedef Documentation

typedef PyObject* TGetRenderWindowEvent::TResult

Definition at line 255 of file SalomePy.cxx.

Constructor & Destructor Documentation

TGetRenderWindowEvent::TGetRenderWindowEvent ( bool  toCreate) [inline]

Definition at line 258 of file SalomePy.cxx.

    : myResult( Py_None ), myCreate( toCreate ) {}

Member Function Documentation

virtual void TGetRenderWindowEvent::Execute ( ) [inline, virtual]

Definition at line 260 of file SalomePy.cxx.

    PyObject* aPyClass = ::GetPyClass( "vtkRenderWindow" );
    SVTK_ViewWindow* aVTKViewWindow = 
      ::GetVTKViewWindow( myCreate ? __Create : __FindOrCreate );
    if( aVTKViewWindow && aPyClass ) {
      vtkRenderWindow* aVTKObject = aVTKViewWindow->getRenderWindow();
#if VTK_XVERSION < 50700
      myResult = PyVTKObject_New( aPyClass, aVTKObject );
      myResult = PyVTKObject_New( aPyClass, NULL, aVTKObject );

Here is the call graph for this function:

Member Data Documentation

Definition at line 257 of file SalomePy.cxx.

Definition at line 256 of file SalomePy.cxx.

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