QgsRasterNuller class
Raster pipe that deals with null values.
Contents
- Reference
Base classes
- class QgsRasterInterface
- Base class for processing filters like renderers, reprojector, resampler etc.
Public functions
- auto bandCount() const -> int override
- Gets number of bands.
- auto block(int bandNo, const QgsRectangle& extent, int width, int height, QgsRasterBlockFeedback* feedback = nullptr) -> QgsRasterBlock* override
- Read block of data using given extent and size.
- auto clone() const -> QgsRasterNuller* override
- Clone itself, create deep copy.
-
auto dataType(int bandNo) const -> Qgis::
DataType override - Returns data type for the band specified by number.
- void setOutputNoDataValue(int bandNo, double noData)
- Sets the output no data value.
Function documentation
QgsRasterBlock* QgsRasterNuller:: block(int bandNo,
const QgsRectangle& extent,
int width,
int height,
QgsRasterBlockFeedback* feedback = nullptr) override
Read block of data using given extent and size.
| Parameters | |
|---|---|
| bandNo | band number |
| extent | extent of block |
| width | pixel width of block |
| height | pixel height of block |
| feedback | optional raster feedback object for cancelation/preview. Added in QGIS 3.0. |
Returns pointer to data. Caller is responsible to free the memory returned.