[vtkusers] Rotate around a specific point (fwd)

Hans Fangohr H.FANGOHR at soton.ac.uk
Fri Jan 31 11:39:23 EST 2003


This might be interesting at some point.


---------- Forwarded message ----------
Date: Fri, 31 Jan 2003 16:15:25 +0000
From: Glen Lehmann <glehmann at imaging.robarts.ca>
To: "Gendron, Patrick" <patrick.gendron at cnrc-nrc.gc.ca>
Cc: "Vtkusers (E-mail)" <vtkusers at public.kitware.com>
Subject: Re: [vtkusers] Rotate around a specific point

Hi Gendron,

vtkCamera will rotate around the focal point. To set/get this try;

cam = ren->GetActiveCamera(); // returns a vtkCamera;
cam->SetFocalPoint( 10,20,30 ); // Rotate about ( 10, 20, 30)
cam->Modified();

Cheers,
Glen


Gendron, Patrick wrote:

>Hi everyone!
>
>I'd like to know if it is possible to specify a point that would be consider
>like the center of rotation while interacting with the mouse. All I've found
>for now, is the possibility to turn around the screen center or to turn
>every actor individually. Is there an object or a method to call to make it
>possible? Or maybe an example to make my own Interactor.
>
>Thanks!
>
>Patrick Gendron
>
>_______________________________________________
>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://public.kitware.com/mailman/listinfo/vtkusers
>
>
>


_______________________________________________
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://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list