This class implements the strategy to iterate with spatial restriction, the iteration occurs inside a vector of points. More...
#include <PositionIterator.h>
  
 Public Member Functions | |
| 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 PointSetIterator< T > &rhs) const | 
| bool | operator!= (const AbstractPositionIterator< T > &rhs) const | 
| Difference operator.  More... | |
| std::complex< T > | operator() (const unsigned int i) const | 
| Returns the complex value in current position (column, row, band) from iterator.  More... | |
| const std::vector< T > | operator* () const | 
| Returns a vector of the values in current position (column, row) from iterator.  More... | |
| void | operator++ () | 
| Advances to the next position.  More... | |
| void | operator-- () | 
| Returns to the previous position.  More... | |
| PointSetIterator & | operator= (const PointSetIterator &rhs) | 
| AbstractPositionIterator< T > & | operator= (const AbstractPositionIterator< T > &rhs) | 
| Assignment operator.  More... | |
| T | operator[] (const unsigned int i) const | 
| Returns the real value in current position (column, row, band) from iterator.  More... | |
| PointSetIterator () | |
| PointSetIterator (const te::rst::Raster *r, const std::vector< te::gm::Point * > p) | |
| Constructor.  More... | |
| PointSetIterator (const PointSetIterator &rhs) | |
| Copy constructor.  More... | |
| void | setEnd () | 
| Sets the iterator position to the end of the current band.  More... | |
| ~PointSetIterator () | |
Static Public Member Functions | |
| static PointSetIterator | begin (const te::rst::Raster *r, const std::vector< te::gm::Point * > p) | 
| Returns an iterator referring to the first value of the band.  More... | |
| static PointSetIterator | end (const te::rst::Raster *r, const std::vector< te::gm::Point * > p) | 
| Returns an iterator referring to after the end of the iterator.  More... | |
Protected Attributes | |
| int | m_currentpixelindex | 
| The index of the current pixel location.  More... | |
| double | m_operatorBrackets_value | 
| Used by the operator[] method.  More... | |
| std::complex< double > | m_operatorParenthesis_value | 
| Used by the operator() method.  More... | |
| std::vector< te::gm::Point * > | m_pixelsinpointset | 
| The spatial restriction to be applied in the iterator.  More... | |
| const te::rst::Raster * | m_raster | 
| The band from where to get the values.  More... | |
This class implements the strategy to iterate with spatial restriction, the iteration occurs inside a vector of points.
Definition at line 321 of file PositionIterator.h.
| te::rst::PointSetIterator< T >::PointSetIterator | ( | ) | 
Definition at line 1197 of file PositionIterator.h.
| te::rst::PointSetIterator< T >::PointSetIterator | ( | const te::rst::Raster * | r, | 
| const std::vector< te::gm::Point * > | p | ||
| ) | 
Constructor.
| b | The band to iterate. | 
| p | The vector of points where the iteration will navigate. | 
Definition at line 1204 of file PositionIterator.h.
References te::rst::Grid::geoToGrid(), te::rst::Raster::getExtent(), te::gm::GetGeomFromEnvelope(), te::rst::Raster::getGrid(), te::rst::Raster::getSRID(), te::gm::INTERSECTS, te::rst::PointSetIterator< T >::m_pixelsinpointset, te::rst::PointSetIterator< T >::m_raster, te::gm::SatisfySpatialRelation(), te::rst::PointSetIterator< T >::setEnd(), and TE_TR.
| te::rst::PointSetIterator< T >::PointSetIterator | ( | const PointSetIterator< T > & | rhs | ) | 
Copy constructor.
| rhs | The right-hand-side copy used to copy from. | 
Definition at line 1240 of file PositionIterator.h.
| te::rst::PointSetIterator< T >::~PointSetIterator | ( | ) | 
Definition at line 1247 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::m_pixelsinpointset.
      
  | 
  static | 
Returns an iterator referring to the first value of the band.
Definition at line 1331 of file PositionIterator.h.
      
  | 
  static | 
Returns an iterator referring to after the end of the iterator.
Definition at line 1336 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::setEnd().
      
  | 
  virtual | 
Returns the current column in iterator.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1285 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::m_currentpixelindex, and te::rst::PointSetIterator< T >::m_pixelsinpointset.
Referenced by te::rst::PointSetIterator< T >::operator()(), te::rst::PointSetIterator< T >::operator*(), and te::rst::PointSetIterator< T >::operator[]().
      
  | 
  virtual | 
