[vtkusers] How to use different InteractorStyle for different object in a window?

naresh naresh at winner.co.in
Fri Aug 20 00:23:06 EDT 2010


Do this from your actor.

vtkActor::PickableOff();

Like

Object2Actor->PickableOff();


It will not pick object2 .


Hope this helps.




----- Original Message ----- 
From: "AddOil" <qiang.meng at gmail.com>
To: <vtkusers at vtk.org>
Sent: Thursday, August 19, 2010 7:32 PM
Subject: Re: [vtkusers] How to use different InteractorStyle for different 
object in a window?


>
> Thank you for your reply!
>
> I tried vtkInteractorStyleTrackballActor. When I move the mouse on Object 
> 1,
> it will rotate. When I move the mouse on Object 2, Object 2 will rotate.
>
> However, I only want to rotate Object 1 when I move my mouse anywhere on 
> the
> window. How should I do?
>
> Thank you very much!
>
>
> -- 
> View this message in context: 
> http://vtk.1045678.n5.nabble.com/How-to-use-different-InteractorStyle-for-different-object-in-a-window-tp2640889p2640963.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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