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;
125 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const;
128 void readXml(
const QDomElement &elem );
133 static QString limitsString(
Limits limits );
136 static Limits limitsFromString(
const QString &limits );
153 Extent mExtent = WholeRaster;
155 double mCumulativeCutLower;
156 double mCumulativeCutUpper;
157 double mStdDevFactor;
160 #endif // QGSRASTERMINMAXORIGIN_H QgsRasterMinMaxOrigin::Limits limits() const
Return limits.
QgsRasterMinMaxOrigin::Extent extent() const
Return extent.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Extent
This enumerator describes the extent used to compute min/max values.
StatAccuracy
This enumerator describes the accuracy used to compute statistics.
Current extent of the canvas (at the time of computation) is used to compute statistics.
void setExtent(QgsRasterMinMaxOrigin::Extent extent)
Set extent.
double cumulativeCutLower() const
Return lower bound of cumulative cut method (between 0 and 1).
This class describes the origin of min/max values.
double cumulativeCutUpper() const
Return upper bound of cumulative cut method (between 0 and 1).
Range is [ mean - stdDevFactor() * stddev, mean + stdDevFactor() * stddev ].
void setStdDevFactor(double val)
Set factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]...
Limits
This enumerator describes the limits used to compute min/max values.
void setCumulativeCutLower(double val)
Set lower bound of cumulative cut method (between 0 and 1).
void setLimits(QgsRasterMinMaxOrigin::Limits limits)
Set limits.
void setStatAccuracy(QgsRasterMinMaxOrigin::StatAccuracy accuracy)
Set statistics accuracy.
Whole raster is used to compute statistics.
QgsRasterMinMaxOrigin::StatAccuracy statAccuracy() const
Return statistic accuracy.
void setCumulativeCutUpper(double val)
Set upper bound of cumulative cut method (between 0 and 1).
double stdDevFactor() const
Return factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]...