[vtkusers] MIP rendering from coronal view instead of axial view

Kevin H. Hobbs hobbsk at ohiou.edu
Tue Jan 20 11:20:33 EST 2009


On Thu, 2009-01-15 at 17:13 +0100, Stéphane CALANDE wrote:

> I suppose I have to change the settings of the Camera.
> 
> Then I tried :
> 
> vtkCamera *camera = renderer->GetActiveCamera();
> 
> camera->SetViewUp(*****)
> 
> camera->SetEyeAngle(*****)
> 
> camera->SetViewAngle(*****)
> 
> etc...
> 
> 
> but I didn't find which one allow to set a coronal view of the MIP.

I always do:
    camera->SetFocalPoint ( center );
    camera->SetViewUp   ( view_up );
    camera->SetPosition ( view_pos );
    camera->ComputeViewPlaneNormal();
    renderer->SetActiveCamera(camera);

I've attached the program I pulled those from.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: movie_views_Npoly_1image.cxx
Type: text/x-c++src
Size: 14303 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090120/8a1a7500/attachment.cxx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090120/8a1a7500/attachment.pgp>


More information about the vtkusers mailing list