This class implements the strategy to iterate with spatial restriction, the iteration occurs inside a line. 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... | |
| LineIterator () | |
| LineIterator (const te::rst::Raster *r, const te::gm::Line *l) | |
| Constructor.  More... | |
| LineIterator (const LineIterator &rhs) | |
| Copy constructor.  More... | |
| virtual bool | operator!= (const AbstractPositionIterator &rhs) const | 
| Difference operator.  More... | |
| bool | operator!= (const LineIterator< 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... | |
| LineIterator & | operator= (const LineIterator &rhs) | 
| T | operator[] (const unsigned int i) const | 
| Returns the value in current position (column, row, band) from iterator.  More... | |
| void | setEnd () | 
| Sets the iterator position to the end of the current band.  More... | |
| ~LineIterator () | |
Static Public Member Functions | |
| static LineIterator | begin (const te::rst::Raster *r, const te::gm::Line *l) | 
| Returns an iterator referring to the first value of the band.  More... | |
| static LineIterator | end (const te::rst::Raster *r, const te::gm::Line *l) | 
| 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... | |
| const te::gm::Line * | m_line | 
| The spatial restriction to be applied in the iterator.  More... | |
| std::vector< te::gm::Point * > | m_pixelsinline | 
| A vector of pixel locations that intersects the line.  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 line.
Definition at line 229 of file PositionIterator.h.
| te::rst::LineIterator< T >::LineIterator | ( | ) | 
Definition at line 766 of file PositionIterator.h.
| te::rst::LineIterator< T >::LineIterator | ( | const te::rst::Raster * | r, | 
| const te::gm::Line * | l | ||
| ) | 
Constructor.
| b | The band to iterate. | 
| l | The line from where the iteration will navigate. | 
Definition at line 774 of file PositionIterator.h.
References te::rst::Grid::geoToGrid(), te::gm::LineString::getEndPoint(), te::rst::Raster::getExtent(), te::gm::GetGeomFromEnvelope(), te::rst::Raster::getGrid(), te::rst::Raster::getResolutionX(), te::rst::Raster::getResolutionY(), te::rst::Raster::getSRID(), te::gm::LineString::getStartPoint(), te::gm::Point::getX(), te::gm::Point::getY(), te::rst::Grid::gridToGeo(), te::gm::Geometry::intersection(), te::gm::INTERSECTS, te::rst::LineIterator< T >::m_line, te::rst::LineIterator< T >::m_pixelsinline, te::rst::AbstractPositionIterator< T >::m_raster, te::gm::SatisfySpatialRelation(), and te::rst::LineIterator< T >::setEnd().
| te::rst::LineIterator< T >::LineIterator | ( | const LineIterator< T > & | rhs | ) | 
Copy constructor.
| rhs | The right-hand-side copy used to copy from. | 
Definition at line 829 of file PositionIterator.h.
| te::rst::LineIterator< T >::~LineIterator | ( | ) | 
Definition at line 836 of file PositionIterator.h.
      
  | 
  static | 
Returns an iterator referring to the first value of the band.
Definition at line 908 of file PositionIterator.h.
      
  | 
  static | 
Returns an iterator referring to after the end of the iterator.
Definition at line 913 of file PositionIterator.h.
References te::rst::LineIterator< T >::setEnd().
      
  | 
  virtual | 
Returns the current column in iterator.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 868 of file PositionIterator.h.
      
  | 
  virtual | 
Returns the current row in iterator.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 863 of file PositionIterator.h.
      
  | 
  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::LineIterator< T >::operator!= | ( | const LineIterator< T > & | rhs | ) | const | 
Definition at line 922 of file PositionIterator.h.
References te::rst::LineIterator< 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 841 of file PositionIterator.h.
      
  | 
  virtual | 
Advances to the next position.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 873 of file PositionIterator.h.
      
  | 
  virtual | 
Returns to the previous position.
Implements te::rst::AbstractPositionIterator< T >.
Definition at line 881 of file PositionIterator.h.
| te::rst::LineIterator< T > & te::rst::LineIterator< T >::operator= | ( | const LineIterator< T > & | rhs | ) | 
Definition at line 889 of file PositionIterator.h.
References te::rst::LineIterator< T >::m_currentpixelindex, te::rst::LineIterator< T >::m_line, te::rst::LineIterator< T >::m_pixelsinline, 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 855 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 903 of file PositionIterator.h.
Referenced by te::rst::LineIterator< T >::end(), and te::rst::LineIterator< T >::LineIterator().
      
  | 
  protected | 
The index of the current pixel location.
Definition at line 279 of file PositionIterator.h.
Referenced by te::rst::LineIterator< T >::operator!=(), and te::rst::LineIterator< T >::operator=().
      
  | 
  protected | 
The spatial restriction to be applied in the iterator.
Definition at line 278 of file PositionIterator.h.
Referenced by te::rst::LineIterator< T >::LineIterator(), and te::rst::LineIterator< T >::operator=().
      
  | 
  protected | 
A vector of pixel locations that intersects the line.
Definition at line 280 of file PositionIterator.h.
Referenced by te::rst::LineIterator< T >::LineIterator(), and te::rst::LineIterator< T >::operator=().
      
  | 
  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().