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,
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