16 #ifndef QGSRENDERERRANGE_H
17 #define QGSRENDERERRANGE_H
21 #include "qgis_core.h"
61 double lowerValue()
const;
62 double upperValue()
const;
65 QString label()
const;
68 void setLabel(
const QString &label );
69 void setLowerValue(
double lowerValue );
70 void setUpperValue(
double upperValue );
73 bool renderState()
const;
74 void setRenderState(
bool render );
87 void toSld( QDomDocument &doc, QDomElement &element, QVariantMap props,
bool firstRange =
false )
const;
90 double mLowerValue = 0, mUpperValue = 0;
117 QString
format()
const {
return mFormat; }
118 void setFormat(
const QString &format ) { mFormat = format; }
127 QString labelForRange(
double lower,
double upper )
const SIP_PYNAME( labelForLowerUpper );
129 QString formatNumber(
double value )
const;
131 void setFromDomElement( QDomElement &element );
132 void saveToDomElement( QDomElement &element );
140 bool mTrimTrailingZeroes =
false;
142 double mNumberScale = 1.0;
QgsClassificationRange contains the information about a classification range.
QgsRendererRange()=default
Constructor for QgsRendererRange.
std::unique_ptr< QgsSymbol > mSymbol
Abstract base class for all rendered symbols.
int ANALYSIS_EXPORT lower(int n, int i)
Lower function.
bool operator<(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is less than the second.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QList< QgsRendererRange > QgsRangeList