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 )
285 #ifndef ITK_MANUAL_INSTANTIATION
286 #include "itkImageRegionConstIterator.hxx"