ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkLineIterator.h>
Public Types | |
typedef Superclass::AccessorType | AccessorType |
typedef Superclass::ImageType | ImageType |
typedef Superclass::IndexType | IndexType |
typedef Superclass::InternalPixelType | InternalPixelType |
typedef Superclass::OffsetType | OffsetType |
typedef Superclass::PixelContainer | PixelContainer |
typedef Superclass::PixelContainerPointer | PixelContainerPointer |
typedef Superclass::PixelType | PixelType |
typedef Superclass::RegionType | RegionType |
typedef LineIterator | Self |
typedef Superclass::SizeType | SizeType |
typedef LineConstIterator< TImage > | Superclass |
Public Types inherited from itk::LineConstIterator< TImage > | |
typedef TImage::PointType | PointType |
typedef TImage::SpacingType | SpacingType |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
LineIterator (ImageType *imagePtr, const IndexType &firstIndex, const IndexType &lastIndex) | |
Self & | operator= (const Self &it) |
const PixelType & | Value (void) |
virtual | ~LineIterator () |
void | Set (const PixelType &value) |
Public Member Functions inherited from itk::LineConstIterator< TImage > | |
const PixelType | Get (void) const |
const IndexType | GetIndex () |
void | GoToBegin () |
bool | IsAtEnd () |
LineConstIterator (const ImageType *imagePtr, const IndexType &firstIndex, const IndexType &lastIndex) | |
void | operator++ () |
virtual | ~LineConstIterator () |
Static Public Attributes | |
static const unsigned int | ImageIteratorDimension = TImage::ImageDimension |
Static Public Attributes inherited from itk::LineConstIterator< TImage > |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::LineConstIterator< TImage > | |
static unsigned int | GetImageIteratorDimension () |
Protected Attributes inherited from itk::LineConstIterator< TImage > | |
IndexType | m_AccumulateError |
IndexType | m_CurrentImageIndex |
IndexType | m_EndIndex |
ImageType::ConstWeakPointer | m_Image |
IndexType | m_IncrementError |
bool | m_IsAtEnd |
IndexType | m_LastIndex |
unsigned int | m_MainDirection |
IndexType | m_MaximalError |
IndexType | m_OverflowIncrement |
IndexType | m_ReduceErrorAfterIncrement |
RegionType | m_Region |
IndexType | m_StartIndex |
An iterator that walks a Bresenham line through an ND image with write access to pixels.
LineIterator is an iterator that walks a Bresenham line through an image. The iterator is constructed similar to other image iterators, except instead of specifying a region to traverse, you specify two indices. The interval specified by the two indices is closed. So, a line iterator specified with the same start and end index will visit exactly one pixel.
Definition at line 56 of file itkLineIterator.h.
typedef Superclass::AccessorType itk::LineIterator< TImage >::AccessorType |
Accessor type that convert data between internal and external representations.
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 83 of file itkLineIterator.h.
typedef Superclass::ImageType itk::LineIterator< TImage >::ImageType |
Image typedef support.
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 78 of file itkLineIterator.h.
typedef Superclass::IndexType itk::LineIterator< TImage >::IndexType |
Inherit types from the superclass
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 74 of file itkLineIterator.h.
typedef Superclass::InternalPixelType itk::LineIterator< TImage >::InternalPixelType |
Internal Pixel Type
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 81 of file itkLineIterator.h.
typedef Superclass::OffsetType itk::LineIterator< TImage >::OffsetType |
Offset typedef support.
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 75 of file itkLineIterator.h.
typedef Superclass::PixelContainer itk::LineIterator< TImage >::PixelContainer |
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::LineConstIterator< TImage >.
Definition at line 79 of file itkLineIterator.h.
typedef Superclass::PixelContainerPointer itk::LineIterator< TImage >::PixelContainerPointer |
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 80 of file itkLineIterator.h.
typedef Superclass::PixelType itk::LineIterator< TImage >::PixelType |
External Pixel Type
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 82 of file itkLineIterator.h.
typedef Superclass::RegionType itk::LineIterator< TImage >::RegionType |
Region typedef support
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 77 of file itkLineIterator.h.
typedef LineIterator itk::LineIterator< TImage >::Self |
Standard class typedefs.
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 61 of file itkLineIterator.h.
typedef Superclass::SizeType itk::LineIterator< TImage >::SizeType |
Size typedef support.
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 76 of file itkLineIterator.h.
typedef LineConstIterator< TImage > itk::LineIterator< TImage >::Superclass |
Define the superclass
Definition at line 71 of file itkLineIterator.h.
itk::LineIterator< TImage >::LineIterator | ( | ImageType * | imagePtr, |
const IndexType & | firstIndex, | ||
const IndexType & | lastIndex | ||
) |
Constructor establishes an iterator to walk along a path
|
inlinevirtual |
Default Destructor.
Definition at line 117 of file itkLineIterator.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::LineConstIterator< TImage >.
Self& itk::LineIterator< TImage >::operator= | ( | const Self & | it | ) |
operator= is provided to make sure the handle to the image is properly reference counted.
Reimplemented from itk::LineConstIterator< TImage >.
|
inline |
Set the pixel value
Definition at line 89 of file itkLineIterator.h.
|
inline |
Return a reference to the pixel. This method will provide the fastest access to pixel data, but it will NOT support ImageAdaptors.
Definition at line 103 of file itkLineIterator.h.
|
static |
Dimension of the image that the iterator walks. This constant is needed so that functions that are templated over image iterator type (as opposed to being templated over pixel type and dimension) can have compile time access to the dimension of the image that the iterator walks.
Reimplemented from itk::LineConstIterator< TImage >.
Definition at line 68 of file itkLineIterator.h.