[vtkusers] R: Pick actor

Zampini Samuele samuele.zampini at epfl.ch
Fri Oct 23 08:31:31 EDT 2009


Hi,

I think the best way to do what you wanna do is something like:

RenderWindowInteractor.SetInteractorStyle(vtk.vtkInteractorStyleTrackballCamera())

And you can act on the actor you are on, with the mouse.

Hope this helps,

Samuele
________________________________________
Da: vtkusers-bounces at vtk.org [vtkusers-bounces at vtk.org] per conto di baliki2 at freemail.gr [baliki2 at freemail.gr]
Inviato: venerdì 23 ottobre 2009 14.19
A: vtkusers at vtk.org
Oggetto: [vtkusers] Pick actor

Hello,
i have two objects in my scene. I want to move (click and drag) the one on which i click with the mouse. I know i should use the Pick class. But i'd appreciate if someone could give me more detailed instructions-code lines.

_______________________________________________
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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list