Returns the current row in iterator.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1280 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::m_currentpixelindex, and te::rst::PointSetIterator< T >::m_pixelsinpointset.
Referenced by te::rst::PointSetIterator< T >::operator()(), te::rst::PointSetIterator< T >::operator*(), and te::rst::PointSetIterator< T >::operator[]().
| bool te::rst::PointSetIterator< T >::operator!= | ( | const PointSetIterator< T > & | rhs | ) | const | 
Definition at line 1345 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::m_currentpixelindex.
Referenced by te::rst::PointSetIterator< T >::operator!=().
      
  | 
  virtual | 
Difference operator.
| rhs | The right-hand side to compare. | 
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1351 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::operator!=().
      
  | 
  virtual | 
Returns the complex value in current position (column, row, band) from iterator.
| i | The band index. | 
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1273 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::getColumn(), te::rst::PointSetIterator< T >::getRow(), te::rst::Raster::getValue(), te::rst::PointSetIterator< T >::m_operatorParenthesis_value, and te::rst::PointSetIterator< T >::m_raster.
      
  | 
  virtual | 
Returns a vector of the values in current position (column, row) from iterator.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1252 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::getColumn(), te::rst::Raster::getNumberOfBands(), te::rst::PointSetIterator< T >::getRow(), te::rst::Raster::getValue(), and te::rst::PointSetIterator< T >::m_raster.
      
  | 
  virtual | 
Advances to the next position.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1290 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::m_currentpixelindex, te::rst::PointSetIterator< T >::m_pixelsinpointset, and te::rst::PointSetIterator< T >::setEnd().
      
  | 
  virtual | 
Returns to the previous position.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1298 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::m_currentpixelindex, and te::rst::PointSetIterator< T >::setEnd().
| te::rst::PointSetIterator< T > & te::rst::PointSetIterator< T >::operator= | ( | const PointSetIterator< T > & | rhs | ) | 
Definition at line 1306 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::m_currentpixelindex, te::rst::PointSetIterator< T >::m_pixelsinpointset, and te::rst::AbstractPositionIterator< T >::operator=().
Referenced by te::rst::PointSetIterator< T >::operator=().
      
  | 
  virtual | 
Assignment operator.
| rhs | The right-hand-side copy used to copy from. | 
Reimplemented from te::rst::AbstractPositionIterator< T >.
Definition at line 1320 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::operator=().
      
  | 
  virtual | 
Returns the real value in current position (column, row, band) from iterator.
| i | The band index. | 
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1266 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::getColumn(), te::rst::PointSetIterator< T >::getRow(), te::rst::Raster::getValue(), te::rst::PointSetIterator< T >::m_operatorBrackets_value, and te::rst::PointSetIterator< T >::m_raster.
      
  | 
  virtual | 
Sets the iterator position to the end of the current band.
| b | The band to retrieve the end information. | 
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1326 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::m_currentpixelindex.
Referenced by te::rst::PointSetIterator< T >::end(), te::rst::PointSetIterator< T >::operator++(), te::rst::PointSetIterator< T >::operator--(), and te::rst::PointSetIterator< T >::PointSetIterator().
      
  | 
  protected | 
The index of the current pixel location.
Definition at line 378 of file PositionIterator.h.
Referenced by te::rst::PointSetIterator< T >::getColumn(), te::rst::PointSetIterator< T >::getRow(), te::rst::PointSetIterator< T >::operator!=(), te::rst::PointSetIterator< T >::operator++(), te::rst::PointSetIterator< T >::operator--(), te::rst::PointSetIterator< T >::operator=(), and te::rst::PointSetIterator< T >::setEnd().
      
  | 
  mutableprotected | 
Used by the operator[] method.
Definition at line 379 of file PositionIterator.h.
Referenced by te::rst::PointSetIterator< T >::operator[]().
      
  | 
  mutableprotected | 
Used by the operator() method.
Definition at line 380 of file PositionIterator.h.
Referenced by te::rst::PointSetIterator< T >::operator()().
      
  | 
  protected | 
The spatial restriction to be applied in the iterator.
Definition at line 377 of file PositionIterator.h.
Referenced by te::rst::PointSetIterator< T >::getColumn(), te::rst::PointSetIterator< T >::getRow(), te::rst::PointSetIterator< T >::operator++(), te::rst::PointSetIterator< T >::operator=(), te::rst::PointSetIterator< T >::PointSetIterator(), and te::rst::PointSetIterator< T >::~PointSetIterator().
      
  | 
  protected | 
The band from where to get the values.
Definition at line 376 of file PositionIterator.h.
Referenced by te::rst::PointSetIterator< T >::operator()(), te::rst::PointSetIterator< T >::operator*(), te::rst::PointSetIterator< T >::operator[](), and te::rst::PointSetIterator< T >::PointSetIterator().