2017-06-01 15:39:31 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgsrasteriterator.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
class QgsRasterIterator
|
|
|
|
{
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Iterator for sequentially processing raster cells.
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-01 15:39:31 +02:00
|
|
|
#include "qgsrasteriterator.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsRasterIterator( QgsRasterInterface *input );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
void startRasterRead( int bandNumber, int nCols, int nRows, const QgsRectangle &extent, QgsRasterBlockFeedback *feedback = 0 );
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Start reading of raster band. Raster data can then be retrieved by calling readNextRasterPart until it returns false.
|
|
|
|
\param bandNumber number of raster band to read
|
|
|
|
\param nCols number of columns
|
|
|
|
\param nRows number of rows
|
|
|
|
\param extent area to read
|
|
|
|
\param feedback optional raster feedback object for cancelation/preview. Added in QGIS 3.0.
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
bool readNextRasterPart( int bandNumber,
|
2017-06-01 15:39:31 +02:00
|
|
|
int &nCols, int &nRows,
|
2014-01-27 09:22:24 +01:00
|
|
|
QgsRasterBlock **block,
|
2017-05-01 18:13:15 +02:00
|
|
|
int &topLeftCol, int &topLeftRow );
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Fetches next part of raster data, caller takes ownership of the block and
|
|
|
|
caller should delete the block.
|
|
|
|
\param bandNumber band to read
|
|
|
|
\param nCols number of columns on output device
|
|
|
|
\param nRows number of rows on output device
|
|
|
|
\param block address of block pointer
|
|
|
|
\param topLeftCol top left column
|
|
|
|
\param topLeftRow top left row
|
|
|
|
:return: false if the last part was already returned*
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
void stopRasterRead( int bandNumber );
|
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
const QgsRasterInterface *input() const;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsRasterInterface
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
void setMaximumTileWidth( int w );
|
|
|
|
int maximumTileWidth() const;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: int
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
void setMaximumTileHeight( int h );
|
|
|
|
int maximumTileHeight() const;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: int
|
|
|
|
%End
|
2017-02-21 13:44:40 +01:00
|
|
|
|
|
|
|
static const int DEFAULT_MAXIMUM_TILE_WIDTH;
|
|
|
|
static const int DEFAULT_MAXIMUM_TILE_HEIGHT;
|
2017-06-01 15:39:31 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-06-01 15:39:31 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgsrasteriterator.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|