Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Utilities
ITK
Code
Common
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
20
#include "
itkImageRegionConstIterator.h
"
21
22
namespace
itk
23
{
24
71
template
<
typename
TImage>
72
class
ITK_EXPORT
ImageRegionIterator
:
public
ImageRegionConstIterator
<TImage>
73
{
74
public
:
76
typedef
ImageRegionIterator
Self
;
77
typedef
ImageRegionConstIterator<TImage>
Superclass
;
78
80
typedef
typename
Superclass::IndexType
IndexType
;
81
typedef
typename
Superclass::IndexValueType
IndexValueType
;
82
typedef
typename
Superclass::SizeType
SizeType
;
83
typedef
typename
Superclass::SizeValueType
SizeValueType
;
84
typedef
typename
Superclass::OffsetType
OffsetType
;
85
typedef
typename
Superclass::OffsetValueType
OffsetValueType
;
86
typedef
typename
Superclass::RegionType
RegionType
;
87
typedef
typename
Superclass::ImageType
ImageType
;
88
typedef
typename
Superclass::PixelContainer
PixelContainer
;
89
typedef
typename
Superclass::PixelContainerPointer
PixelContainerPointer
;
90
typedef
typename
Superclass::InternalPixelType
InternalPixelType
;
91
typedef
typename
Superclass::PixelType
PixelType
;
92
typedef
typename
Superclass::AccessorType
AccessorType
;
93
94
96
ImageRegionIterator
();
97
100
ImageRegionIterator
(
ImageType
*ptr,
const
RegionType
& region);
101
108
ImageRegionIterator
(
const
ImageIterator<TImage>
&it);
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
:
137
ImageRegionIterator
(
const
ImageRegionConstIterator<TImage>
&it);
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