34#ifndef vtkImagePointDataIterator_h
35#define vtkImagePointDataIterator_h
38#include "vtkImagingCoreModule.h"
68 this->Initialize(
image,
extent, stencil, algorithm, threadId);
90 return (this->Id == this->End);
99 return this->InStencil;
108 result[0] = this->Index[0];
109 result[1] = this->Index[1];
110 result[2] = this->Index[2];
135 return this->SpanEnd;
144 int *pixelIncrement=0);
153 int *pixelIncrement=0);
Superclass for all sources, filters, and sinks in VTK.
abstract superclass for arrays of numeric data
topologically and geometrically regular array of data
iterate over point data in an image.
void NextSpan()
Move the iterator to the beginning of the next span.
static void * GetVoidPointer(vtkImageData *image, vtkIdType i=0, int *pixelIncrement=0)
Get a void pointer and pixel increment for the given point Id.
vtkImagePointDataIterator(vtkImageData *image, const int extent[6]=0, vtkImageStencilData *stencil=0, vtkAlgorithm *algorithm=0, int threadId=0)
Create an iterator for the given image, with several options.
void Initialize(vtkImageData *image, const int extent[6]=0, vtkImageStencilData *stencil=0, vtkAlgorithm *algorithm=0, int threadId=0)
Initialize an iterator.
vtkIdType SliceEndIncrement
void ReportProgress()
Report the progress and do an abort check, for compatibility with existing image filters.
void SetSpanState(int idX)
Set all the state variables for the stencil span that includes idX.
vtkIdType GetId()
Get the point Id at the beginning of the current span.
bool IsAtEnd()
Test if the iterator has completed iterating over the entire extent.
static void * GetVoidPointer(vtkDataArray *array, vtkIdType i=0, int *pixelIncrement=0)
Get a void pointer and pixel increment for the given point Id.
vtkIdType RowEndIncrement
bool IsInStencil()
Check if the iterator is within the region specified by the stencil.
vtkIdType SpanEndId()
Get the end of the span.
vtkImagePointDataIterator()
Default constructor, its use must be followed by Initialize().
const int * GetIndex()
Get the index at the beginning of the current span.
void GetIndex(int result[3])
Get the index at the beginning of the current span.
int SpanSliceEndIncrement
efficient description of an image stencil