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

Ambar C ambarc at gmail.com
Fri Oct 1 19:14:33 EDT 2010


Hi David,

The problem I'm facing right now is that I can't seem to capture the
user's changes. If I apply a transform filter to capture the user
matrix, I don't get any change from the original. Would calling
getUserTransform immediately capture what I see on the screen (after
having made the changes with my mouse)?

Best,
Ambar

On Mon, Sep 13, 2010 at 3:53 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> 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