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
00044 template<typename TImage>
00045 class ITK_EXPORT ImageReverseIterator : public ImageRegionReverseConstIterator<TImage>
00046 {
00047 public:
00049 typedef ImageReverseIterator Self;
00050 typedef ImageRegionReverseConstIterator<TImage> Superclass;
00051
00053 typedef typename Superclass::IndexType IndexType;
00054 typedef typename Superclass::IndexValueType IndexValueType;
00055 typedef typename Superclass::SizeType SizeType;
00056 typedef typename Superclass::SizeValueType SizeValueType;
00057 typedef typename Superclass::OffsetType OffsetType;
00058 typedef typename Superclass::OffsetValueType OffsetValueType;
00059 typedef typename Superclass::RegionType RegionType;
00060 typedef typename Superclass::ImageType ImageType;
00061 typedef typename Superclass::PixelContainer PixelContainer;
00062 typedef typename Superclass::PixelContainerPointer PixelContainerPointer;
00063 typedef typename Superclass::InternalPixelType InternalPixelType;
00064 typedef typename Superclass::PixelType PixelType;
00065 typedef typename Superclass::AccessorType AccessorType;
00066
00067
00069 ImageReverseIterator();
00070
00073 ImageReverseIterator(ImageType *ptr, const RegionType& region);
00074
00081 ImageReverseIterator( const ImageIteratorWithIndex<TImage> &it);
00082
00084 void Set( const PixelType & value) const
00085 { m_PixelAccessor.Set(* const_cast<InternalPixelType *>((m_Buffer+m_Offset)),value); }
00086
00090 PixelType & Value(void)
00091 { return *(m_Buffer+m_Offset); }
00092
00093
00094 protected:
00097 ImageReverseIterator( const ImageRegionReverseConstIterator<TImage> &it);
00098 Self & operator=(const ImageRegionReverseConstIterator<TImage> & it);
00099
00100
00101 };
00102
00103 }
00104
00105 #ifndef ITK_MANUAL_INSTANTIATION
00106 #include "itkImageReverseIterator.txx"
00107 #endif
00108
00109 #endif
00110
00111
00112