[vtkusers] QVTKInteractor lacking methods of vtkRenderWindowInteractor when wrapped for Python
Andrea Borsic
Andrea.Borsic at Dartmouth.edu
Fri Apr 20 12:25:07 EDT 2012
Dear All,
I am currently using VTK 5.8.0 under OSX, wrapped for Python by enabling
SIP wrapping.
I am experiencing problems adding observers to a QVTKInteractor, as the
method .AddObserver fails with the message: AttributeError
I have realized that the QVTKInteractor, when wrapped, does not show the
methods of vtkRenderWindowInteractor from which it inherits.
For example this small test program:
import vtk
a = vtk.QVTKInteractor()
print dir(a)
results in:
['ContextMenuEvent', 'DragEnterEvent', 'DragLeaveEvent',
'DragMoveEvent', 'DropEvent', 'GetClassName', 'Initialize', 'IsA',
'Start', 'StartListening', 'StopListening', 'TerminateApp', 'TimerEvent']
but not in the many methods of vtkRenderWindowInteractor.
Am I doing something wrong, or something is not working correctly ? Has
anybody experienced the same ?
Thanks for any feedback !
Andrea
More information about the vtkusers
mailing list