![]() |
TerraLib 4.1
|
A raster iterator with a restriction of area. More...
#include <TeRaster.h>
Public Member Functions | |
| iteratorPoly (int colCurr, int linCurr, int nc, int nl, int nb, TeRaster *pt, const TePolygon &poly, TeStrategicIterator str, double linMin=0.0, double linMax=0.0, double colMin=0.0, double colMax=0.0, TeCoordPairVect seg=TeCoordPairVect(), int posSeg=0, int nlInPoly=0, int nColsInPoly=0, bool e=true, double minLinCM=0.0, int band=0) | |
| Constructor. | |
| iteratorPoly (TeRaster *raster=0) | |
| empty contructor | |
| virtual | ~iteratorPoly () |
| destructor | |
| void | moveForward () |
| Move iterator forward. | |
| iteratorPoly & | operator++ () |
| Prefix move forward operator. | |
| iteratorPoly | operator++ (int) |
| Prefix move orward operator. | |
| double | operator* () |
| Dereferencing operator. | |
| double | operator* (int band) |
| Returns the value of a given band of the element pointed by the iterator. | |
| bool | getProperty (TeProperty &prop) |
| Returns the value of of the element pointed by the iterator as TeProperty structure. | |
| bool | end () |
| Returns the last past one element in the polygon. | |
| int | nLinesInPoly () |
| Returns the number of lines covered by the iterator. | |
| int | nColsInPoly () |
| Returns the number of columns covered by the iterator. | |
A raster iterator with a restriction of area.
A structure that allows to cover the raster elements (pixels) that are IN or OUT a specific region (polygon)
| TeRaster::iteratorPoly::iteratorPoly | ( | int | colCurr, |
| int | linCurr, | ||
| int | nc, | ||
| int | nl, | ||
| int | nb, | ||
| TeRaster * | pt, | ||
| const TePolygon & | poly, | ||
| TeStrategicIterator | str, | ||
| double | linMin = 0.0, |
||
| double | linMax = 0.0, |
||
| double | colMin = 0.0, |
||
| double | colMax = 0.0, |
||
| TeCoordPairVect | seg = TeCoordPairVect(), |
||
| int | posSeg = 0, |
||
| int | nlInPoly = 0, |
||
| int | nColsInPoly = 0, |
||
| bool | e = true, |
||
| double | minLinCM = 0.0, |
||
| int | band = 0 |
||
| ) | [inline] |
Constructor.
| colCurr | initial column |
| linCurr | initial line |
| nc | number of columns |
| nl | number of lines |
| nb | number of bands |
| pt | pointer to the raster that will be covered |
| poly | polygon that defines a specific region |
| str | strategic of the iterator, IN or OUT the polygon |
| linMin | minimal line of the raster that will be covered |
| linMax | maximal line of the raster that will be covered |
| colMin | minimal column of the raster that will be covered |
| colMax | maximal column of the raster that will be covered |
| seg | the segments of intersection of the current line |
| posSeg | the current segment |
| nlInPoly | number of lines IN the polygon |
| nColsInPoly | number of columns IN the polygon |
| e | iterator end |
| minLinCM | minimal line (in world coordinates) |
| band | band to iterate |
| TeRaster::iteratorPoly::iteratorPoly | ( | TeRaster * | raster = 0 | ) | [inline] |
empty contructor
| virtual TeRaster::iteratorPoly::~iteratorPoly | ( | ) | [inline, virtual] |
destructor
| bool TeRaster::iteratorPoly::end | ( | void | ) | [inline] |
Returns the last past one element in the polygon.
| bool TeRaster::iteratorPoly::getProperty | ( | TeProperty & | prop | ) |
Returns the value of of the element pointed by the iterator as TeProperty structure.
If there is a band restriction defined it will return the value associated to that band. Otherwise will return the value associated to band 0.
| void TeRaster::iteratorPoly::moveForward | ( | ) | [virtual] |
Move iterator forward.
Reimplemented from TeRaster::iterator.
| int TeRaster::iteratorPoly::nColsInPoly | ( | ) | [inline] |
Returns the number of columns covered by the iterator.
| int TeRaster::iteratorPoly::nLinesInPoly | ( | ) | [inline] |
Returns the number of lines covered by the iterator.
| double TeRaster::iteratorPoly::operator* | ( | int | band | ) |
Returns the value of a given band of the element pointed by the iterator.
Reimplemented from TeRaster::iterator.
| double TeRaster::iteratorPoly::operator* | ( | ) |
Dereferencing operator.
This operator was designed for compatibility reasons with standard containers of STL. If there is a band restriction defined it will return the value associated to that band. Otherwise will return the value associated to band 0.
Reimplemented from TeRaster::iterator.
| TeRaster::iteratorPoly & TeRaster::iteratorPoly::operator++ | ( | ) |
Prefix move forward operator.
Reimplemented from TeRaster::iterator.
| TeRaster::iteratorPoly TeRaster::iteratorPoly::operator++ | ( | int | ) |
Prefix move orward operator.
Reimplemented from TeRaster::iterator.