Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Utilities
ITK
Code
Common
itkImageReverseIterator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Insight Segmentation & Registration Toolkit
4
Module: $RCSfile: itkImageReverseIterator.h,v $
5
Language: C++
6
Date: $Date: 2008-10-18 21:13:25 $
7
Version: $Revision: 1.18 $
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 __itkImageReverseIterator_h
18
#define __itkImageReverseIterator_h
19
20
#include "
itkImageRegionReverseConstIterator.h
"
21
#include "
itkImageIteratorWithIndex.h
"
22
23
namespace
itk
24
{
25
62
template
<
typename
TImage>
63
class
ITK_EXPORT
ImageReverseIterator
:
public
ImageRegionReverseConstIterator
<TImage>
64
{
65
public
:
67
typedef
ImageReverseIterator
Self
;
68
typedef
ImageRegionReverseConstIterator<TImage>
Superclass
;
69
71
typedef
typename
Superclass::IndexType
IndexType
;
72
typedef
typename
Superclass::IndexValueType
IndexValueType
;
73
typedef
typename
Superclass::SizeType
SizeType
;
74
typedef
typename
Superclass::SizeValueType
SizeValueType
;
75
typedef
typename
Superclass::OffsetType
OffsetType
;
76
typedef
typename
Superclass::OffsetValueType
OffsetValueType
;
77
typedef
typename
Superclass::RegionType
RegionType
;
78
typedef
typename
Superclass::ImageType
ImageType
;
79
typedef
typename
Superclass::PixelContainer
PixelContainer
;
80
typedef
typename
Superclass::PixelContainerPointer
PixelContainerPointer
;
81
typedef
typename
Superclass::InternalPixelType
InternalPixelType
;
82
typedef
typename
Superclass::PixelType
PixelType
;
83
typedef
typename
Superclass::AccessorType
AccessorType
;
84
85
87
ImageReverseIterator
();
88
91
ImageReverseIterator
(
ImageType
*ptr,
const
RegionType
& region);
92
99
ImageReverseIterator
(
const
ImageIteratorWithIndex<TImage>
&it);
100
102
void
Set(
const
PixelType
& value)
const
103
{ this->m_PixelAccessorFunctor.Set(* const_cast<InternalPixelType *>((this->m_Buffer+this->m_Offset)),value); }
104
108
PixelType
& Value(
void
)
109
{
return
*(this->m_Buffer+this->m_Offset); }
110
111
112
protected
:
115
ImageReverseIterator
(
const
ImageRegionReverseConstIterator<TImage>
&it);
116
Self & operator=(
const
ImageRegionReverseConstIterator<TImage>
& it);
117
118
119
};
120
121
}
// end namespace itk
122
123
#ifndef ITK_MANUAL_INSTANTIATION
124
#include "
itkImageReverseIterator.txx
"
125
#endif
126
127
#endif
Generated at Sat Feb 2 2013 23:44:36 for
Orfeo Toolbox
with
doxygen 1.8.1.1