[Paraview] mouse interaction when scripting python

Lars Freemail larsfreemail at yahoo.de
Wed Jul 28 17:00:22 EDT 2010


Dear all,
I started with a simple python scripting example as described in this paragraph:
http://www.paraview.org/Wiki/ParaView/Python_Scripting#Rendering

Unfortunately I don't see any possibility to interact with the render window 
using the mouse (to rotate the camera, zoom, pan, ...) as I did before in C++:

...
// an interactor
vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
iren->SetRenderWindow(renWin);
// add actors
ren1->AddActor(...);
// render an image
renWin->Render();
// begin mouse interaction
iren->Start();

Is it possible to use mouse interaction in combination with python scripting?

Thanks
Lars






More information about the ParaView mailing list