[vtkusers] ImageViewer2 extent problem

David Borland borland at cs.unc.edu
Fri Sep 9 17:06:26 EDT 2005


Thanks.  That did the trick.  Need to make sure UpdateInformaton is 
called on the input image also.

David

Mark Wyszomierski wrote:

> I had this problem too, vtkImageViewer2 is just a wrapper around a few 
> classes that put it all together, the one you need to alter is the 
> underlying image actor object. So get it, call SetDisplayExtent() with 
> the new image dimensions on the image actor, and reset your camera. 
> This worked for me. Goodluck,
>  
> Mark
>
>  
> On 9/9/05, *David Borland* <borland at cs.unc.edu 
> <mailto:borland at cs.unc.edu>> wrote:
>
>     I'm using ImageViewer2 to view some images.  For right now, I have a
>     very simple pipeline:
>
>     vtkImageReader->vtkImageViewer2
>
>     It works fine when initially loading an image.  However, when
>     reading a
>     new image, it does not work correctly.  If the new image is larger
>     than
>     the old image, the image does not look correct, and when it is
>     smaller
>     than the old image, the image is again incorrect, and there is an
>     'Update extent does not lie within whole extent' error.
>
>     It appears that the new whole extent is being correctly propagated
>     through the pipeline, but the update extent is not.  I've noticed
>     similar problems on the mailing list, but have not been able to find a
>     solution.  Can anyone help me out?  Thanks,
>
>     David
>     _______________________________________________
>     This is the private VTK discussion list.
>     Please keep messages on-topic. Check the FAQ at:
>     http://www.vtk.org/Wiki/VTK_FAQ
>     Follow this link to subscribe/unsubscribe:
>     http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list