00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkImageRegionExclusionConstIteratorWithIndex.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/09/30 15:24:40 $ 00007 Version: $Revision: 1.2 $ 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 __itkImageRegionExclusionConstIteratorWithIndex_h 00018 #define __itkImageRegionExclusionConstIteratorWithIndex_h 00019 00020 #include "itkImageConstIteratorWithIndex.h" 00021 00022 namespace itk 00023 { 00024 00095 template<typename TImage> 00096 class ImageRegionExclusionConstIteratorWithIndex : public ImageConstIteratorWithIndex<TImage> 00097 { 00098 public: 00100 typedef ImageRegionExclusionConstIteratorWithIndex Self; 00101 typedef ImageConstIteratorWithIndex<TImage> Superclass; 00102 00107 typedef typename TImage::IndexType IndexType; 00108 typedef typename TImage::SizeType SizeType; 00109 00114 typedef TImage ImageType; 00115 00119 typedef typename TImage::PixelContainer PixelContainer; 00120 typedef typename PixelContainer::Pointer PixelContainerPointer; 00121 00126 typedef typename TImage::RegionType RegionType; 00127 00129 ImageRegionExclusionConstIteratorWithIndex() : ImageConstIteratorWithIndex<TImage>() {} 00130 00133 ImageRegionExclusionConstIteratorWithIndex(TImage *ptr, 00134 const RegionType& region) 00135 : ImageConstIteratorWithIndex<TImage>(ptr, region) {} 00136 00143 ImageRegionExclusionConstIteratorWithIndex( const ImageConstIteratorWithIndex<TImage> &it) 00144 { this->ImageConstIteratorWithIndex<TImage>::operator=(it); } 00145 00153 Self & operator++(); 00154 00162 Self & operator--(); 00163 00164 00171 void SetExclusionRegion( const RegionType & region ); 00172 00173 private: 00174 00175 RegionType m_ExclusionRegion; 00176 00177 IndexType m_ExclusionBegin; 00178 IndexType m_ExclusionEnd; 00179 00180 }; 00181 00182 } // end namespace itk 00183 00184 #ifndef ITK_MANUAL_INSTANTIATION 00185 #include "itkImageRegionExclusionConstIteratorWithIndex.txx" 00186 #endif 00187 00188 #endif