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... | |
| virtual bool | operator!= (const AbstractPositionIterator &rhs) const | 
| Difference operator.  More... | |
| bool | operator!= (const PointSetIterator< T > &rhs) const | 
| 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) | 
| T | operator[] (const unsigned int i) const | 
| Returns the 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... | |
| 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 292 of file PositionIterator.h.
| te::rst::PointSetIterator< T >::PointSetIterator | ( | ) | 
Definition at line 928 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 935 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::AbstractPositionIterator< T >::m_raster, te::gm::SatisfySpatialRelation(), and te::rst::PointSetIterator< T >::setEnd().
| te::rst::PointSetIterator< T >::PointSetIterator | ( | const PointSetIterator< T > & | rhs | ) | 
Copy constructor.
| rhs | The right-hand-side copy used to copy from. | 
Definition at line 964 of file PositionIterator.h.
| te::rst::PointSetIterator< T >::~PointSetIterator | ( | ) | 
Definition at line 971 of file PositionIterator.h.
      
  | 
  static | 
Returns an iterator referring to the first value of the band.
Definition at line 1043 of file PositionIterator.h.
Referenced by te::qt::widgets::createScatter(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::ClassifierEMStrategy::execute(), te::rst::Band::getMaxValue(), and te::rst::Band::getMinValue().
      
  | 
  static | 
Returns an iterator referring to after the end of the iterator.
Definition at line 1048 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::setEnd().
Referenced by te::qt::widgets::createScatter(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::ClassifierEMStrategy::execute(), te::rst::Band::getMaxValue(), and te::rst::Band::getMinValue().
      
  | 
  virtual | 
Returns the current column in iterator.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1004 of file PositionIterator.h.
Referenced by te::qt::widgets::createScatter(), te::rst::Band::getMaxValue(), and te::rst::Band::getMinValue().
      
  | 
  virtual | 
Returns the current row in iterator.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 999 of file PositionIterator.h.
Referenced by te::qt::widgets::createScatter(), te::rst::Band::getMaxValue(), and te::rst::Band::getMinValue().
      
  | 
  virtualinherited | 
Difference operator.
| rhs | The right-hand side to compare. | 
Definition at line 373 of file PositionIterator.h.
References te::rst::AbstractPositionIterator< T >::m_raster.
| bool te::rst::PointSetIterator< T >::operator!= | ( | const PointSetIterator< T > & | rhs | ) | const | 
Definition at line 1057 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::m_currentpixelindex.
      
  | 
  virtual | 
Returns a vector of the values in current position (column, row) from iterator.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 976 of file PositionIterator.h.
      
  | 
  virtual | 
Advances to the next position.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1009 of file PositionIterator.h.
      
  | 
  virtual | 
Returns to the previous position.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 1017 of file PositionIterator.h.
| te::rst::PointSetIterator< T > & te::rst::PointSetIterator< T >::operator= | ( | const PointSetIterator< T > & | rhs | ) | 
Definition at line 1025 of file PositionIterator.h.
References te::rst::PointSetIterator< T >::m_currentpixelindex, te::rst::PointSetIterator< T >::m_pixelsinpointset, and te::rst::AbstractPositionIterator< T >::operator=().
      
  | 
  virtual | 
Returns the value in current position (column, row, band) from iterator.
| i | The band index. | 
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 990 of file PositionIterator.h.
      
  | 
  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 1038 of file PositionIterator.h.
Referenced by te::rst::PointSetIterator< T >::end(), and te::rst::PointSetIterator< T >::PointSetIterator().
      
  | 
  protected | 
The index of the current pixel location.
Definition at line 342 of file PositionIterator.h.
Referenced by te::rst::PointSetIterator< T >::operator!=(), and te::rst::PointSetIterator< T >::operator=().
      
  | 
  protected | 
The spatial restriction to be applied in the iterator.
Definition at line 341 of file PositionIterator.h.
Referenced by te::rst::PointSetIterator< T >::operator=(), and te::rst::PointSetIterator< T >::PointSetIterator().
      
  | 
  protectedinherited | 
The band from where to get the values.
Definition at line 132 of file PositionIterator.h.
Referenced by te::rst::LineIterator< T >::LineIterator(), te::rst::AbstractPositionIterator< T >::operator!=(), te::rst::AbstractPositionIterator< T >::operator=(), and te::rst::PointSetIterator< T >::PointSetIterator().