18 #ifndef itkImageScanlineConstIterator_h
19 #define itkImageScanlineConstIterator_h
62 template <
typename TImage>
74 static constexpr
unsigned int ImageIteratorDimension = Superclass::ImageIteratorDimension;
100 m_SpanBeginOffset = 0;
110 m_SpanBeginOffset = this->m_BeginOffset;
111 m_SpanEndOffset = this->m_BeginOffset + static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
126 m_SpanEndOffset = this->m_Offset + static_cast<OffsetValueType>(this->m_Region.GetSize()[0]) -
127 (ind[0] - this->m_Region.GetIndex()[0]);
128 m_SpanBeginOffset = m_SpanEndOffset - static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
142 m_SpanEndOffset = this->m_Offset + static_cast<OffsetValueType>(this->m_Region.GetSize()[0]) -
143 (ind[0] - this->m_Region.GetIndex()[0]);
144 m_SpanBeginOffset = m_SpanEndOffset - static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
152 Superclass::GoToBegin();
155 m_SpanBeginOffset = this->m_BeginOffset;
156 m_SpanEndOffset = this->m_BeginOffset + static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
167 Superclass::GoToEnd();
170 m_SpanEndOffset = this->m_EndOffset;
171 m_SpanBeginOffset = m_SpanEndOffset - static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
184 this->m_Offset = m_SpanBeginOffset;
198 this->m_Offset = m_SpanEndOffset;
206 return this->m_Offset >= m_SpanEndOffset;
218 Superclass::SetIndex(ind);
219 m_SpanEndOffset = this->m_Offset + static_cast<OffsetValueType>(this->m_Region.GetSize()[0]) -
220 (ind[0] - this->m_Region.GetIndex()[0]);
221 m_SpanBeginOffset = m_SpanEndOffset - static_cast<OffsetValueType>(this->m_Region.GetSize()[0]);
250 itkAssertInDebugAndIgnoreInReleaseMacro(!this->IsAtEndOfLine());
262 itkAssertInDebugAndIgnoreInReleaseMacro(!this->IsAtEndOfLine());
281 #ifndef ITK_MANUAL_INSTANTIATION
282 # include "itkImageScanlineConstIterator.hxx"