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

itkImageRegionConstIteratorWithIndex.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageRegionConstIteratorWithIndex.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/01/15 18:56:51 $
00007   Version:   $Revision: 1.4 $
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 __itkImageRegionConstIteratorWithIndex_h
00018 #define __itkImageRegionConstIteratorWithIndex_h
00019 
00020 #include "itkImageConstIteratorWithIndex.h"
00021 
00022 namespace itk
00023 {
00024 
00090 template<typename TImage>
00091 class ImageRegionConstIteratorWithIndex : public ImageConstIteratorWithIndex<TImage>
00092 {
00093 public:
00095   typedef ImageRegionConstIteratorWithIndex Self;
00096   typedef ImageConstIteratorWithIndex<TImage>  Superclass;
00097   
00102   typedef typename TImage::IndexType  IndexType;
00103 
00108   typedef TImage ImageType;
00109 
00113   typedef typename TImage::PixelContainer PixelContainer;
00114   typedef typename PixelContainer::Pointer PixelContainerPointer;
00115   
00120   typedef typename TImage::RegionType RegionType;
00121 
00123   ImageRegionConstIteratorWithIndex() : ImageConstIteratorWithIndex<TImage>() {}
00124   
00127   ImageRegionConstIteratorWithIndex( const TImage *ptr,
00128                                   const RegionType& region )
00129     : ImageConstIteratorWithIndex<TImage>(ptr, region) {}
00130 
00137   ImageRegionConstIteratorWithIndex( const ImageConstIteratorWithIndex<TImage> &it)
00138     { this->ImageConstIteratorWithIndex<TImage>::operator=(it); }
00139 
00147   Self & operator++();
00148 
00156   Self & operator--();
00157 };
00158 
00159 } // end namespace itk
00160 
00161 #ifndef ITK_MANUAL_INSTANTIATION
00162 #include "itkImageRegionConstIteratorWithIndex.txx"
00163 #endif
00164 
00165 #endif 
00166 

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