15 #ifndef QGSRASTERITERATOR_H 16 #define QGSRASTERITERATOR_H 18 #include "qgis_core.h" 72 bool next(
int bandNumber,
int &columns
SIP_OUT,
int &rows SIP_OUT,
int &topLeftColumn SIP_OUT,
int &topLeftRow SIP_OUT,
QgsRectangle &blockExtent SIP_OUT );
85 bool readNextRasterPart(
int bandNumber,
86 int &nCols,
int &nRows,
88 int &topLeftCol,
int &topLeftRow );
103 bool readNextRasterPart(
int bandNumber,
104 int &nCols,
int &nRows,
105 std::unique_ptr< QgsRasterBlock > &block,
106 int &topLeftCol,
int &topLeftRow,
112 void stopRasterRead(
int bandNumber );
148 static const int DEFAULT_MAXIMUM_TILE_WIDTH = 2000;
151 static const int DEFAULT_MAXIMUM_TILE_HEIGHT = 2000;
155 struct RasterPartInfo
164 QMap<int, RasterPartInfo> mRasterPartInfos;
168 int mMaximumTileWidth;
169 int mMaximumTileHeight;
172 void removePartInfo(
int bandNumber );
173 bool readNextRasterPartInternal(
int bandNumber,
int &nCols,
int &nRows, std::unique_ptr<QgsRasterBlock> *block,
int &topLeftCol,
int &topLeftRow,
QgsRectangle *blockExtent );
176 #endif // QGSRASTERITERATOR_H A rectangle specified with double values.
Iterator for sequentially processing raster cells.
Perform transforms between map coordinates and device coordinates.
Base class for processing filters like renderers, reprojector, resampler etc.
QgsRasterProjector implements approximate projection support for it calculates grid of points in sour...
void setMaximumTileWidth(int w)
Sets the maximum tile width returned during iteration.
void setMaximumTileHeight(int h)
Sets the minimum tile height returned during iteration.
const QgsRasterInterface * input() const
Returns the input raster interface which is being iterated over.
int maximumTileHeight() const
Returns the minimum tile width returned during iteration.
This class provides details of the viewable area that a raster will be rendered into.
Feedback object tailored for raster block reading.
int maximumTileWidth() const
Returns the maximum tile width returned during iteration.