00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkImageReverseIterator_h
00018 #define __itkImageReverseIterator_h
00019
00020 #include "itkImageRegionReverseConstIterator.h"
00021 #include "itkImageIteratorWithIndex.h"
00022
00023 namespace itk
00024 {
00025
00062 template<typename TImage>
00063 class ITK_EXPORT ImageReverseIterator : public ImageRegionReverseConstIterator<TImage>
00064 {
00065 public:
00067 typedef ImageReverseIterator Self;
00068 typedef ImageRegionReverseConstIterator<TImage> Superclass;
00069
00071 typedef typename Superclass::IndexType IndexType;
00072 typedef typename Superclass::IndexValueType IndexValueType;
00073 typedef typename Superclass::SizeType SizeType;
00074 typedef typename Superclass::SizeValueType SizeValueType;
00075 typedef typename Superclass::OffsetType OffsetType;
00076 typedef typename Superclass::OffsetValueType OffsetValueType;
00077 typedef typename Superclass::RegionType RegionType;
00078 typedef typename Superclass::ImageType ImageType;
00079 typedef typename Superclass::PixelContainer PixelContainer;
00080 typedef typename Superclass::PixelContainerPointer PixelContainerPointer;
00081 typedef typename Superclass::InternalPixelType InternalPixelType;
00082 typedef typename Superclass::PixelType PixelType;
00083 typedef typename Superclass::AccessorType AccessorType;
00084
00085
00087 ImageReverseIterator();
00088
00091 ImageReverseIterator(ImageType *ptr, const RegionType& region);
00092
00099 ImageReverseIterator( const ImageIteratorWithIndex<TImage> &it);
00100
00102 void Set( const PixelType & value) const
00103 { this->m_PixelAccessor.Set(* const_cast<InternalPixelType *>((this->m_Buffer+this->m_Offset)),value); }
00104
00108 PixelType & Value(void)
00109 { return *(this->m_Buffer+this->m_Offset); }
00110
00111
00112 protected:
00115 ImageReverseIterator( const ImageRegionReverseConstIterator<TImage> &it);
00116 Self & operator=(const ImageRegionReverseConstIterator<TImage> & it);
00117
00118
00119 };
00120
00121 }
00122
00123 #ifndef ITK_MANUAL_INSTANTIATION
00124 #include "itkImageReverseIterator.txx"
00125 #endif
00126
00127 #endif
00128
00129
00130