QGIS/python/core/raster/qgsrasteriterator.sip

43 lines
1.4 KiB
Plaintext
Raw Normal View History

class QgsRasterIterator
{
%TypeHeaderCode
#include <qgsrasteriterator.h>
%End
public:
QgsRasterIterator( QgsRasterInterface* input );
~QgsRasterIterator();
/**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
*/
void startRasterRead( int bandNumber, int nCols, int nRows, const QgsRectangle& extent );
2014-01-27 09:22:24 +01:00
/**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
2014-01-27 09:22:24 +01:00
@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*/
bool readNextRasterPart( int bandNumber,
int& nCols, int& nRows,
2014-01-27 09:22:24 +01:00
QgsRasterBlock **block,
int& topLeftCol, int& topLeftRow );
void stopRasterRead( int bandNumber );
const QgsRasterInterface* input() const;
void setMaximumTileWidth( int w );
int maximumTileWidth() const;
void setMaximumTileHeight( int h );
int maximumTileHeight() const;
};