[vtkusers] retrieving orientation of a object in a 3D scene in real-time

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Wed Feb 11 08:39:04 EST 2004


But remember that most of the time, when you interect with the scene, it's
the camera that's changing and the actor is stationary. Set
InteractorModeToTrackballActor etc to ensure you're moving the actor.

JB

----- Original Message ----- 
From: "Simon DROUIN" <sdrouin at bic.mni.mcgill.ca>
To: "Vincent Daanen" <vincent.daanen at imag.fr>
Cc: <vtkusers at vtk.org>
Sent: Wednesday, February 11, 2004 1:13 PM
Subject: Re: [vtkusers] retrieving orientation of a object in a 3D scene in
real-time


> Vincent Daanen wrote:
>
> > Hi all,
> >
> > I'm vizualizing a 3D shape in a vtkRenderer. I can move it but I can't
> > find
> > the way to retrieve the information about the orientation in real-time
> > ie while moving it.
> >
> > I guess I should use the vtkRenderWindowInteractor but I don't know
> > how to do
> >
> > Can anybody help me ?
> >
> > Thanks
> >
> > Vince
> >
> One way of doing that would be to add an observer on the vtkRenderWindow
> and catch the Start or End event. The observer will then be called every
> time the window is rendered. Then, you can grab a pointer to the actor
> who's orientation you want to track and call GetOrientation().
>
> Hope it can help.
>
> Simon.
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list