QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
Represents an individual raster layer/band number entry within a raster calculation. More...
#include <qgsrastercalculator.h>
Static Public Member Functions | |
static QVector< QgsRasterCalculatorEntry > | rasterEntries () |
Creates a list of raster entries from the current project. | |
Public Attributes | |
int | bandNumber = 1 |
Band number for entry. | |
QgsRasterLayer * | raster = nullptr |
Raster layer associated with entry. | |
QString | ref |
Name of entry. | |
Represents an individual raster layer/band number entry within a raster calculation.
Definition at line 39 of file qgsrastercalculator.h.
|
static |
Creates a list of raster entries from the current project.
If there is more than one layer with the same data source only one of them is added to the list, duplicate names are also handled by appending an _n integer to the base name.
Definition at line 740 of file qgsrastercalculator.cpp.
int QgsRasterCalculatorEntry::bandNumber = 1 |
Band number for entry.
Numbering for bands usually starts at 1 for the first band, not 0.
Definition at line 69 of file qgsrastercalculator.h.
QgsRasterLayer* QgsRasterCalculatorEntry::raster = nullptr |
Raster layer associated with entry.
Definition at line 64 of file qgsrastercalculator.h.
QString QgsRasterCalculatorEntry::ref |
Name of entry.
Definition at line 59 of file qgsrastercalculator.h.