<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>This is continuation on the topic which I presented in the previous thread, where Cory Quammen gave a great explanation:</div><div><a href="http://www.vtk.org/pipermail/vtkusers/2009-November/103638.html">http://www.vtk.org/pipermail/vtkusers/2009-November/103638.html</a></div><div><br></div><div>In short, my actors are biological molecules in 'lines' representation (<a href="http://media.piotr.byzia.pl/molecule_lines.PNG">http://media.piotr.byzia.pl/molecule_lines.PNG</a>).</div><div>As I understand, there are 2 main interactor styles in the VTK: trackball and joystick, from which I prefer trackball one (for its precision when using mouse to rotate the molecule).</div><div><br></div><div>When I'm using the TrackballCamera I can click anywhere within my widget with the actors (BTW, I using QVTKRenderWindowInteractor in Python QT application) and rotate+zoom on *all* actors. In order to accomplish this for only *one* actor I need to switch to TrackballActor style and *pick* (by clicking with the mouse on it) the actor I want to act on. You can imagine that with those thin lines, this is not an easy task.</div><div><br></div><div>Ideally, I would *programmatically* specify which actors I want to transform in a style that resemble TrackballCamera (i.e. click anywhere on the scene to manipulate selected actors).</div><div>Programmatically, because then, I can select them easily via, for instance, checkboxes in my GUI.</div><div><br></div><div><br></div><div>In the&nbsp;vtkInteractorStyle class reference there is&nbsp;PropPicked attribute, but I can't see anything that might set this one to some particular actor(s).</div><div><br></div><div><br></div><div>I would appreciate any pointers, if not to whole problem, maybe to one of its parts: either how to programmatically select actors to act on OR how to act on the actor selected in&nbsp;TrackballActor like it was in the&nbsp;TrackballCamera (i.e. not have to click exactly on the molecule's line).</div><div><br></div><div><br></div><div>1. One of the solutions that I can think of, is to create some temporary actor on-the-fly with all the actors that I want to act on, but I guess this would be painfully slow...</div><div>2. The 2nd one: picking and transforming (by mouse) one actor in&nbsp;TrackballActor style *and* apply the same transformation to other actor(s) of my choice.</div><div>While I guess this is possible with some transformation matrix *after* the mouse button is released, it's crucial to be in real-time -- at the time of movement of the 1st picked actor.</div><div><br></div><div><br></div><div>Best wishes,</div><div>Piotr Byzia</div></body></html>