[vtkusers] ImageViewer2 extent problem
Mark Wyszomierski
markww at gmail.com
Fri Sep 9 16:01:00 EDT 2005
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> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050909/82c76bbe/attachment.htm>
More information about the vtkusers
mailing list