Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Utilities
ITK
Code
Common
itkImageSliceIteratorWithIndex.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Insight Segmentation & Registration Toolkit
4
Module: $RCSfile: itkImageSliceIteratorWithIndex.h,v $
5
Language: C++
6
Date: $Date: 2009-05-19 13:47:44 $
7
Version: $Revision: 1.12 $
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 __itkImageSliceIteratorWithIndex_h
18
#define __itkImageSliceIteratorWithIndex_h
19
20
#include "
itkImageSliceConstIteratorWithIndex.h
"
21
#include "
itkImageIteratorWithIndex.h
"
22
23
namespace
itk
24
{
25
67
template
<
typename
TImage>
68
class
ITK_EXPORT
ImageSliceIteratorWithIndex
:
public
ImageSliceConstIteratorWithIndex
<TImage>
69
{
70
public
:
72
typedef
ImageSliceIteratorWithIndex
Self
;
73
typedef
ImageSliceConstIteratorWithIndex<TImage>
Superclass
;
74
76
typedef
typename
Superclass::IndexType
IndexType
;
77
typedef
typename
Superclass::IndexValueType
IndexValueType
;
78
typedef
typename
Superclass::SizeType
SizeType
;
79
typedef
typename
Superclass::SizeValueType
SizeValueType
;
80
typedef
typename
Superclass::OffsetType
OffsetType
;
81
typedef
typename
Superclass::OffsetValueType
OffsetValueType
;
82
typedef
typename
Superclass::RegionType
RegionType
;
83
typedef
typename
Superclass::ImageType
ImageType
;
84
typedef
typename
Superclass::PixelContainer
PixelContainer
;
85
typedef
typename
Superclass::PixelContainerPointer
PixelContainerPointer
;
86
typedef
typename
Superclass::InternalPixelType
InternalPixelType
;
87
typedef
typename
Superclass::PixelType
PixelType
;
88
typedef
typename
Superclass::AccessorType
AccessorType
;
89
90
92
ImageSliceIteratorWithIndex
();
93
96
ImageSliceIteratorWithIndex
(
ImageType
*ptr,
const
RegionType
& region);
97
104
ImageSliceIteratorWithIndex
(
const
ImageIteratorWithIndex<TImage>
&it);
105
107
void
Set(
const
PixelType
& value)
const
108
{ this->m_PixelAccessorFunctor.Set(*(const_cast<InternalPixelType *>(this->m_Position)),value); }
109
113
PixelType
& Value(
void
)
114
{
return
*(
const_cast<
InternalPixelType
*
>
(this->m_Position)); }
115
116
protected
:
119
ImageSliceIteratorWithIndex
(
const
ImageSliceConstIteratorWithIndex<TImage>
&it);
120
Self & operator=(
const
ImageSliceConstIteratorWithIndex<TImage>
& it);
121
122
123
};
124
125
}
// end namespace itk
126
127
#ifndef ITK_MANUAL_INSTANTIATION
128
#include "
itkImageSliceIteratorWithIndex.txx
"
129
#endif
130
131
#endif
Generated at Sat Feb 2 2013 23:44:48 for
Orfeo Toolbox
with
doxygen 1.8.1.1