Iterator for sequentially processing raster cells.
More...
#include <qgsrasteriterator.h>
Iterator for sequentially processing raster cells.
Definition at line 30 of file qgsrasteriterator.h.
| QgsRasterIterator::~QgsRasterIterator |
( |
| ) |
|
| int QgsRasterIterator::maximumTileHeight |
( |
| ) |
const |
|
inline |
| int QgsRasterIterator::maximumTileWidth |
( |
| ) |
const |
|
inline |
| bool QgsRasterIterator::readNextRasterPart |
( |
int |
bandNumber, |
|
|
int & |
nCols, |
|
|
int & |
nRows, |
|
|
QgsRasterBlock ** |
block, |
|
|
int & |
topLeftCol, |
|
|
int & |
topLeftRow |
|
) |
| |
Fetches next part of raster data, caller takes ownership of the block and caller should delete the block.
- Parameters
-
| bandNumber | band to read |
| nCols | number of columns on output device |
| nRows | number of rows on output device |
| block | address of block pointer |
| topLeftCol | top left column |
| topLeftRow | top left row |
- Returns
- false if the last part was already returned
Definition at line 51 of file qgsrasteriterator.cpp.
| void QgsRasterIterator::setMaximumTileHeight |
( |
int |
h | ) |
|
|
inline |
| void QgsRasterIterator::setMaximumTileWidth |
( |
int |
w | ) |
|
|
inline |
| void QgsRasterIterator::startRasterRead |
( |
int |
bandNumber, |
|
|
int |
nCols, |
|
|
int |
nRows, |
|
|
const QgsRectangle & |
extent |
|
) |
| |
Start reading of raster band.
Raster data can then be retrieved by calling readNextRasterPart until it returns false.
- Parameters
-
| bandNumber | number of raster band to read |
| nCols | number of columns |
| nRows | number of rows |
| extent | area to read |
Definition at line 29 of file qgsrasteriterator.cpp.
| void QgsRasterIterator::stopRasterRead |
( |
int |
bandNumber | ) |
|
The documentation for this class was generated from the following files: