te::rst::PointSetIterator< T > Class Template Reference

This class implements the strategy to iterate with spatial restriction, the iteration occurs inside a vector of points. More...

#include <PositionIterator.h>

Inheritance diagram for te::rst::PointSetIterator< T >:
te::rst::AbstractPositionIterator< T >

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...
 
PointSetIteratoroperator= (const PointSetIterator &rhs)
 
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::Rasterm_raster
 The band from where to get the values. More...
 

Detailed Description

template<class T>
class te::rst::PointSetIterator< T >

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.

Constructor & Destructor Documentation

template<class T >
te::rst::PointSetIterator< T >::PointSetIterator ( )

Definition at line 928 of file PositionIterator.h.

template<class T >
te::rst::PointSetIterator< T >::PointSetIterator ( const PointSetIterator< T > &  rhs)

Copy constructor.

Parameters
rhsThe right-hand-side copy used to copy from.

Definition at line 964 of file PositionIterator.h.

template<class T >
te::rst::PointSetIterator< T >::~PointSetIterator ( )

Definition at line 971 of file PositionIterator.h.

Member Function Documentation

template<class T >
te::rst::PointSetIterator< T > te::rst::PointSetIterator< T >::begin ( const te::rst::Raster r,
const std::vector< te::gm::Point * >  p 
)
static
template<class T >
te::rst::PointSetIterator< T > te::rst::PointSetIterator< T >::end ( const te::rst::Raster r,
const std::vector< te::gm::Point * >  p 
)
static
template<class T >
unsigned int te::rst::PointSetIterator< T >::getColumn ( ) const
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().

template<class T >
unsigned int te::rst::PointSetIterator< T >::getRow ( ) const
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().

template<class T >
bool te::rst::AbstractPositionIterator< T >::operator!= ( const AbstractPositionIterator< T > &  rhs) const
virtualinherited

Difference operator.

Parameters
rhsThe right-hand side to compare.
Returns
Returns true if the iterators are at different positions, or false otherwise.

Definition at line 373 of file PositionIterator.h.

References te::rst::AbstractPositionIterator< T >::m_raster.

template<class T >
bool te::rst::PointSetIterator< T >::operator!= ( const PointSetIterator< T > &  rhs) const
template<class T >
const std::vector< T > te::rst::PointSetIterator< T >::operator* ( ) const
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.

template<class T >
void te::rst::PointSetIterator< T >::operator++ ( )
virtual

Advances to the next position.

Implements te::rst::AbstractPositionIterator< T >.

Definition at line 1009 of file PositionIterator.h.

template<class T >
void te::rst::PointSetIterator< T >::operator-- ( )
virtual

Returns to the previous position.

Implements te::rst::AbstractPositionIterator< T >.

Definition at line 1017 of file PositionIterator.h.

template<class T >
T te::rst::PointSetIterator< T >::operator[] ( const unsigned int  i) const
virtual

Returns the value in current position (column, row, band) from iterator.

Parameters
iThe band index.
Returns
The pixel value in current position.

Implements te::rst::AbstractPositionIterator< T >.

Definition at line 990 of file PositionIterator.h.

template<class T >
void te::rst::PointSetIterator< T >::setEnd ( )
virtual

Sets the iterator position to the end of the current band.

Parameters
bThe 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().

Member Data Documentation

template<class T>
int te::rst::PointSetIterator< T >::m_currentpixelindex
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=().

template<class T>
std::vector<te::gm::Point*> te::rst::PointSetIterator< T >::m_pixelsinpointset
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().


The documentation for this class was generated from the following file: