QGIS/python/core/raster/qgsrasteriterator.sip
Juergen E. Fischer f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00

52 lines
1.7 KiB
Plaintext

class QgsRasterIterator
{
%TypeHeaderCode
#include <qgsrasteriterator.h>
%End
public:
//Stores information about reading of a raster band. Columns and rows are in unsampled coordinates
struct RasterPartInfo
{
int currentCol;
int currentRow;
int nCols;
int nRows;
void* data; //data (can be in oversampled/undersampled resolution)
QgsRasterProjector* prj; //raster projector (or 0 if no reprojection is done)
};
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 );
/**Fetches next part of raster data
@param bandNumber band to read
@param nCols number of columns on output device
@param nRows number of rows on output device
@param rasterData to return the pointer to raster data in
@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,
void** rasterData,
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;
};