ITK
5.2.0
Insight Toolkit
|
#include <itkSliceIterator.h>
Public Member Functions | |
SliceIterator | Begin () |
SliceIterator | End () |
bool | operator!= (const SliceIterator &orig) |
TPixel & | operator* () |
SliceIterator | operator++ () |
SliceIterator | operator++ (int) |
bool | operator< (const SliceIterator &orig) |
bool | operator== (const SliceIterator &orig) const |
TPixel & | operator[] (OffsetValueType n) |
SliceIterator (TContainer *n, std::slice s) | |
TContainer * | m_ContainerPointer |
OffsetValueType | m_Pos |
std::slice | m_Slice |
TPixel & | Loc (OffsetValueType n) const |
A flexible iterator for itk containers(i.e. itk::Neighborhood) that support pixel access through operator[].
SliceIterator allows iteration along a std::slice through the container. A slice is a construct that defines a starting position, stride length (distance between adjacent elements), and a length.
Any container with operator[] is supported. Because it uses this interface the iterator is only as efficient as the implementation of a container's operator[] method.
References: Modelled after a slice iterator proposed by Bjarne Stroustrup in C++ Programming Language, Third Edition. Bjarne Stroustrup. Addison Wesley, Reading, MA. 1997.
Definition at line 48 of file itkSliceIterator.h.
|
inline |
Constructor.
Definition at line 52 of file itkSliceIterator.h.
|
inline |
Returns a SliceIterator that points to the beginning of the slice.
Definition at line 60 of file itkSliceIterator.h.
References itk::SliceIterator< TPixel, TContainer >::m_Pos.
|
inline |
Returns a SliceIterator that points to one past the end of the slice.
Definition at line 70 of file itkSliceIterator.h.
References itk::SliceIterator< TPixel, TContainer >::m_Pos, and itk::SliceIterator< TPixel, TContainer >::m_Slice.
|
inlineprivate |
Returns the value located at position n of the slice.
Definition at line 133 of file itkSliceIterator.h.
References itk::SliceIterator< TPixel, TContainer >::m_ContainerPointer, and itk::SliceIterator< TPixel, TContainer >::m_Slice.
Referenced by itk::SliceIterator< TPixel, TContainer >::operator*(), and itk::SliceIterator< TPixel, TContainer >::operator[]().
|
inline |
Returns the logical inverse of the boolean == of two slice iterators.
Definition at line 115 of file itkSliceIterator.h.
References itk::SliceIterator< TPixel, TContainer >::operator==().
|
inline |
Dereferences the iterator, returning the value that it points to.
Definition at line 102 of file itkSliceIterator.h.
References itk::SliceIterator< TPixel, TContainer >::Loc(), and itk::SliceIterator< TPixel, TContainer >::m_Pos.
|
inline |
Increments the iterator.
Definition at line 80 of file itkSliceIterator.h.
References itk::SliceIterator< TPixel, TContainer >::m_Pos.
|
inline |
Increments the iterator.
Definition at line 88 of file itkSliceIterator.h.
References itk::SliceIterator< TPixel, TContainer >::m_Pos.
|
inline |
Returns the boolean < of two slice iterator positions. Result is only true if the slice iterators have the same stride and start location.
Definition at line 124 of file itkSliceIterator.h.
References itk::SliceIterator< TPixel, TContainer >::m_Pos, and itk::SliceIterator< TPixel, TContainer >::m_Slice.
|
inline |
Returns the logical && of the boolean == of two slice iterator positions, stride, and start locations.
Definition at line 107 of file itkSliceIterator.h.
References itk::SliceIterator< TPixel, TContainer >::m_Pos, and itk::SliceIterator< TPixel, TContainer >::m_Slice.
Referenced by itk::SliceIterator< TPixel, TContainer >::operator!=().
|
inline |
Returns the element at position n of the slice. Sets the iterator to point to position n.
Definition at line 98 of file itkSliceIterator.h.
References itk::SliceIterator< TPixel, TContainer >::Loc(), and itk::SliceIterator< TPixel, TContainer >::m_Pos.
|
private |
Pointer to the container referenced by the slice iterator.
Definition at line 143 of file itkSliceIterator.h.
Referenced by itk::SliceIterator< TPixel, TContainer >::Loc().
|
private |
Current position within the slice.
Definition at line 146 of file itkSliceIterator.h.
Referenced by itk::SliceIterator< TPixel, TContainer >::Begin(), itk::SliceIterator< TPixel, TContainer >::End(), itk::SliceIterator< TPixel, TContainer >::operator*(), itk::SliceIterator< TPixel, TContainer >::operator++(), itk::SliceIterator< TPixel, TContainer >::operator<(), itk::SliceIterator< TPixel, TContainer >::operator==(), and itk::SliceIterator< TPixel, TContainer >::operator[]().
|
private |
Slice structure information.
Definition at line 149 of file itkSliceIterator.h.
Referenced by itk::SliceIterator< TPixel, TContainer >::End(), itk::SliceIterator< TPixel, TContainer >::Loc(), itk::SliceIterator< TPixel, TContainer >::operator<(), and itk::SliceIterator< TPixel, TContainer >::operator==().