Orfeo Toolbox  3.16
otbPolyLineImageIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbPolyLineImageIterator_h
19 #define __otbPolyLineImageIterator_h
20 
21 #include "itkIndex.h"
22 #include "itkImage.h"
24 
25 namespace otb
26 {
40 template <class TImage, class TPath>
42  : public PolyLineImageConstIterator<TImage, TPath>
43 {
44 public:
48 
49  itkStaticConstMacro(ImageIteratorDimension, unsigned int,
50  TImage::ImageDimension);
51 
52  typedef typename TImage::IndexType IndexType;
53  typedef typename TImage::IndexValueType IndexValueType;
54  typedef typename TImage::OffsetType OffsetType;
55  typedef typename TImage::OffsetValueType OffsetValueType;
56  typedef typename TImage::SizeType SizeType;
57  typedef typename TImage::SizeValueType SizeValueType;
58  typedef typename TImage::RegionType RegionType;
59  typedef typename TImage::SpacingType SpacingType;
60  typedef typename TImage::PointType PointType;
61  typedef TImage ImageType;
62  typedef TPath PathType;
63  typedef typename PathType::VertexType VertexType;
64  typedef typename PathType::VertexListType VertexListType;
65  typedef typename VertexListType::ConstIterator VertexIteratorType;
67  typedef typename TImage::PixelContainer PixelContainer;
68  typedef typename PixelContainer::Pointer PixelContainerPointer;
69  typedef typename TImage::InternalPixelType InternalPixelType;
70  typedef typename TImage::PixelType PixelType;
71  typedef typename TImage::AccessorType AccessorType;
72 
75 
77  void Set(const PixelType& value)
78  {
79  this->m_InternalImageIterator.Set(value);
80  }
84  PixelType& Value(void)
85  {
86  return this->m_InternalImageIterator.Value();
87  }
88  Self & operator =(const Self& it)
89  {
90  this->Superclass::operator =(it);
91  return *this;
92  }
93 
95  PolyLineImageIterator(ImageType * imagePtr, PathType * pathPtr)
96  : Superclass(imagePtr, pathPtr) {};
99 };
100 } // End namespace otb
101 
102 #endif

Generated at Sun May 26 2013 00:44:26 for Orfeo Toolbox with doxygen 1.8.3.1