18 #ifndef __itkImageScanlineConstIterator_h
19 #define __itkImageScanlineConstIterator_h
57 template<
typename TImage >
70 itkStaticConstMacro(ImageIteratorDimension,
unsigned int,
71 Superclass::ImageIteratorDimension);
97 m_SpanBeginOffset = 0;
107 m_SpanBeginOffset = this->m_BeginOffset;
108 m_SpanEndOffset = this->m_BeginOffset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
123 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
124 - ( ind[0] - this->m_Region.GetIndex()[0] );
125 m_SpanBeginOffset = m_SpanEndOffset
140 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
141 - ( ind[0] - this->m_Region.GetIndex()[0] );
142 m_SpanBeginOffset = m_SpanEndOffset
150 Superclass::GoToBegin();
153 m_SpanBeginOffset = this->m_BeginOffset;
154 m_SpanEndOffset = this->m_BeginOffset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
164 Superclass::GoToEnd();
167 m_SpanEndOffset = this->m_EndOffset;
168 m_SpanBeginOffset = m_SpanEndOffset -
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
178 void GoToBeginOfLine(
void)
180 this->
Offset = m_SpanBeginOffset;
191 void GoToEndOfLine(
void)
193 this->
Offset = m_SpanEndOffset;
198 inline bool IsAtEndOfLine(
void)
200 return this->m_Offset >= m_SpanEndOffset;
211 Superclass::SetIndex(ind);
212 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
213 - ( ind[0] - this->m_Region.GetIndex()[0] );
214 m_SpanBeginOffset = m_SpanEndOffset -
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
226 inline void NextLine(
void)
241 itkAssertInDebugAndIgnoreInReleaseMacro( !this->IsAtEndOfLine() );
261 #ifndef ITK_MANUAL_INSTANTIATION
262 #include "itkImageScanlineConstIterator.hxx"