15#ifndef QGSRASTERITERATOR_H
16#define QGSRASTERITERATOR_H
106 bool readNextRasterPart(
int bandNumber,
107 int &nCols,
int &nRows,
109 int &topLeftCol,
int &topLeftRow );
128 bool readNextRasterPart(
int bandNumber,
129 int &nCols,
int &nRows,
130 std::unique_ptr< QgsRasterBlock > &block,
131 int &topLeftCol,
int &topLeftRow,
133 int *tileColumns =
nullptr,
int *tileRows =
nullptr,
int *tileTopLeftColumn =
nullptr,
int *tileTopLeftRow =
nullptr )
SIP_SKIP;
138 void stopRasterRead(
int bandNumber );
205 double progress(
int bandNumber )
const;
208 static const int DEFAULT_MAXIMUM_TILE_WIDTH = 2000;
211 static const int DEFAULT_MAXIMUM_TILE_HEIGHT = 2000;
215 struct RasterPartInfo
224 QMap<int, RasterPartInfo> mRasterPartInfos;
228 int mTileOverlapPixels = 0;
229 int mMaximumTileWidth;
230 int mMaximumTileHeight;
232 int mNumberBlocksWidth = 0;
233 int mNumberBlocksHeight = 0;
236 void removePartInfo(
int bandNumber );
237 bool readNextRasterPartInternal(
int bandNumber,
int &nCols,
int &nRows, std::unique_ptr<QgsRasterBlock> *block,
int &topLeftCol,
int &topLeftRow,
QgsRectangle *blockExtent,
int &tileColumns,
int &tileRows,
int &tileTopLeftColumn,
int &tileTopLeftRow );
Perform transforms between map coordinates and device coordinates.
Feedback object tailored for raster block reading.
Base class for processing filters like renderers, reprojector, resampler etc.
Iterator for sequentially processing raster cells.
qgssize blockCount() const
Returns the total number of blocks required to iterate over the input raster.
int maximumTileWidth() const
Returns the maximum tile width returned during iteration.
const QgsRasterInterface * input() const
Returns the input raster interface which is being iterated over.
void setMaximumTileWidth(int w)
Sets the maximum tile width returned during iteration.
int blockCountWidth() const
Returns the total number of blocks which cover the width of the input raster.
int blockCountHeight() const
Returns the total number of blocks which cover the height of the input raster.
int maximumTileHeight() const
Returns the minimum tile width returned during iteration.
void setMaximumTileHeight(int h)
Sets the minimum tile height returned during iteration.
Implements approximate projection support for optimised raster transformation.
A rectangle specified with double values.
unsigned long long qgssize
Qgssize is used instead of size_t, because size_t is stdlib type, unknown by SIP, and it would be har...
This class provides details of the viewable area that a raster will be rendered into.