16 #ifndef QGSRENDERERRANGE_H
17 #define QGSRENDERERRANGE_H
21 #include "qgis_core.h"
60 double lowerValue()
const;
61 double upperValue()
const;
64 QString label()
const;
67 void setLabel(
const QString &label );
68 void setLowerValue(
double lowerValue );
69 void setUpperValue(
double upperValue );
72 bool renderState()
const;
73 void setRenderState(
bool render );
86 void toSld( QDomDocument &doc, QDomElement &element, QVariantMap props,
bool firstRange =
false )
const;
89 double mLowerValue = 0, mUpperValue = 0;
116 QString
format()
const {
return mFormat; }
117 void setFormat(
const QString &format ) { mFormat = format; }
126 QString labelForRange(
double lower,
double upper )
const SIP_PYNAME( labelForLowerUpper );
128 QString formatNumber(
double value )
const;
130 void setFromDomElement( QDomElement &element );
131 void saveToDomElement( QDomElement &element );
139 bool mTrimTrailingZeroes =
false;
141 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 QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QList< QgsRendererRange > QgsRangeList