ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkImageRegionExclusionConstIteratorWithIndex_h 00019 #define __itkImageRegionExclusionConstIteratorWithIndex_h 00020 00021 #include "itkImageRegionConstIteratorWithIndex.h" 00022 00023 namespace itk 00024 { 00130 template< typename TImage > 00131 class ITK_EXPORT ImageRegionExclusionConstIteratorWithIndex: 00132 public ImageRegionConstIteratorWithIndex< TImage > 00133 { 00134 public: 00136 typedef ImageRegionExclusionConstIteratorWithIndex Self; 00137 typedef ImageRegionConstIteratorWithIndex< TImage > Superclass; 00138 00140 typedef typename Superclass::IndexType IndexType; 00141 typedef typename Superclass::SizeType SizeType; 00142 typedef typename Superclass::OffsetType OffsetType; 00143 typedef typename Superclass::RegionType RegionType; 00144 typedef typename Superclass::ImageType ImageType; 00145 typedef typename Superclass::PixelContainer PixelContainer; 00146 typedef typename Superclass::PixelContainerPointer PixelContainerPointer; 00147 typedef typename Superclass::InternalPixelType InternalPixelType; 00148 typedef typename Superclass::PixelType PixelType; 00149 typedef typename Superclass::AccessorType AccessorType; 00150 00152 ImageRegionExclusionConstIteratorWithIndex(); 00153 00156 ImageRegionExclusionConstIteratorWithIndex(const ImageType *ptr, 00157 const RegionType & region); 00158 00166 ImageRegionExclusionConstIteratorWithIndex(const Superclass & it); 00167 00175 Self & operator++(); 00176 00184 Self & operator--(); 00185 00192 void SetExclusionRegion(const RegionType & region); 00193 00198 void SetExclusionRegionToInsetRegion(); 00199 00201 void GoToBegin(void); 00202 00204 void GoToReverseBegin(void); 00205 00206 private: 00207 00208 RegionType m_ExclusionRegion; 00209 00210 IndexType m_ExclusionBegin; 00211 IndexType m_ExclusionEnd; 00212 }; 00213 } // end namespace itk 00214 00215 #ifndef ITK_MANUAL_INSTANTIATION 00216 #include "itkImageRegionExclusionConstIteratorWithIndex.hxx" 00217 #endif 00218 00219 #endif 00220