[vtkusers] Where is the actors matrix being saved?

Darshan Pai darshanpai at gmail.com
Mon Sep 6 18:05:25 EDT 2010


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100906/9f6867fe/attachment.htm>


More information about the vtkusers mailing list