[vtkusers] Obataining Actor matrix
T.Lim at hw.ac.uk
Wed Jul 20 10:50:27 EDT 2005
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:
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,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers