Back to index

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

List of all members.

Public Types

typedef PyObject * TResult

Public Member Functions

 TGetRendererEvent (bool toCreate)
virtual void Execute ()

Public Attributes

TResult myResult
int myCreate

Detailed Description

Definition at line 199 of file SalomePy.cxx.

Member Typedef Documentation

typedef PyObject* TGetRendererEvent::TResult

Definition at line 202 of file SalomePy.cxx.

Constructor & Destructor Documentation

TGetRendererEvent::TGetRendererEvent ( bool  toCreate) [inline]

Definition at line 205 of file SalomePy.cxx.

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

Member Function Documentation

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

Definition at line 207 of file SalomePy.cxx.

    PyObject* aPyClass = ::GetPyClass( "vtkRenderer" );
    SVTK_ViewWindow* aVTKViewWindow = 
      ::GetVTKViewWindow( myCreate ? __Create : __FindOrCreate );
    if( aVTKViewWindow && aPyClass ) {
      vtkRenderer* aVTKObject = aVTKViewWindow->getRenderer();
#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 204 of file SalomePy.cxx.

Definition at line 203 of file SalomePy.cxx.

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