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;
105 double cumulativeCutLower()
const {
return mCumulativeCutLower; }
108 double cumulativeCutUpper()
const {
return mCumulativeCutUpper; }
111 double stdDevFactor()
const {
return mStdDevFactor; }
125 void setCumulativeCutLower(
double val ) { mCumulativeCutLower = val; }
128 void setCumulativeCutUpper(
double val ) { mCumulativeCutUpper = val; }
131 void setStdDevFactor(
double val ) { mStdDevFactor = val; }
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 );
164 Extent mExtent = WholeRaster;
166 double mCumulativeCutLower;
167 double mCumulativeCutUpper;
168 double mStdDevFactor;
171 #endif // QGSRASTERMINMAXORIGIN_H