[vtkusers] Update() vs. UpdateWholeExtent()

David Gobbi david.gobbi at gmail.com
Fri Jan 28 16:33:37 EST 2011


Hi Chris,

The SetUpdateExtent() method is a vtkImageData method, not a
vtkImageReslice method.  I.e. you would call
reslice->GetOutput()->SetUpdateExtent(extent)
before calling Update().  This method has existed in vtkImageData
since at least VTK 2.0.

But since you have things working, you shouldn't worry about it.
The SetUpdateExtent() method is really only meant to be used
by the pipeline, application developers usually shouldn't call it
themselves.

 - David


On Fri, Jan 28, 2011 at 2:22 PM, chrisyeshi <chrisyeshi at gmail.com> wrote:

>
> First, thank you very much!
>
> I finally got them to change from Update() to UpdateWholeExtent(), and now
> everything works fine.
> The reason it happens is that we are using an old version of vtk. There is
> no SetUpdateExtent(), only SetOuputExtent(). So when SetOutputExtent() is
> called the first time, it effectively sets the update extent and whole
> extent to the same value. Then when SetOutputExtent() is called the second
> time with a smaller extent, it only sets the whole extent. As a result, the
> extent error occurs when Update() is called.
>
> Switching to UpdateWholeExtent() solves the problem. Thank you again!
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Update-vs-UpdateWholeExtent-tp3355298p3362156.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110128/d155f75b/attachment.htm>


More information about the vtkusers mailing list