[vtkusers] Adjusting camera to visualize the whole volume

Kyle Cronan kyle at cronangraf.com
Fri Jan 28 20:59:40 EST 2011


You can just call ResetCamera() on the renderer.  If you have a
particular orientation you want to start off with then call
SetPosition and SetViewUp on the camera first.

-Kyle

2011/1/28 Vinicius Rogério Araujo Silva <vinicius.ras at gmail.com>:
> Hi all,
> I've wrote an application to visualize a volume which is loaded from some
> files on the user's disk..
> The user is able to select a file to load the volume and display it.
> The user can also select another file to be loaded, creating another volume
> which replaces the one that he/she is currently visualizing (the previous
> volume is discarded from the visualization).
> When the user loads a volume to replace the previous one, I need the camera
> to adjust itself in a way that the user can visualize the whole volume.
> How can I do this in a simple way using VTK?
> Thanks in advance.
> _______________________________________________
> 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
>
>



-- 
Cronan Graf Corporation
2215 S. St. Louis Ave
Chicago, IL  60623
(312) 504-3279



More information about the vtkusers mailing list