VTK
9.2.20230610
|
an image region iterator More...
#include <vtkImageStencilIterator.h>
Public Member Functions | |
bool | IsAtEnd () |
Test if the iterator has completed iterating over the entire extent. More... | |
DType * | BeginSpan () |
Return a pointer to the beginning of the current span. More... | |
DType * | EndSpan () |
Return a pointer to the end of the current span. More... | |
vtkImageStencilIterator () | |
Default constructor, its use must be followed by Initialize(). More... | |
vtkImageStencilIterator (vtkImageData *image, vtkImageStencilData *stencil=nullptr, const int extent[6]=nullptr, vtkAlgorithm *algorithm=nullptr, int threadId=0) | |
Create an iterator for the given image, with several options. More... | |
void | Initialize (vtkImageData *image, vtkImageStencilData *stencil=nullptr, const int extent[6]=nullptr, vtkAlgorithm *algorithm=nullptr, int threadId=0) |
Initialize an iterator. More... | |
void | NextSpan () |
Move the iterator to the beginning of the next span. More... | |
![]() | |
vtkImagePointDataIterator () | |
Default constructor, its use must be followed by Initialize(). More... | |
vtkImagePointDataIterator (vtkImageData *image, const int extent[6]=nullptr, vtkImageStencilData *stencil=nullptr, vtkAlgorithm *algorithm=nullptr, int threadId=0) | |
Create an iterator for the given image, with several options. More... | |
void | Initialize (vtkImageData *image, const int extent[6]=nullptr, vtkImageStencilData *stencil=nullptr, vtkAlgorithm *algorithm=nullptr, int threadId=0) |
Initialize an iterator. More... | |
void | NextSpan () |
Move the iterator to the beginning of the next span. More... | |
bool | IsAtEnd () |
Test if the iterator has completed iterating over the entire extent. More... | |
bool | IsInStencil () |
Check if the iterator is within the region specified by the stencil. More... | |
const int * | GetIndex () |
Get the index at the beginning of the current span. More... | |
vtkIdType | GetId () |
Get the point Id at the beginning of the current span. More... | |
vtkIdType | SpanEndId () |
Get the end of the span. More... | |
void | GetIndex (int result[3]) |
Get the index at the beginning of the current span. More... | |
Protected Member Functions | |
void | UpdatePointer () |
Update the pointer (called automatically when a new span begins). More... | |
![]() | |
void | SetSpanState (int idX) |
Set all the state variables for the stencil span that includes idX. More... | |
void | ReportProgress () |
Report the progress and do an abort check, for compatibility with existing image filters. More... | |
Protected Attributes | |
int | Increment |
DType * | BasePointer |
DType * | Pointer |
DType * | SpanEndPointer |
![]() | |
vtkIdType | Id |
vtkIdType | SpanEnd |
vtkIdType | RowEnd |
vtkIdType | SliceEnd |
vtkIdType | End |
vtkIdType | RowIncrement |
vtkIdType | SliceIncrement |
vtkIdType | RowEndIncrement |
vtkIdType | SliceEndIncrement |
int | Extent [6] |
int | Index [3] |
int | StartY |
bool | HasStencil |
bool | InStencil |
int | SpanSliceEndIncrement |
int | SpanSliceIncrement |
int | SpanIndex |
int * | SpanCountPointer |
int ** | SpanListPointer |
vtkAlgorithm * | Algorithm |
vtkIdType | Count |
vtkIdType | Target |
int | ThreadId |
Additional Inherited Members | |
![]() | |
static void * | GetVoidPointer (vtkImageData *image, vtkIdType i=0, int *pixelIncrement=nullptr) |
Get a void pointer and pixel increment for the given point Id. More... | |
static void * | GetVoidPointer (vtkDataArray *array, vtkIdType i=0, int *pixelIncrement=nullptr) |
Get a void pointer and pixel increment for the given point Id. More... | |
an image region iterator
This is an image iterator that can be used to iterate over a region of an image.
Definition at line 36 of file vtkImageStencilIterator.h.
|
inline |
Default constructor, its use must be followed by Initialize().
Definition at line 43 of file vtkImageStencilIterator.h.
|
inline |
Create an iterator for the given image, with several options.
If a stencil is provided, then the iterator's IsInStencil() method reports whether each span is inside the stencil. If an extent is provided, it iterates over the extent and ignores the rest of the image (the provided extent must be within the image extent). If a pointer to the algorithm is provided and threadId is set to zero, then progress events will provided for the algorithm.
Definition at line 62 of file vtkImageStencilIterator.h.
|
inline |
Initialize an iterator.
See constructor for more details.
Definition at line 76 of file vtkImageStencilIterator.h.
|
inline |
Move the iterator to the beginning of the next span.
A span is a contiguous region of the image over which nothing but the point Id and the X index changes.
Definition at line 92 of file vtkImageStencilIterator.h.
|
inline |
Test if the iterator has completed iterating over the entire extent.
Definition at line 102 of file vtkImageStencilIterator.h.
|
inline |
Return a pointer to the beginning of the current span.
Definition at line 107 of file vtkImageStencilIterator.h.
|
inline |
Return a pointer to the end of the current span.
Definition at line 112 of file vtkImageStencilIterator.h.
|
inlineprotected |
Update the pointer (called automatically when a new span begins).
Definition at line 119 of file vtkImageStencilIterator.h.
|
protected |
Definition at line 127 of file vtkImageStencilIterator.h.
|
protected |
Definition at line 130 of file vtkImageStencilIterator.h.
|
protected |
Definition at line 131 of file vtkImageStencilIterator.h.
|
protected |
Definition at line 132 of file vtkImageStencilIterator.h.