[vtkusers] Rotate around a specific point

Glen Lehmann glehmann at imaging.robarts.ca
Fri Jan 31 11:15:25 EST 2003


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
>
>  
>





More information about the vtkusers mailing list