#include <itkImageSliceConstIteratorWithIndex.h>
Inheritance diagram for itk::ImageSliceConstIteratorWithIndex< TImage >:
Public Types | |
typedef ImageSliceConstIteratorWithIndex | Self |
typedef ImageConstIteratorWithIndex< TImage > | Superclass |
typedef TImage::IndexType | IndexType |
typedef TImage | ImageType |
typedef TImage::RegionType | RegionType |
typedef TImage::PixelContainer | PixelContainer |
typedef PixelContainer::Pointer | PixelContainerPointer |
Public Member Functions | |
ImageSliceConstIteratorWithIndex () | |
ImageSliceConstIteratorWithIndex (const ImageConstIteratorWithIndex< TImage > &it) | |
void | NextLine (void) |
void | NextSlice (void) |
void | PreviousLine (void) |
void | PreviousSlice (void) |
bool | IsAtEndOfLine (void) |
bool | IsAtEndOfSlice (void) |
bool | IsAtReverseEndOfLine (void) |
bool | IsAtReverseEndOfSlice (void) |
void | SetFirstDirection (unsigned int direction) |
void | SetSecondDirection (unsigned int direction) |
Self & | operator++ () |
Self & | operator-- () |
ImageSliceConstIteratorWithIndex (const ImageType *ptr, const RegionType ®ion) |
This is the typical use of this iterator in a loop:
ImageSliceConstIteratorWithIndex<ImageType> it( image, image->GetRequestedRegion() ); it.SetFirstDirection(2); it.SetSecondDirection(0); it.GoToBegin(); while( !it.IsAtEnd() ) { while( !it.IsAtEndOfSlice() ) { while( !it.IsAtEndOfLine() ) { value = it.Get(); // it.Set() doesn't exist in the Const Iterator ++it; } it.NextLine(); } it.NextSlice(); }
Common/itkImageSliceIterator.cxx
Definition at line 59 of file itkImageSliceConstIteratorWithIndex.h.
|
Image typedef support. While this was already typdef'ed in the superclass it needs to be redone here for this subclass to compile properly with gcc. Note that we have to rescope Index back to itk::Index to that is it not confused with ImageIterator::Index. Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 76 of file itkImageSliceConstIteratorWithIndex.h. Referenced by itk::ImageSliceConstIteratorWithIndex< TImage >::ImageSliceConstIteratorWithIndex(). |
|
Index typedef support. While this was already typdef'ed in the superclass it needs to be redone here for this subclass to compile properly with gcc. Note that we have to rescope Index back to itk::Index to that is it not confused with ImageIterator::Index. Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 70 of file itkImageSliceConstIteratorWithIndex.h. |
|
PixelContainer typedef support. Used to refer to the container for the pixel data. While this was already typdef'ed in the superclass it needs to be redone here for this subclass to compile properly with gcc. Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 84 of file itkImageSliceConstIteratorWithIndex.h. |
|
Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 85 of file itkImageSliceConstIteratorWithIndex.h. |
|
Region typedef support. Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 79 of file itkImageSliceConstIteratorWithIndex.h. Referenced by itk::ImageSliceConstIteratorWithIndex< TImage >::ImageSliceConstIteratorWithIndex(). |
|
Standard class typedefs. Reimplemented from itk::ImageConstIteratorWithIndex< TImage >.
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 63 of file itkImageSliceConstIteratorWithIndex.h. |
|
Reimplemented in itk::ImageSliceIteratorWithIndex< TImage >. Definition at line 64 of file itkImageSliceConstIteratorWithIndex.h. |
|
Default constructor. Needed since we provide a cast constructor. Definition at line 88 of file itkImageSliceConstIteratorWithIndex.h. |
|
Constructor establishes an iterator to walk a particular image and a particular region of that image. Definition at line 92 of file itkImageSliceConstIteratorWithIndex.h. References itk::ImageSliceConstIteratorWithIndex< TImage >::ImageType, and itk::ImageSliceConstIteratorWithIndex< TImage >::RegionType. |
|
Constructor that can be used to cast from an ImageIterator to an ImageSliceConstIteratorWithIndex. Many routines return an ImageIterator but for a particular task, you may want an ImageSliceConstIteratorWithIndex. Rather than provide overloaded APIs that return different types of Iterators, itk returns ImageIterators and uses constructors to cast from an ImageIterator to a ImageSliceConstIteratorWithIndex. Definition at line 107 of file itkImageSliceConstIteratorWithIndex.h. |
|
Test if the index is at the end of line |
|
Test if the index is at the end of the slice |
|
Test if the index is at the begin of line |
|
Test if the index is at the begin of the slice |
|
Go to the next line |
|
Go to the next slice
|
|
Increment (prefix) the selected dimension. No bounds checking is performed.
|
|
Decrement (prefix) the selected dimension. No bounds checking is performed.
|
|
Go to the next line
|
|
Go to the next slice
|
|
Set the fastest direction of movement |
|
Set the second fastest direction of movement |