vtkImageIterator< DType > Class Template Reference

#include <vtkImageIterator.h>

Inheritance diagram for vtkImageIterator< DType >:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<class DType>
class vtkImageIterator< DType >

a simple image iterator

This is a simple image iterator that can be used to iterate over an image. This should be used internally by Filter writers.

See also:
vtkImageData vtkImageProgressIterator
Tests:
vtkImageIterator (Tests)

Definition at line 35 of file vtkImageIterator.h.


Public Types

typedef DType * SpanIterator

Public Member Functions

 vtkImageIterator ()
 vtkImageIterator (vtkImageData *id, int *ext)
void Initialize (vtkImageData *id, int *ext)
void NextSpan ()
SpanIterator BeginSpan ()
SpanIterator EndSpan ()
int IsAtEnd ()

Protected Attributes

DType * Pointer
DType * SpanEndPointer
DType * SliceEndPointer
DType * EndPointer
vtkIdType Increments [3]
vtkIdType ContinuousIncrements [3]

Member Typedef Documentation

template<class DType>
typedef DType* vtkImageIterator< DType >::SpanIterator

Definition at line 38 of file vtkImageIterator.h.


Constructor & Destructor Documentation

template<class DType>
vtkImageIterator< DType >::vtkImageIterator (  ) 

Default empty constructor, usefull only when creating an array of iterators You need to call Initialize afterward

template<class DType>
vtkImageIterator< DType >::vtkImageIterator ( vtkImageData id,
int *  ext 
)

Create an image iterator for a given image data and a given extent


Member Function Documentation

template<class DType>
void vtkImageIterator< DType >::Initialize ( vtkImageData id,
int *  ext 
)

Initialize the image iterator for a given image data, and given extent

template<class DType>
void vtkImageIterator< DType >::NextSpan (  ) 

Move the iterator to the next span

Reimplemented in vtkImageProgressIterator< DType >.

template<class DType>
SpanIterator vtkImageIterator< DType >::BeginSpan (  )  [inline]

Return an iterator (pointer) for the span

Definition at line 56 of file vtkImageIterator.h.

template<class DType>
SpanIterator vtkImageIterator< DType >::EndSpan (  )  [inline]

Return an iterator (pointer) for the end of the span

Definition at line 64 of file vtkImageIterator.h.

template<class DType>
int vtkImageIterator< DType >::IsAtEnd (  )  [inline]

Test if the end of the extent has been reached

Reimplemented in vtkImageProgressIterator< DType >.

Definition at line 72 of file vtkImageIterator.h.


Member Data Documentation

template<class DType>
DType* vtkImageIterator< DType >::Pointer [protected]

Definition at line 79 of file vtkImageIterator.h.

template<class DType>
DType* vtkImageIterator< DType >::SpanEndPointer [protected]

Definition at line 80 of file vtkImageIterator.h.

template<class DType>
DType* vtkImageIterator< DType >::SliceEndPointer [protected]

Definition at line 81 of file vtkImageIterator.h.

template<class DType>
DType* vtkImageIterator< DType >::EndPointer [protected]

Definition at line 82 of file vtkImageIterator.h.

template<class DType>
vtkIdType vtkImageIterator< DType >::Increments[3] [protected]

Definition at line 83 of file vtkImageIterator.h.

template<class DType>
vtkIdType vtkImageIterator< DType >::ContinuousIncrements[3] [protected]

Definition at line 84 of file vtkImageIterator.h.


The documentation for this class was generated from the following file:

Generated on Wed Jun 3 19:09:49 2009 for VTK by  doxygen 1.5.6