<div class="gmail_quote">On Fri, Oct 1, 2010 at 6:01 PM, Ambar C <span dir="ltr">&lt;<a href="mailto:ambarc@gmail.com">ambarc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I&#39;m trying to use the setUserTransform method for a vtkActor to be<br>
able to record a user&#39;s changes to the actor using a mouse (which I<br>
believe using vtkInteractorStyleTrackballActor as my renderer window&#39;s<br>
interactor style should let me do) but after I change the position of<br>
my actors using a mouse and try to access the usertransform, I see<br>
that there isn&#39;t really a user transform in the first place (I see it<br>
as null).<br>
<br>
Do I have to first set the user transform to something? I&#39;ve aligned<br>
my actor&#39;s initial position with the origin, and I only want the<br>
userTransform to record what changes the user makes. Also, does the<br>
userTransform automatically update from the trackball actor style<br>
everytime some motion occurs?<br>
<br>
If I&#39;m on the wrong track completely, some pointers/links would be<br>
great as well :)<br>
<br>
Cheers,<br>
<font color="#888888">Ambar<br>
</font><div><div></div><div class="h5"></div></div></blockquote></div><br><div><br></div><div>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).</div>
<div><br></div><div>David</div>