|
QGIS API Documentation 3.99.0-Master (f78f5286a64)
|
Describes the origin of minimum and maximum values in a raster. More...
#include <qgsrasterminmaxorigin.h>
Public Member Functions | |
| QgsRasterMinMaxOrigin () | |
| double | cumulativeCutLower () const |
| Returns the lower bound of cumulative cut method (between 0 and 1). | |
| double | cumulativeCutUpper () const |
| Returns the upper bound of cumulative cut method (between 0 and 1). | |
| Qgis::RasterRangeExtent | extent () const |
| Returns the raster extent. | |
| Qgis::RasterRangeLimit | limits () const |
| Returns the raster limits. | |
| bool | operator== (const QgsRasterMinMaxOrigin &other) const |
| void | readXml (const QDomElement &elem) |
| Deserialize object. | |
| void | setCumulativeCutLower (double val) |
| Sets the lower bound of cumulative cut method (between 0 and 1). | |
| void | setCumulativeCutUpper (double val) |
| Sets the upper bound of cumulative cut method (between 0 and 1). | |
| void | setExtent (Qgis::RasterRangeExtent extent) |
| Sets the extent. | |
| void | setLimits (Qgis::RasterRangeLimit limits) |
| Sets the limits. | |
| void | setStatAccuracy (Qgis::RasterRangeAccuracy accuracy) |
| Sets the statistics accuracy. | |
| void | setStdDevFactor (double val) |
| Sets the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]. | |
| Qgis::RasterRangeAccuracy | statAccuracy () const |
| Returns the raster statistic accuracy. | |
| double | stdDevFactor () const |
| Returns the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]. | |
| void | writeXml (QDomDocument &doc, QDomElement &parentElem) const |
| Serialize object. | |
Static Public Member Functions | |
| static Qgis::RasterRangeExtent | extentFromString (const QString &extent) |
| Deserialize Extent. | |
| static QString | extentString (Qgis::RasterRangeExtent extent) |
| Returns a string to serialize Extent. | |
| static Qgis::RasterRangeLimit | limitsFromString (const QString &limits) |
| Deserialize Limits. | |
| static QString | limitsString (Qgis::RasterRangeLimit limits) |
| Returns a string to serialize Limits. | |
| static Qgis::RasterRangeAccuracy | statAccuracyFromString (const QString &accuracy) |
| Deserialize StatAccuracy. | |
| static QString | statAccuracyString (Qgis::RasterRangeAccuracy accuracy) |
| Returns a string to serialize StatAccuracy. | |
Static Public Attributes | |
| static constexpr double | CUMULATIVE_CUT_LOWER = 0.02 |
| Default cumulative cut lower limit. | |
| static constexpr double | CUMULATIVE_CUT_UPPER = 0.98 |
| Default cumulative cut upper limit. | |
| static constexpr double | DEFAULT_STDDEV_FACTOR = 2.0 |
| Default standard deviation factor. | |
Describes the origin of minimum and maximum values in a raster.
It does not store by itself the min/max values.
Definition at line 34 of file qgsrasterminmaxorigin.h.
| QgsRasterMinMaxOrigin::QgsRasterMinMaxOrigin | ( | ) |
Definition at line 25 of file qgsrasterminmaxorigin.cpp.
|
inline |
Returns the lower bound of cumulative cut method (between 0 and 1).
Definition at line 64 of file qgsrasterminmaxorigin.h.
|
inline |
Returns the upper bound of cumulative cut method (between 0 and 1).
Definition at line 67 of file qgsrasterminmaxorigin.h.
|
inline |
Returns the raster extent.
Definition at line 58 of file qgsrasterminmaxorigin.h.
|
static |
Deserialize Extent.
Definition at line 93 of file qgsrasterminmaxorigin.cpp.
|
static |
Returns a string to serialize Extent.
Definition at line 79 of file qgsrasterminmaxorigin.cpp.
|
inline |
Returns the raster limits.
Definition at line 55 of file qgsrasterminmaxorigin.h.
|
static |
Deserialize Limits.
Definition at line 62 of file qgsrasterminmaxorigin.cpp.
|
static |
Returns a string to serialize Limits.
Definition at line 46 of file qgsrasterminmaxorigin.cpp.
| bool QgsRasterMinMaxOrigin::operator== | ( | const QgsRasterMinMaxOrigin & | other | ) | const |
Definition at line 36 of file qgsrasterminmaxorigin.cpp.
| void QgsRasterMinMaxOrigin::readXml | ( | const QDomElement & | elem | ) |
Deserialize object.
Definition at line 171 of file qgsrasterminmaxorigin.cpp.
|
inline |
Sets the lower bound of cumulative cut method (between 0 and 1).
Definition at line 84 of file qgsrasterminmaxorigin.h.
|
inline |
Sets the upper bound of cumulative cut method (between 0 and 1).
Definition at line 87 of file qgsrasterminmaxorigin.h.
|
inline |
Sets the extent.
Definition at line 78 of file qgsrasterminmaxorigin.h.
|
inline |
Sets the limits.
Definition at line 75 of file qgsrasterminmaxorigin.h.
|
inline |
Sets the statistics accuracy.
Definition at line 81 of file qgsrasterminmaxorigin.h.
|
inline |
Sets the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ].
Definition at line 90 of file qgsrasterminmaxorigin.h.
|
inline |
Returns the raster statistic accuracy.
Definition at line 61 of file qgsrasterminmaxorigin.h.
|
static |
Deserialize StatAccuracy.
Definition at line 125 of file qgsrasterminmaxorigin.cpp.
|
static |
Returns a string to serialize StatAccuracy.
Definition at line 113 of file qgsrasterminmaxorigin.cpp.
|
inline |
Returns the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ].
Definition at line 70 of file qgsrasterminmaxorigin.h.
| void QgsRasterMinMaxOrigin::writeXml | ( | QDomDocument & | doc, |
| QDomElement & | parentElem | ||
| ) | const |
Serialize object.
Definition at line 132 of file qgsrasterminmaxorigin.cpp.
|
staticconstexpr |
Default cumulative cut lower limit.
Definition at line 40 of file qgsrasterminmaxorigin.h.
|
staticconstexpr |
Default cumulative cut upper limit.
Definition at line 43 of file qgsrasterminmaxorigin.h.
|
staticconstexpr |
Default standard deviation factor.
Definition at line 46 of file qgsrasterminmaxorigin.h.