<div dir="ltr">Hi David,<br><br>I was able to run the example in Qt Creator. I think the problem rises when you click the middle mouse button (before dragging). Have a look at what's happening on that! Because you are not over-riding it in the sub class.<br>
<br>Jothy<br><br><div class="gmail_quote">On Mon, Sep 6, 2010 at 11:05 PM, Darshan Pai <span dir="ltr"><<a href="mailto:darshanpai@gmail.com">darshanpai@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;">
I think you need to reset the Origin and the Position of the Actor to its Initial Position too . <br><br>Regards<br>Darshan<br><br><div class="gmail_quote">On Sun, Sep 5, 2010 at 2:22 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@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;"><div>On Sun, Sep 5, 2010 at 2:05 PM, Sebastien Jourdain<br>
<<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>> wrote:<br>
> Did you look into the UserTransform ? As I remember, I was using that instead...<br>
><br>
> Just in case...<br>
><br>
> Seb<br>
<br>
</div>Thanks for the suggestion Sebastien, but I did try looking at both the<br>
UserMatrix and the UserTransform but they both seem to be NULL:<br>
<br>
I just added this code to the original link for verification:<br>
<br>
vtkMatrix4x4* userMatrix = this->CubeActor->GetUserMatrix();<br>
if(userMatrix)<br>
{<br>
std::cout << "Has userMatrix" << std::endl;<br>
}<br>
else<br>
{<br>
std::cout << "No userMatrix!" << std::endl;<br>
}<br>
<br>
vtkLinearTransform* userTransform =<br>
this->CubeActor->GetUserTransform();<br>
if(userTransform)<br>
{<br>
std::cout << "Has userTransform" << std::endl;<br>
}<br>
else<br>
{<br>
std::cout << "No userTransform!" << std::endl;<br>
}<br>
<br>
It outputs:<br>
<br>
No userMatrix!<br>
No userTransform!<br>
<br>
Any other thoughts?<br>
<div><div></div><div><br>
David<div class="im"><br>
_______________________________________________<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></div></blockquote></div><br>
<br>_______________________________________________<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>
<br></blockquote></div><br></div>