QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGSRASTERMINMAXORIGIN_H
19 #define QGSRASTERMINMAXORIGIN_H
21 #include <QDomDocument>
23 #include <QDomElement>
25 #include "qgis_core.h"
39 static constexpr
double CUMULATIVE_CUT_LOWER = 0.02;
42 static constexpr
double CUMULATIVE_CUT_UPPER = 0.98;
45 static constexpr
double DEFAULT_STDDEV_FACTOR = 2.0;
136 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const;
139 void readXml(
const QDomElement &elem );
144 static QString limitsString( Limits limits );
147 static Limits limitsFromString(
const QString &limits );
163 Limits mLimits = None;
164 Extent mExtent = WholeRaster;
165 StatAccuracy mAccuracy = Estimated;
166 double mCumulativeCutLower;
167 double mCumulativeCutUpper;
168 double mStdDevFactor;
171 #endif // QGSRASTERMINMAXORIGIN_H
void setStdDevFactor(double val)
Sets the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ].
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Limits
This enumerator describes the limits used to compute min/max values.
void setStatAccuracy(QgsRasterMinMaxOrigin::StatAccuracy accuracy)
Sets the statistics accuracy.
double stdDevFactor() const
Returns the factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ].
StatAccuracy
This enumerator describes the accuracy used to compute statistics.
@ WholeRaster
Whole raster is used to compute statistics.
This class describes the origin of min/max values.
@ MinMax
Real min-max values.
double cumulativeCutLower() const
Returns the lower bound of cumulative cut method (between 0 and 1).
@ StdDev
Range is [ mean - stdDevFactor() * stddev, mean + stdDevFactor() * stddev ].
void setLimits(QgsRasterMinMaxOrigin::Limits limits)
Sets the limits.
QgsRasterMinMaxOrigin::StatAccuracy statAccuracy() const
Returns the raster statistic accuracy.
void setCumulativeCutUpper(double val)
Sets the upper bound of cumulative cut method (between 0 and 1).
void setExtent(QgsRasterMinMaxOrigin::Extent extent)
Sets the extent.
Extent
This enumerator describes the extent used to compute min/max values.
@ CurrentCanvas
Current extent of the canvas (at the time of computation) is used to compute statistics.
QgsRasterMinMaxOrigin::Extent extent() const
Returns the raster extent.
QgsRasterMinMaxOrigin::Limits limits() const
Returns the raster limits.
void setCumulativeCutLower(double val)
Sets 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).