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

itkImageRegionIteratorWithIndex.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageRegionIteratorWithIndex.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/23 12:35:43 $
00007   Version:   $Revision: 1.5 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkImageRegionIteratorWithIndex_h
00018 #define __itkImageRegionIteratorWithIndex_h
00019 
00020 #include "itkImageRegionConstIteratorWithIndex.h"
00021 #include "itkImageIteratorWithIndex.h"
00022 
00023 namespace itk
00024 {
00025 
00041 template<typename TImage>
00042 class ImageRegionIteratorWithIndex : public ImageRegionConstIteratorWithIndex<TImage>
00043 {
00044 public:
00046   typedef ImageRegionIteratorWithIndex Self;
00047   typedef ImageRegionConstIteratorWithIndex<TImage>  Superclass;
00048   
00050   typedef typename Superclass::IndexType              IndexType;
00051   typedef typename Superclass::IndexValueType         IndexValueType;
00052   typedef typename Superclass::SizeType               SizeType;
00053   typedef typename Superclass::SizeValueType          SizeValueType;
00054   typedef typename Superclass::OffsetType             OffsetType;
00055   typedef typename Superclass::OffsetValueType        OffsetValueType;
00056   typedef typename Superclass::RegionType             RegionType;
00057   typedef typename Superclass::ImageType              ImageType;
00058   typedef typename Superclass::PixelContainer         PixelContainer;
00059   typedef typename Superclass::PixelContainerPointer  PixelContainerPointer;
00060   typedef typename Superclass::InternalPixelType      InternalPixelType;
00061   typedef typename Superclass::PixelType              PixelType;
00062   typedef typename Superclass::AccessorType           AccessorType;
00063 
00064   
00066   ImageRegionIteratorWithIndex();
00067   
00070   ImageRegionIteratorWithIndex(TImage *ptr, const RegionType& region);
00071 
00078   ImageRegionIteratorWithIndex( const ImageIteratorWithIndex<TImage> &it);
00079 
00081   void Set( const PixelType & value) const  
00082     { m_PixelAccessor.Set(*(const_cast<InternalPixelType *>(m_Position)),value); }
00083 
00087   PixelType & Value(void) 
00088     { return *(const_cast<InternalPixelType *>(m_Position)); }
00089  
00090 protected:
00093   ImageRegionIteratorWithIndex( const ImageRegionConstIteratorWithIndex<TImage> &it);
00094   Self &operator=(const ImageRegionConstIteratorWithIndex<TImage> & it);
00095   
00096 };
00097 
00098 } // end namespace itk
00099 
00100 #ifndef ITK_MANUAL_INSTANTIATION
00101 #include "itkImageRegionIteratorWithIndex.txx"
00102 #endif
00103 
00104 #endif 

Generated at Wed Mar 12 01:13:01 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000