15 #ifndef QGSGRADUATEDSYMBOLRENDERERV2_H
16 #define QGSGRADUATEDSYMBOLRENDERERV2_H
21 #include <QScopedPointer>
36 double lowerValue()
const;
37 double upperValue()
const;
40 QString label()
const;
43 void setLabel( QString label );
44 void setLowerValue(
double lowerValue );
45 void setUpperValue(
double upperValue );
48 bool renderState()
const;
49 void setRenderState(
bool render );
54 void toSld( QDomDocument& doc, QDomElement &element,
QgsStringMap props )
const;
79 QString
format()
const {
return mFormat; }
80 void setFormat( QString format ) { mFormat = format; }
83 void setPrecision(
int precision );
89 QString labelForRange(
double lower,
double upper )
const;
91 QString formatNumber(
double value )
const;
93 void setFromDomElement( QDomElement &element );
94 void saveToDomElement( QDomElement &element );
131 virtual QString
dump()
const override;
135 virtual void toSld( QDomDocument& doc, QDomElement &element )
const override;
147 bool updateRangeSymbol(
int rangeIndex,
QgsSymbolV2* symbol );
148 bool updateRangeLabel(
int rangeIndex, QString label );
149 bool updateRangeUpperValue(
int rangeIndex,
double value );
150 bool updateRangeLowerValue(
int rangeIndex,
double value );
152 bool updateRangeRenderState(
int rangeIndex,
bool render );
158 void addClass(
double lower,
double upper );
159 void deleteClass(
int idx );
160 void deleteAllClasses();
163 void moveClass(
int from,
int to );
165 void sortByValue( Qt::SortOrder order = Qt::AscendingOrder );
166 void sortByLabel( Qt::SortOrder order = Qt::AscendingOrder );
185 void updateClasses(
QgsVectorLayer *vlayer, Mode mode,
int nclasses );
203 void calculateLabelPrecision(
bool updateRanges =
true );
212 bool inverted =
false,
220 virtual QDomElement
save( QDomDocument& doc )
override;
249 void setSizeScaleField( QString fieldOrExpression );
250 QString sizeScaleField()
const;
299 #endif // QGSGRADUATEDSYMBOLRENDERERV2_H