You will probably need to subclass the vtkInteractorStyleSwitch . <br>Within the new subclass , I think you can specify some kind of picking operation. And depending on if you picked a prop, you can use that as a predicate for choosing trackball camera or trackball actor . <br>
<br>I do not know if there is anything builtin which does what you are asking for . <br><br>Regards<br>Darshan<br><br><div class="gmail_quote">On Thu, Mar 22, 2012 at 5:15 PM, Thomas Ka <span dir="ltr">&lt;<a href="mailto:t-ka@gmx.net">t-ka@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello list!<br>
<br>
Can you help me with the following problem?<br>
<br>
I&#39;d like to use an interactor style that works like a vtkInteractorStyleTrackballActor (move the actor) when the mouse is dragged above an actor, and when the mouse is dragged above the background the style should work like a vtkInteractorStyleTrackballCamera (move/rotate the scene).<br>

<br>
Does such a style exist in VTK? If not, how can I build it? Is it possible to use a vtkInteractorStyleSwitch and call its methods SetCurrentStyleToTrackballActor/Camera at the beginning of each drag operation? How can I detect whether the dragging is performed above an actor or not? If possible, please give a link to some code snippets.<br>

<br>
Thank you for any comment!<br>
<span class="HOEnZb"><font color="#888888">Thomas<br>
--<br>
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir<br>
belohnen Sie mit bis zu 50,- Euro! <a href="https://freundschaftswerbung.gmx.de" target="_blank">https://freundschaftswerbung.gmx.de</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</font></span></blockquote></div><br>