[vtkusers] Track and record user given rotations using a trackball?

David Doria daviddoria+vtk at gmail.com
Mon Sep 13 18:53:16 EDT 2010


On Mon, Sep 13, 2010 at 6:17 PM, Ambar C <ambarc at gmail.com> wrote:
> I'm still stuck on this problem :(
>
> I'm looking for a solution that will allow me to give the user a
> screen to realign data as they see fit. As in, perform manual
> rotations on the data visually using a mouse (not just change the
> camera angle they're viewing the data with) Any suggestions so as to
> how to start doing this?
>
> Best,
> Ambar

You can use a vtkInteractorStyleTrackballActor to move the data:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MoveActor

Then you can get what they did by looking at:
vtkActor::GetUserMatrix()
vtkActor::GetUserTransform()

(not sure the difference between those...)

Good luck,

David



More information about the vtkusers mailing list