16 #ifndef QGSRENDERERRANGE_H 17 #define QGSRENDERERRANGE_H 21 #include "qgis_core.h" 52 QgsRendererRange(
double lowerValue,
double upperValue,
QgsSymbol *symbol SIP_TRANSFER,
const QString &label,
bool render =
true );
60 double lowerValue()
const;
61 double upperValue()
const;
64 QString label()
const;
66 void setSymbol(
QgsSymbol *s SIP_TRANSFER );
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,
QgsStringMap 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;
148 #endif // QGSRENDERERRANGE_H
QList< QgsRendererRange > QgsRangeList
Abstract base class for all rendered symbols.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QgsClassificationRange contains the information about a classification range.
QMap< QString, QString > QgsStringMap
std::unique_ptr< QgsSymbol > mSymbol
int ANALYSIS_EXPORT lower(int n, int i)
Lower function.