00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkImageLinearConstIteratorWithIndex_h
00018 #define __itkImageLinearConstIteratorWithIndex_h
00019
00020 #include "itkImageConstIteratorWithIndex.h"
00021
00022 namespace itk
00023 {
00024
00101 template<typename TImage>
00102 class ITK_EXPORT ImageLinearConstIteratorWithIndex : public ImageConstIteratorWithIndex<TImage>
00103 {
00104 public:
00106 typedef ImageLinearConstIteratorWithIndex Self;
00107 typedef ImageConstIteratorWithIndex<TImage> Superclass;
00108
00113 typedef typename TImage::IndexType IndexType;
00114
00119 typedef typename TImage::RegionType RegionType;
00120
00125 typedef TImage ImageType;
00126
00130 typedef typename TImage::PixelContainer PixelContainer;
00131 typedef typename PixelContainer::Pointer PixelContainerPointer;
00132
00134 ImageLinearConstIteratorWithIndex() : ImageConstIteratorWithIndex<TImage>() {}
00135
00138 ImageLinearConstIteratorWithIndex(const ImageType *ptr,
00139 const RegionType& region)
00140 : ImageConstIteratorWithIndex<TImage>( ptr, region ) {}
00141
00148 ImageLinearConstIteratorWithIndex( const ImageConstIteratorWithIndex<TImage> &it)
00149 { this->ImageConstIteratorWithIndex<TImage>::operator=(it); }
00150
00153 inline void NextLine(void);
00154
00157 inline void PreviousLine(void);
00158
00161 void GoToBeginOfLine(void);
00162
00165 void GoToReverseBeginOfLine(void);
00166
00169 void GoToEndOfLine(void);
00170
00172 inline bool IsAtEndOfLine(void);
00173
00175 inline bool IsAtReverseEndOfLine(void);
00176
00178 inline void SetDirection(unsigned int direction) ;
00179
00182 Self & operator++();
00183
00186 Self & operator--();
00187
00188 private:
00189 unsigned long m_Jump;
00190 unsigned int m_Direction;
00191 };
00192
00193 }
00194
00195 #ifndef ITK_MANUAL_INSTANTIATION
00196 #include "itkImageLinearConstIteratorWithIndex.txx"
00197 #endif
00198
00199 #endif