17 #ifndef __itkImageConstIteratorWithIndex_h
18 #define __itkImageConstIteratorWithIndex_h
90 template<
typename TImage>
101 itkStaticConstMacro(ImageDimension,
unsigned int, TImage::ImageDimension);
149 const RegionType& region );
157 {
return ImageDimension;}
180 operator<=(
const Self &it)
const
200 operator>=(
const Self &it)
const
210 operator>(
const Self &it)
const
220 {
return m_PositionIndex; }
224 const RegionType& GetRegion()
const
231 m_Position = m_Image->GetBufferPointer() + m_Image->ComputeOffset( ind );
232 m_PositionIndex = ind;
237 {
return m_PixelAccessorFunctor.Get(*m_Position); }
243 {
return *m_Position; }
247 Self Begin(
void)
const;
250 void GoToBegin(
void);
254 Self End(
void)
const;
257 void GoToReverseBegin(
void);
260 bool IsAtReverseEnd(
void)
const
266 bool IsAtEnd(
void)
const
288 unsigned long m_OffsetTable[ ImageDimension + 1 ];
304 #define ITK_TEMPLATE_ImageConstIteratorWithIndex(_, EXPORT, x, y) namespace itk { \
305 _(1(class EXPORT ImageConstIteratorWithIndex< ITK_TEMPLATE_1 x >)) \
306 namespace Templates { typedef ImageConstIteratorWithIndex< ITK_TEMPLATE_1 x > ImageConstIteratorWithIndex##y; } \
310 #if ITK_TEMPLATE_EXPLICIT
311 # include "Templates/itkImageConstIteratorWithIndex+-.h"