[vtkusers] Where is the actors matrix being saved?

David Doria daviddoria at gmail.com
Fri Oct 1 18:04:38 EDT 2010


On Fri, Oct 1, 2010 at 6:01 PM, Ambar C <ambarc at gmail.com> wrote:

> Hello,
>
> I'm trying to use the setUserTransform method for a vtkActor to be
> able to record a user's changes to the actor using a mouse (which I
> believe using vtkInteractorStyleTrackballActor as my renderer window's
> interactor style should let me do) but after I change the position of
> my actors using a mouse and try to access the usertransform, I see
> that there isn't really a user transform in the first place (I see it
> as null).
>
> Do I have to first set the user transform to something? I've aligned
> my actor's initial position with the origin, and I only want the
> userTransform to record what changes the user makes. Also, does the
> userTransform automatically update from the trackball actor style
> everytime some motion occurs?
>
> If I'm on the wrong track completely, some pointers/links would be
> great as well :)
>
> Cheers,
> Ambar
>


vtkInteractorStyleTrackballActor modifies the Position and Orientation
members of the actor. The transform is then built from these variables when
it is needed. I would suggest you track them in the same manner (by storing
Position and Orientation).

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101001/7f99e32a/attachment.htm>


More information about the vtkusers mailing list