[vtkusers] Why is vtkImageIterator EndOfSlicePointer not available?

Georg Ziegler gziegler at mail.zserv.tuwien.ac.at
Thu Mar 17 09:08:45 EDT 2011


Do you think this change will make it into vtk5.8?

Regards,
Georg

Am 15.03.2011 um 18:39 schrieb David Gobbi:

> Hi Georg,
> 
> I agree with you that vtkImageIterator should provide a method so that
> you know when you are at the end of a slice.  I have been thinking
> about adding an IsAtEndOfSlice() method.
> 
> - David
> 
> 
> On Mon, Mar 14, 2011 at 10:27 AM, Georg Ziegler
> <gziegler at mail.zserv.tuwien.ac.at> wrote:
>> Hello!
>> I'm developing an Image Filter that processes each z-slice of a vtkImageData
>> differently.
>> I would like to use vtkImageIterator but it cannot tell me when the end of a
>> slice is reached (only end of span).
>> Only BeginSpan() and EndSpan() are public.
>> 
>> Is there a reason why there is no EndSlice() function?
>> The class has a protected reference to SliceEndPointer so I guess it would
>> be simple to make it available.
>> 
>> I know there is the workaround of counting spans and/or pixels, which I have
>> used so far, but it seems cumbersome.
>> 
>> Regards,
>> Georg
>> _______________________________________________
>> 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
>> 




More information about the vtkusers mailing list