[Paraview] mouse interaction when scripting python

pat marion pat.marion at kitware.com
Wed Jul 28 17:19:18 EDT 2010


Hi Lars,

Currently it is not possible with paraview-python.  But you can make it work
using vtk-python (which looks very similar to your c++ example.)  See  this
email:

http://markmail.org/message/sjt6pbkyc56l2wgl

Pat

On Wed, Jul 28, 2010 at 5:00 PM, Lars Freemail <larsfreemail at yahoo.de>wrote:

> 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
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100728/8f103f24/attachment.htm>


More information about the ParaView mailing list