QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Contains computed statistics for a layer render. More...
#include <qgsrenderedlayerstatistics.h>
Public Member Functions | |
QgsRenderedLayerStatistics (const QString &layerId, const QList< double > &minimum, const QList< double > &maximum) | |
Constructor for QgsRenderedLayerStatistics from a list of minimum and maximum. | |
QgsRenderedLayerStatistics (const QString &layerId, double minimum=std::numeric_limits< double >::quiet_NaN(), double maximum=std::numeric_limits< double >::quiet_NaN()) | |
Constructor for QgsRenderedLayerStatistics with only one value for minimum and maximum. | |
QList< double > | maximum () const |
Returns the maximum values of the computed statistics. | |
double | maximum (int index) const |
Returns the maximum values of the computed statistics at index. | |
QList< double > | minimum () const |
Returns the minimum values of the computed statistics. | |
double | minimum (int index) const |
Returns the minimum value of the computed statistics at index. | |
bool | setMaximum (int index, double maximum) |
Sets the maximum value of the computed statistics at index. | |
void | setMaximum (QList< double > &maximum) |
Sets the maximum values of the computed statistics. | |
bool | setMinimum (int index, double minimum) |
Sets the minimum value of the computed statistics at index. | |
void | setMinimum (QList< double > &minimum) |
Sets the minimum values of the computed statistics. | |
Public Member Functions inherited from QgsRenderedItemDetails | |
QgsRenderedItemDetails (const QString &layerId) | |
Constructor for QgsRenderedItemDetails. | |
virtual | ~QgsRenderedItemDetails () |
QgsRectangle | boundingBox () const |
Returns the bounding box of the item (in map units). | |
QString | layerId () const |
Returns the layer ID of the associated map layer. | |
void | setBoundingBox (const QgsRectangle &bounds) |
Sets the bounding box of the item (in map units). | |
Contains computed statistics for a layer render.
Definition at line 32 of file qgsrenderedlayerstatistics.h.
QgsRenderedLayerStatistics::QgsRenderedLayerStatistics | ( | const QString & | layerId, |
const QList< double > & | minimum, | ||
const QList< double > & | maximum | ||
) |
Constructor for QgsRenderedLayerStatistics from a list of minimum and maximum.
This is used to store the minimum and maximum values of a layer. Many values may be stored. For example, a raster layer may have multiple bands. In that case, minimum will contain the minimum value of each band and maximum will contain the maximum value of each band.
Definition at line 19 of file qgsrenderedlayerstatistics.cpp.
QgsRenderedLayerStatistics::QgsRenderedLayerStatistics | ( | const QString & | layerId, |
double | minimum = std::numeric_limits<double>::quiet_NaN() , |
||
double | maximum = std::numeric_limits<double>::quiet_NaN() |
||
) |
Constructor for QgsRenderedLayerStatistics with only one value for minimum and maximum.
Definition at line 27 of file qgsrenderedlayerstatistics.cpp.
QList< double > QgsRenderedLayerStatistics::maximum | ( | ) | const |
Returns the maximum values of the computed statistics.
Definition at line 50 of file qgsrenderedlayerstatistics.cpp.
double QgsRenderedLayerStatistics::maximum | ( | int | index | ) | const |
Returns the maximum values of the computed statistics at index.
Definition at line 55 of file qgsrenderedlayerstatistics.cpp.
QList< double > QgsRenderedLayerStatistics::minimum | ( | ) | const |
Returns the minimum values of the computed statistics.
Definition at line 35 of file qgsrenderedlayerstatistics.cpp.
double QgsRenderedLayerStatistics::minimum | ( | int | index | ) | const |
Returns the minimum value of the computed statistics at index.
Definition at line 40 of file qgsrenderedlayerstatistics.cpp.
bool QgsRenderedLayerStatistics::setMaximum | ( | int | index, |
double | maximum | ||
) |
Sets the maximum value of the computed statistics at index.
true
if value has been set. Definition at line 87 of file qgsrenderedlayerstatistics.cpp.
void QgsRenderedLayerStatistics::setMaximum | ( | QList< double > & | maximum | ) |
Sets the maximum values of the computed statistics.
Definition at line 82 of file qgsrenderedlayerstatistics.cpp.
bool QgsRenderedLayerStatistics::setMinimum | ( | int | index, |
double | minimum | ||
) |
Sets the minimum value of the computed statistics at index.
true
if value has been set. Definition at line 71 of file qgsrenderedlayerstatistics.cpp.
void QgsRenderedLayerStatistics::setMinimum | ( | QList< double > & | minimum | ) |
Sets the minimum values of the computed statistics.
Definition at line 66 of file qgsrenderedlayerstatistics.cpp.