This class implements an abstract iterator to "navigate" over a single band. More...
#include <BandIterator.h>
  
 Public Member Functions | |
| AbstractBandIterator () | |
| Constructor.  More... | |
| AbstractBandIterator (const te::rst::Band *b) | |
| Constructor.  More... | |
| AbstractBandIterator (const AbstractBandIterator &rhs) | |
| Copy constructor.  More... | |
| unsigned int | getColumn () const | 
| Returns the current column in iterator.  More... | |
| unsigned int | getRow () const | 
| Returns the current row in iterator.  More... | |
| bool | operator!= (const AbstractBandIterator &rhs) const | 
| Difference operator.  More... | |
| virtual const T | operator* () const =0 | 
| Returns the value in current position (column, row) from iterator.  More... | |
| virtual void | operator++ () | 
| Advances to the next position.  More... | |
| void | operator-- () | 
| Returns to the previous position.  More... | |
| AbstractBandIterator & | operator= (const AbstractBandIterator &rhs) | 
| Assignment operator.  More... | |
| virtual void | replaceBlock ()=0 | 
| Replaces the current bufferized block values.  More... | |
| ~AbstractBandIterator () | |
| Destructor.  More... | |
Protected Attributes | |
| T * | m_blk | 
| Internal block.  More... | |
| int | m_blkh | 
| The internal block height.  More... | |
| int | m_blksize | 
| The block size of the band.  More... | |
| int | m_blkw | 
| The internal block width.  More... | |
| int | m_blkx | 
| The position in X of the current block.  More... | |
| int | m_blky | 
| The position in Y of the current block.  More... | |
| te::rst::GetBufferValueFPtr | m_getBuff | 
| A pointer to a function that helps to extract a double or complex value from a specific buffer data type (char, int16, int32, float, ...).  More... | |
| te::rst::GetBufferValueFPtr | m_getBuffI | 
| A pointer to a function that helps to extract the imaginary part value from a specific buffer data type (cint16, cint32, cfloat, cdouble).  More... | |
| int | m_i | 
| The actual position inside the block.  More... | |
| int | m_lastblksize | 
| The number of pixels inside the last block.  More... | |
| int | m_nblocksx | 
| The number of blocks in X direction.  More... | |
| int | m_nblocksy | 
| The number of blocks in Y direction.  More... | |
| int | m_npxlsblk | 
| The maximum number of pixels inside the block.  More... | |
| te::rst::SetBufferValueFPtr | m_setBuff | 
| A pointer to a function that helps to insert a double or complex value into a specific buffer data type (char, int16, int32, float, ...).  More... | |
| te::rst::SetBufferValueFPtr | m_setBuffI | 
| A pointer to a function that helps to insert the imaginary part value into a specific buffer data type (cint16, cint32, cfloat, cdouble).  More... | |
This class implements an abstract iterator to "navigate" over a single band.
We provide an efficient method to obtain all values in a raster, without regard to their locations. The implementation navigates through the blocks of the image.
Definition at line 56 of file BandIterator.h.
| te::rst::AbstractBandIterator< T >::AbstractBandIterator | ( | ) | 
Constructor.
Definition at line 321 of file BandIterator.h.
| te::rst::AbstractBandIterator< T >::AbstractBandIterator | ( | const te::rst::Band * | b | ) | 
Constructor.
| b | The band to iterate. | 
Definition at line 340 of file BandIterator.h.
References te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rst::Band::getRaster(), te::rst::BandProperty::getType(), te::rst::AbstractBandIterator< T >::m_blk, te::rst::AbstractBandIterator< T >::m_blksize, te::rst::AbstractBandIterator< T >::m_getBuff, te::rst::AbstractBandIterator< T >::m_getBuffI, te::rst::AbstractBandIterator< T >::m_lastblksize, te::rst::AbstractBandIterator< T >::m_nblocksx, te::rst::AbstractBandIterator< T >::m_nblocksy, te::rst::AbstractBandIterator< T >::m_npxlsblk, te::rst::AbstractBandIterator< T >::m_setBuff, te::rst::AbstractBandIterator< T >::m_setBuffI, and te::rst::SetBlockFunctions().
| te::rst::AbstractBandIterator< T >::AbstractBandIterator | ( | const AbstractBandIterator< T > & | rhs | ) | 
Copy constructor.
| rhs | The right-hand-side copy used to copy from. | 
Definition at line 363 of file BandIterator.h.
References te::rst::AbstractBandIterator< T >::m_blk, and te::rst::AbstractBandIterator< T >::m_blksize.
| te::rst::AbstractBandIterator< T >::~AbstractBandIterator | ( | ) | 
Destructor.
Definition at line 383 of file BandIterator.h.
| unsigned int te::rst::AbstractBandIterator< T >::getColumn | ( | ) | const | 
Returns the current column in iterator.
Definition at line 394 of file BandIterator.h.
Referenced by te::rst::Copy().
| unsigned int te::rst::AbstractBandIterator< T >::getRow | ( | ) | const | 
Returns the current row in iterator.
Definition at line 389 of file BandIterator.h.
Referenced by te::rst::Copy().
| bool te::rst::AbstractBandIterator< T >::operator!= | ( | const AbstractBandIterator< T > & | rhs | ) | const | 
Difference operator.
| rhs | The right-hand side to compare. | 
Definition at line 477 of file BandIterator.h.
References te::rst::AbstractBandIterator< T >::m_blky.
      
  | 
  pure virtual | 
