[vtkusers] Setting camera to view the rendered slice

Abdelkhalek Bakkari bakkari.abdelkhalek at hotmail.fr
Thu Jul 20 02:20:54 EDT 2017


Dear VTK users,


I have an issue related to the Setting camera to view the rendered slice to the whole viewport.

For the axial plane, the formula which I am using is the following:


float yd = (image_vtk->GetExtent()[3] - image_vtk->GetExtent()[2] + 1)*image_vtk->GetSpacing()[1];

      float d = camera->GetDistance();
      camera->SetParallelScale(0.5f*yd);



I would like to change it in order to get the Coronal plane.

Thank you in advance.


Best regards,


Abdelkhalek Bakkari

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170720/1c62c453/attachment.html>


More information about the vtkusers mailing list