[vtkusers] vtkCamera rotations
Jothybasu Selvaraj
jothybasu at gmail.com
Tue May 22 10:58:33 EDT 2012
Also use SetFocalPoint(0,0,0);// about the origin
Add don't forget to call ResetCamera().
Jothy
On Tue, May 22, 2012 at 3:50 PM, ankitramani <ankitvtk at googlemail.com> wrote:
> Hello,
>
> I'm using a 2D medical image and I want to put flipping functionality. My
> purpose is to flip, either horizontally or verticaly.
>
> My question is that I don't know exactly which is the proper method to
> achieve the flipping with vtkCamera. For rotation, i tried azimuth, yaw and
> setroll functions with 90 degree. I am getting image vertically. I want to
> rotate horizontally with 90 degree. for camera, i am using following code,
>
>
> vtkCamera *aCamera = vtkCamera::New();
> aCamera->SetViewUp(0, -1, 0);
> aCamera->SetPosition(-1, 0, 0);
>
> Regards.
> Ankit Ramani
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/vtkCamera-rotations-tp5713301.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
--
Jothy
More information about the vtkusers
mailing list