[vtkusers] Obataining Actor matrix

Lim, Theodore T.Lim at hw.ac.uk
Wed Jul 20 10:50:27 EDT 2005


 Hi,
 
In vtkInteractorStyleTrackballActor, i see that the picked Prop gets transformed through Prop3DTransform(). After this function, ResetCameraClippingRange() is called to view the extents. At this point, looking through the objects of the picked Prop:
 
this->InteractionProp->*vtkAssembly->Parts-*vtkPropCollection->*vtkCollection->Top->Item->vtkOpenGLActor->*vtkActor->*vtkProp3D->Matrix->Element
 
the elements of the 4x4 matrix found correspond to the transformed Actors' prop.
 
The rotate, pan and scale functions within vtkInteractorStyleTrackballActor then calls *vtkRenderWindowInteractor->render() after resetting camera planes, and this resets the Actor's matrix.
 
How can i obtain the matrix from a picked Actor in a vtkAssembly after it has been transformed via vtkInteractorStyleTrackballActor? 
 
I have tried using Actor->GetMatrix() before render() but this also resets the matrix.
 
Is there another method to obtain the orientation, scale and position of individual Actors within an vtkAssembly that has been transformed by mouse movements.
 
Thanks in advance,
Theo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050720/161fbf32/attachment.htm>


More information about the vtkusers mailing list