18 #ifndef __itkImageRegionConstIterator_h
19 #define __itkImageRegionConstIterator_h
107 template<
typename TImage >
119 itkStaticConstMacro(ImageIteratorDimension,
unsigned int,
120 Superclass::ImageIteratorDimension);
145 m_SpanBeginOffset = 0;
155 m_SpanBeginOffset = this->m_BeginOffset;
156 m_SpanEndOffset = this->m_BeginOffset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
171 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
172 - ( ind[0] - this->m_Region.GetIndex()[0] );
173 m_SpanBeginOffset = m_SpanEndOffset
188 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
189 - ( ind[0] - this->m_Region.GetIndex()[0] );
190 m_SpanBeginOffset = m_SpanEndOffset
198 Superclass::GoToBegin();
201 m_SpanBeginOffset = this->m_BeginOffset;
202 m_SpanEndOffset = this->m_BeginOffset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
209 Superclass::GoToEnd();
212 m_SpanEndOffset = this->m_EndOffset;
213 m_SpanBeginOffset = m_SpanEndOffset -
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
219 itkLegacyMacro(Self Begin(
void)
const);
224 itkLegacyMacro(Self End(
void)
const);
231 Superclass::SetIndex(ind);
232 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
233 - ( ind[0] - this->m_Region.GetIndex()[0] );
234 m_SpanBeginOffset = m_SpanEndOffset -
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
248 if ( ++this->m_Offset >= m_SpanEndOffset )
265 if ( --this->m_Offset < m_SpanBeginOffset )
286 #define ITK_TEMPLATE_ImageRegionConstIterator(_, EXPORT, TypeX, TypeY) \
289 _( 1 ( class EXPORT ImageRegionConstIterator< ITK_TEMPLATE_1 TypeX > ) ) \
290 namespace Templates \
292 typedef ImageRegionConstIterator< ITK_TEMPLATE_1 TypeX > ImageRegionConstIterator##TypeY; \
296 #if ITK_TEMPLATE_EXPLICIT
297 #include "Templates/itkImageRegionConstIterator+-.h"
301 #include "itkImageRegionConstIterator.hxx"