15 #ifndef QGSGRADUATEDSYMBOLRENDERERV2_H
16 #define QGSGRADUATEDSYMBOLRENDERERV2_H
32 double lowerValue()
const;
33 double upperValue()
const;
36 QString label()
const;
39 void setLabel( QString label );
40 void setLowerValue(
double lowerValue );
41 void setUpperValue(
double upperValue );
46 void toSld( QDomDocument& doc, QDomElement &element,
QgsStringMap props )
const;
74 virtual QString
dump()
const;
78 virtual void toSld( QDomDocument& doc, QDomElement &element )
const;
91 bool updateRangeSymbol(
int rangeIndex,
QgsSymbolV2* symbol );
92 bool updateRangeLabel(
int rangeIndex, QString label );
93 bool updateRangeUpperValue(
int rangeIndex,
double value );
94 bool updateRangeLowerValue(
int rangeIndex,
double value );
97 void deleteClass(
int idx );
98 void deleteAllClasses();
101 void moveClass(
int from,
int to );
103 void sortByValue( Qt::SortOrder order = Qt::AscendingOrder );
104 void sortByLabel( Qt::SortOrder order = Qt::AscendingOrder );
131 virtual QDomElement
save( QDomDocument& doc );
186 #if QT_VERSION < 0x40600
189 QHash<QgsSymbolV2*, QgsSymbolV2*> mTempSymbols;
195 #endif // QGSGRADUATEDSYMBOLRENDERERV2_H
QList< QgsRendererRangeV2 > QgsRangeList
QString rotationField() const
QList< QgsSymbolV2 * > QgsSymbolV2List
virtual QString dump() const
for debugging
QString classAttribute() const
virtual QDomElement save(QDomDocument &doc)
store renderer info to XML element
QList< QPair< QString, QPixmap > > QgsLegendSymbologyList
virtual QList< QString > usedAttributes()=0
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QMap< QString, QString > QgsStringMap
QMap< QgsSymbolV2 *, QgsSymbolV2 * > mTempSymbols
temporary symbols, used for data-defined rotation and scaling
virtual QgsLegendSymbologyList legendSymbologyItems(QSize iconSize)
return a list of symbology items for the legend
virtual void stopRender(QgsRenderContext &context)=0
virtual QgsSymbolV2List symbols()=0
for symbol levels
virtual QgsFeatureRendererV2 * clone()=0
QgsSymbolV2::ScaleMethod scaleMethod() const
virtual int capabilities()
returns bitwise OR-ed capabilities of the renderer
virtual QgsLegendSymbolList legendSymbolItems()
return a list of item text / symbol
const QgsRangeList & ranges()
QgsSymbolV2 * mSourceSymbol
void setClassAttribute(QString attr)
virtual void toSld(QDomDocument &doc, QDomElement &element) const
used from subclasses to create SLD Rule elements following SLD v1.1 specs
Contains information about the context of a rendering operation.
int mAttrNum
attribute index (derived from attribute name in startRender)
QString sizeScaleField() const
void setRotationField(QString fieldName)
void setSizeScaleField(QString fieldName)
virtual void startRender(QgsRenderContext &context, const QgsVectorLayer *vlayer)=0
QgsSymbolV2::ScaleMethod mScaleMethod
Represents a vector layer which manages a vector based data sets.
QList< QPair< QString, QgsSymbolV2 * > > QgsLegendSymbolList
virtual QgsSymbolV2 * symbolForFeature(QgsFeature &feature)=0
to be overridden
QgsVectorColorRampV2 * mSourceColorRamp