I think you will need to subclass the interactor and save the transform matrix before it is destroyed .<br>I used to do that when I need to add a new image to multiply with save transformation thus having same FOV<br><br>
<br><br><br><div class="gmail_quote">On Fri, Oct 1, 2010 at 10:30 PM, Ambar C <span dir="ltr"><<a href="mailto:ambarc@gmail.com">ambarc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
So that's what I was hoping to get - but the UserTransform seems to be<br>
a vtkLinearTransform (vtkTransform's parent) - and it doesn't have the<br>
translate and rotate functions. Also, my actor's position and<br>
orientation aren't changed at all no matter what I do with the<br>
trackball - is there something else I have to set or enable for the<br>
trackball to work? I really appreciate your help on this problem :)<br>
<br>
Best,<br>
<font color="#888888">Ambar<br>
</font><div><div></div><div class="h5"><br>
On Fri, Oct 1, 2010 at 4:51 PM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>> wrote:<br>
> On Fri, Oct 1, 2010 at 7:46 PM, Ambar C <<a href="mailto:ambarc@gmail.com">ambarc@gmail.com</a>> wrote:<br>
>><br>
>> I understand the part about the Position and orientation being the<br>
>> fields that get changed by the trackball - so how would I go about<br>
>> incorporating those changes into the actual data?<br>
><br>
> You could use this:<br>
> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData</a><br>
> and do<br>
> transform->PostMultiply();<br>
> transform->Translate(actor->GetPosition())<br>
> transform->Rotate(actor->GetOrientation())<br>
> Maybe someone else will chime in with a cleaner solution, but this should<br>
> work.<br>
> David<br>
</div></div><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>