[vtkusers] Impossible to fit image in vtkImageViewer2?

David Gobbi david.gobbi at gmail.com
Tue Dec 1 16:12:17 EST 2009


On Tue, Dec 1, 2009 at 1:54 PM,  <itkvtk123 at gmx.net> wrote:
> Hey guys,
>
> I spent alot time reading the mailing list today and it seems that I am facing a problem which is not solvable at all:
> Fitting an image into the vtkImageViewer2 with parallel projection on!
>
> I can easily fit the image with parallel projection set to off, but when I set it to on, the image is always too large.
> The parallel scale parameter does not seem to have any influence, no matter if I set it to 0.5 or 20000, the result will always be the same.

Try calling ResetCamera() before calling ParallelProjectionOn() and
SetParallelScale().  It is possible that the camera is resetting the
scale when it does the first render.

    David



More information about the vtkusers mailing list