15#ifndef QGSRASTERITERATOR_H
16#define QGSRASTERITERATOR_H
137 bool readNextRasterPart(
int bandNumber,
138 int &nCols,
int &nRows,
140 int &topLeftCol,
int &topLeftRow );
159 bool readNextRasterPart(
int bandNumber,
160 int &nCols,
int &nRows,
161 std::unique_ptr< QgsRasterBlock > &block,
162 int &topLeftCol,
int &topLeftRow,
164 int *tileColumns =
nullptr,
int *tileRows =
nullptr,
int *tileTopLeftColumn =
nullptr,
int *tileTopLeftRow =
nullptr )
SIP_SKIP;
169 void stopRasterRead(
int bandNumber );
236 double progress(
int bandNumber )
const;
246 struct RasterPartInfo
255 QMap<int, RasterPartInfo> mRasterPartInfos;
259 int mTileOverlapPixels = 0;
260 int mMaximumTileWidth;
261 int mMaximumTileHeight;
262 int mSnapToPixelFactor = 1;
264 int mNumberBlocksWidth = 0;
265 int mNumberBlocksHeight = 0;
268 void removePartInfo(
int bandNumber );
269 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.
int snapToPixelFactor() const
Returns the current "snap to pixel" factor in pixels.
void setSnapToPixelFactor(int factor)
Sets the "snap to pixel" factor in pixels.
qgssize blockCount() const
Returns the total number of blocks required to iterate over the input raster.
QgsRasterIterator(QgsRasterInterface *input, int tileOverlapPixels=0)
Constructor for QgsRasterIterator, iterating over the specified input raster source.
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.
static const int DEFAULT_MAXIMUM_TILE_WIDTH
Default maximum tile width.
int blockCountWidth() const
Returns the total number of blocks which cover the width of the input raster.
static const int DEFAULT_MAXIMUM_TILE_HEIGHT
Default maximum tile height.
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.