Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkImageRegionReverseIterator.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkImageRegionReverseIterator.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:12 $ 00007 Version: $Revision: 1.13 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkImageRegionReverseIterator_h 00018 #define __itkImageRegionReverseIterator_h 00019 00020 #include "itkImageRegionReverseConstIterator.h" 00021 #include "itkImageConstIterator.h" 00022 00023 namespace itk 00024 { 00025 00044 template<typename TImage> 00045 class ITK_EXPORT ImageRegionReverseIterator : public ImageRegionReverseConstIterator<TImage> 00046 { 00047 public: 00049 typedef ImageRegionReverseIterator 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 ImageRegionReverseIterator(); 00070 00073 ImageRegionReverseIterator(ImageType *ptr, const RegionType& region); 00074 00081 ImageRegionReverseIterator( const ImageConstIterator<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 *const_cast<InternalPixelType *>((m_Buffer+m_Offset)); } 00092 00096 Self Begin(void) const; 00097 00101 Self End(void) const; 00102 00103 00104 protected: 00107 ImageRegionReverseIterator( const ImageRegionReverseConstIterator<TImage> &it); 00108 Self & operator=(const ImageRegionReverseConstIterator<TImage> & it); 00109 00110 00111 }; 00112 00113 } // end namespace itk 00114 00115 #ifndef ITK_MANUAL_INSTANTIATION 00116 #include "itkImageRegionReverseIterator.txx" 00117 #endif 00118 00119 #endif 00120 00121 00122

Generated at Sat Mar 31 02:22:24 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000