Returns the value in current position (column, row) from iterator.
Implemented in te::rst::ConstBandIterator< T >, and te::rst::BandIterator< T >.
      
  | 
  virtual | 
Advances to the next position.
Reimplemented in te::rst::BandIteratorWithMask< T >.
Definition at line 399 of file BandIterator.h.
Referenced by te::rst::BandIteratorWithMask< T >::operator++().
| void te::rst::AbstractBandIterator< T >::operator-- | ( | ) | 
Returns to the previous position.
Definition at line 428 of file BandIterator.h.
Referenced by te::rst::BandIteratorWithMask< T >::operator--().
| te::rst::AbstractBandIterator< T > & te::rst::AbstractBandIterator< T >::operator= | ( | const AbstractBandIterator< T > & | rhs | ) | 
Assignment operator.
| rhs | The right-hand-side copy used to copy from. | 
Definition at line 456 of file BandIterator.h.
References te::rst::AbstractBandIterator< T >::m_blkh, te::rst::AbstractBandIterator< T >::m_blksize, te::rst::AbstractBandIterator< T >::m_blkw, te::rst::AbstractBandIterator< T >::m_blkx, te::rst::AbstractBandIterator< T >::m_blky, te::rst::AbstractBandIterator< T >::m_i, te::rst::AbstractBandIterator< T >::m_lastblksize, te::rst::AbstractBandIterator< T >::m_nblocksx, te::rst::AbstractBandIterator< T >::m_nblocksy, and te::rst::AbstractBandIterator< T >::m_npxlsblk.
Referenced by te::rst::BandIterator< T >::operator=(), and te::rst::ConstBandIterator< T >::operator=().
      
  | 
  pure virtual | 
Replaces the current bufferized block values.
Implemented in te::rst::ConstBandIterator< T >, and te::rst::BandIterator< T >.
      
  | 
  protected | 
Internal block.
Definition at line 128 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator().
      
  | 
  protected | 
The internal block height.
Definition at line 119 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::operator=().
      
  | 
  protected | 
The block size of the band.
Definition at line 127 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), te::rst::BandIterator< T >::BandIterator(), te::rst::ConstBandIterator< T >::ConstBandIterator(), and te::rst::AbstractBandIterator< T >::operator=().
      
  | 
  protected | 
The internal block width.
Definition at line 118 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::operator=().
      
  | 
  protected | 
The position in X of the current block.
Definition at line 124 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::operator=().
      
  | 
  protected | 
The position in Y of the current block.
Definition at line 125 of file BandIterator.h.
Referenced by te::rst::BandIterator< T >::end(), te::rst::ConstBandIterator< T >::end(), te::rst::BandIteratorWithMask< T >::end(), te::rst::AbstractBandIterator< T >::operator!=(), and te::rst::AbstractBandIterator< T >::operator=().
      
  | 
  protected | 
A pointer to a function that helps to extract a double or complex value from a specific buffer data type (char, int16, int32, float, ...).
Definition at line 129 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator().
      
  | 
  protected | 
A pointer to a function that helps to extract the imaginary part value from a specific buffer data type (cint16, cint32, cfloat, cdouble).
Definition at line 130 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator().
      
  | 
  protected | 
The actual position inside the block.
Definition at line 123 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::operator=().
      
  | 
  protected | 
The number of pixels inside the last block.
Definition at line 126 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), and te::rst::AbstractBandIterator< T >::operator=().
      
  | 
  protected | 
The number of blocks in X direction.
Definition at line 121 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), and te::rst::AbstractBandIterator< T >::operator=().
      
  | 
  protected | 
The number of blocks in Y direction.
Definition at line 122 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), and te::rst::AbstractBandIterator< T >::operator=().
      
  | 
  protected | 
The maximum number of pixels inside the block.
Definition at line 120 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), and te::rst::AbstractBandIterator< T >::operator=().
      
  | 
  protected | 
A pointer to a function that helps to insert a double or complex value into a specific buffer data type (char, int16, int32, float, ...).
Definition at line 131 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator().
      
  | 
  protected | 
A pointer to a function that helps to insert the imaginary part value into a specific buffer data type (cint16, cint32, cfloat, cdouble).
Definition at line 132 of file BandIterator.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator().