[vtkusers] Where is the actors matrix being saved?

Jothy jothybasu at gmail.com
Tue Sep 7 05:24:39 EDT 2010


Hi David,

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.

Jothy

On Mon, Sep 6, 2010 at 11:05 PM, Darshan Pai <darshanpai at gmail.com> wrote:

> I think you need to reset the Origin and the Position of the Actor to its
> Initial Position too .
>
> Regards
> Darshan
>
> On Sun, Sep 5, 2010 at 2:22 PM, David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> > wrote:
>
>> On Sun, Sep 5, 2010 at 2:05 PM, Sebastien Jourdain
>> <sebastien.jourdain at kitware.com> wrote:
>> > Did you look into the UserTransform ? As I remember, I was using that
>> instead...
>> >
>> > Just in case...
>> >
>> > Seb
>>
>> Thanks for the suggestion Sebastien, but I did try looking at both the
>> UserMatrix and the UserTransform but they both seem to be NULL:
>>
>> I just added this code to the original link for verification:
>>
>>        vtkMatrix4x4* userMatrix = this->CubeActor->GetUserMatrix();
>>        if(userMatrix)
>>          {
>>          std::cout << "Has userMatrix" << std::endl;
>>          }
>>        else
>>          {
>>          std::cout << "No userMatrix!" << std::endl;
>>          }
>>
>>        vtkLinearTransform* userTransform =
>>           this->CubeActor->GetUserTransform();
>>        if(userTransform)
>>          {
>>          std::cout << "Has userTransform" << std::endl;
>>          }
>>        else
>>          {
>>          std::cout << "No userTransform!" << std::endl;
>>          }
>>
>> It outputs:
>>
>> No userMatrix!
>> No userTransform!
>>
>> Any other thoughts?
>>
>> David
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100907/c12b1e4e/attachment.htm>


More information about the vtkusers mailing list