Orfeo Toolbox  3.16
itkImageRegionIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkImageRegionIterator.h,v $
5  Language: C++
6  Date: $Date: 2008-10-18 21:13:25 $
7  Version: $Revision: 1.41 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef __itkImageRegionIterator_h
18 #define __itkImageRegionIterator_h
19 
21 
22 namespace itk
23 {
24 
71 template<typename TImage>
73 {
74 public:
78 
80  typedef typename Superclass::IndexType IndexType;
82  typedef typename Superclass::SizeType SizeType;
87  typedef typename Superclass::ImageType ImageType;
91  typedef typename Superclass::PixelType PixelType;
93 
94 
97 
100  ImageRegionIterator(ImageType *ptr, const RegionType& region);
101 
109 
111  void Set( const PixelType & value) const
112  {
113  this->m_PixelAccessorFunctor.Set(*(const_cast<InternalPixelType *>(
114  this->m_Buffer+this->m_Offset)),value);
115  }
116 
120  PixelType & Value(void)
121  { return *(const_cast<InternalPixelType *>(this->m_Buffer+this->m_Offset)); }
122 
126  Self Begin(void) const;
127 
131  Self End(void) const;
132 
133 
134 protected:
138  Self & operator=(const ImageRegionConstIterator<TImage> & it);
139 
140 
141 };
142 
143 } // end namespace itk
144 
145 // Define instantiation macro for this template.
146 #define ITK_TEMPLATE_ImageRegionIterator(_, EXPORT, x, y) namespace itk { \
147  _(1(class EXPORT ImageRegionIterator< ITK_TEMPLATE_1 x >)) \
148  namespace Templates { typedef ImageRegionIterator< ITK_TEMPLATE_1 x > ImageRegionIterator##y; } \
149  }
150 
151 
152 #if ITK_TEMPLATE_EXPLICIT
153 # include "Templates/itkImageRegionIterator+-.h"
154 #endif
155 
156 #if ITK_TEMPLATE_TXX
157 # include "itkImageRegionIterator.txx"
158 #endif
159 
160 #endif

Generated at Sat Feb 2 2013 23:44:07 for Orfeo Toolbox with doxygen 1.8.1.1