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

itkImageReverseIterator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageReverseIterator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005-08-14 02:53:07 $
00007   Version:   $Revision: 1.17 $
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 __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_PixelAccessorFunctor.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);
00118 
00119 
00120 };
00121 
00122 } // end namespace itk
00123 
00124 #ifndef ITK_MANUAL_INSTANTIATION
00125 #include "itkImageReverseIterator.txx"
00126 #endif
00127 
00128 #endif 
00129 
00130 
00131 
00132 

Generated at Mon Apr 14 13:04:53 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000