00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkImageRegionConstIteratorWithIndex.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/08/16 18:04:33 $ 00007 Version: $Revision: 1.10 $ 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 __itkImageRegionConstIteratorWithIndex_h 00018 #define __itkImageRegionConstIteratorWithIndex_h 00019 00020 #include "itkImageConstIteratorWithIndex.h" 00021 00022 namespace itk 00023 { 00024 00122 template<typename TImage> 00123 class ITK_EXPORT ImageRegionConstIteratorWithIndex : public ImageConstIteratorWithIndex<TImage> 00124 { 00125 public: 00127 typedef ImageRegionConstIteratorWithIndex Self; 00128 typedef ImageConstIteratorWithIndex<TImage> Superclass; 00129 00134 typedef typename TImage::IndexType IndexType; 00135 00140 typedef TImage ImageType; 00141 00145 typedef typename TImage::PixelContainer PixelContainer; 00146 typedef typename PixelContainer::Pointer PixelContainerPointer; 00147 00152 typedef typename TImage::RegionType RegionType; 00153 00155 ImageRegionConstIteratorWithIndex() : ImageConstIteratorWithIndex<TImage>() {} 00156 00159 ImageRegionConstIteratorWithIndex( const TImage *ptr, 00160 const RegionType& region ) 00161 : ImageConstIteratorWithIndex<TImage>(ptr, region) {} 00162 00169 ImageRegionConstIteratorWithIndex( const ImageConstIteratorWithIndex<TImage> &it) 00170 { this->ImageConstIteratorWithIndex<TImage>::operator=(it); } 00171 00179 Self & operator++(); 00180 00188 Self & operator--(); 00189 }; 00190 00194 } // end namespace itk 00195 00196 #ifndef ITK_MANUAL_INSTANTIATION 00197 #include "itkImageRegionConstIteratorWithIndex.txx" 00198 #endif 00199 00200 #endif 00201