15#ifndef QGSRASTERITERATOR_H
16#define QGSRASTERITERATOR_H
101 int resamplingFactor = 1
165 bool readNextRasterPart(
169 std::unique_ptr< QgsRasterBlock > &block,
173 int *tileColumns =
nullptr,
174 int *tileRows =
nullptr,
175 int *tileTopLeftColumn =
nullptr,
176 int *tileTopLeftRow =
nullptr
182 void stopRasterRead(
int bandNumber );
252 double progress(
int bandNumber,
double currentBlockProgress = -1 )
const;
262 struct RasterPartInfo
269 qgssize previousIteratedPixels = 0;
274 QMap<int, RasterPartInfo> mRasterPartInfos;
278 int mTileOverlapPixels = 0;
279 int mMaximumTileWidth;
280 int mMaximumTileHeight;
281 int mSnapToPixelFactor = 1;
283 int mNumberBlocksWidth = 0;
284 int mNumberBlocksHeight = 0;
287 void removePartInfo(
int bandNumber );
288 bool readNextRasterPartInternal(
292 std::unique_ptr<QgsRasterBlock> *block,
298 int &tileTopLeftColumn,
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.