16 #ifndef QGSRENDERERV2_H
17 #define QGSRENDERERV2_H
29 #include <QDomDocument>
30 #include <QDomElement>
48 #define RENDERER_TAG_NAME "renderer-v2"
111 virtual bool renderFeature(
QgsFeature& feature,
QgsRenderContext& context,
int layer = -1,
bool selected =
false,
bool drawVertexMarker =
false );
119 RotationField = 1 << 1,
120 MoreSymbolsPerFeature = 1 << 2,
122 ScaleDependent = 1 << 4
168 virtual bool legendSymbolItemsCheckable()
const;
172 virtual bool legendSymbolItemChecked(
QString key );
176 virtual void checkLegendSymbolItem(
QString key,
bool state =
true );
192 void setVertexMarkerAppearance(
int type,
int size );
239 void renderFeatureWithSymbol(
QgsFeature& feature,
244 bool drawVertexMarker );
254 static const unsigned char* _getLineString(
QPolygonF& pts,
QgsRenderContext& context,
const unsigned char* wkb,
bool clipToExtent =
true );
257 void setScaleMethodToSymbol(
QgsSymbolV2* symbol,
int scaleMethod );
292 #endif // QGSRENDERERV2_H
QMap< QString, QgsSymbolV2 * > QgsSymbolV2Map
virtual bool willRenderFeature(QgsFeature &feat)
return whether the renderer will render a feature or not.
A rectangle specified with double values.
virtual QgsSymbolV2 * originalSymbolForFeature(QgsFeature &feature)
Return symbol for feature.
virtual void setRotationField(QString fieldName)
sets rotation field of renderer (if supported by the renderer)
QList< QgsSymbolV2 * > QgsSymbolV2List
QDomNode appendChild(const QDomNode &newChild)
QList< QPair< QString, QPixmap > > QgsLegendSymbologyList
virtual void modifyRequestExtent(QgsRectangle &extent, QgsRenderContext &context)
Allows for a renderer to modify the extent of a feature request prior to rendering.
Base class for visual effects which can be applied to QPicture drawings.
Container of fields for a vector layer.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QgsPaintEffect * mPaintEffect
virtual QString rotationField() const
return rotation field name (or empty string if not set or not supported by renderer) ...
virtual QString legendClassificationAttribute() const
If supported by the renderer, return classification attribute for the use in legend.
int mCurrentVertexMarkerSize
The current size of editing marker.
int mCurrentVertexMarkerType
The current type of editing marker.
QList< QgsSymbolV2LevelItem > QgsSymbolV2Level
virtual void toSld(QDomDocument &doc, QDomElement &element) const
used from subclasses to create SLD Rule elements following SLD v1.1 specs
QgsSymbolV2LevelItem(QgsSymbolV2 *symbol, int layer)
void setUsingSymbolLevels(bool usingSymbolLevels)
Contains information about the context of a rendering operation.
bool usingSymbolLevels() const
QList< QgsSymbolV2Level > QgsSymbolV2LevelOrder
virtual int capabilities()
returns bitwise OR-ed capabilities of the renderer
Represents a vector layer which manages a vector based data sets.
QList< QPair< QString, QgsSymbolV2 * > > QgsLegendSymbolList
QMap< QString, QString > QgsStringMap