[vtkusers] Making Camera stationary

David Doria daviddoria at gmail.com
Wed Jun 26 13:47:30 EDT 2013


On Wed, Jun 26, 2013 at 6:18 AM, divya <divya at triassicsolutions.com> wrote:
>
> Dear VTK users,
>
>  I am trying to get the position(x, y, z) of the actor when its rotating. When i use an event VTKRenderWindowInteractor EndInteractionEvt,   the ‘actor.GetOrientation();’ returns 0 values for the coordinate. I figured out the reason could be because the camera is rotating and not the actor, for this when I tried to rotating the actor after clicking ‘a’ from the keyboard, it works fine. Can this be made the default behavior? ie. Can the camera be made stationary and the actor is moved.

You need to use vtkInteractorStyleTrackballActor instead of
vtkInteractorStyleTrackballCamera

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MoveActor

David



More information about the vtkusers mailing list