16 #ifndef QGSRENDERERV2_H
17 #define QGSRENDERERV2_H
29 #include <QDomDocument>
30 #include <QDomElement>
48 #define RENDERER_TAG_NAME "renderer-v2"
152 virtual bool renderFeature(
QgsFeature& feature,
QgsRenderContext& context,
int layer = -1,
bool selected =
false,
bool drawVertexMarker =
false );
160 RotationField = 1 << 1,
161 MoreSymbolsPerFeature = 1 << 2,
163 ScaleDependent = 1 << 4
217 virtual bool legendSymbolItemsCheckable()
const;
221 virtual bool legendSymbolItemChecked(
const QString& key );
225 virtual void checkLegendSymbolItem(
const QString& key,
bool state =
true );
241 void setVertexMarkerAppearance(
int type,
int size );
254 Q_DECL_DEPRECATED
virtual bool willRenderFeature(
QgsFeature& feat );
332 void renderFeatureWithSymbol(
QgsFeature& feature,
337 bool drawVertexMarker );
347 static const unsigned char* _getLineString(
QPolygonF& pts,
QgsRenderContext& context,
const unsigned char* wkb,
bool clipToExtent =
true );
350 void setScaleMethodToSymbol(
QgsSymbolV2* symbol,
int scaleMethod );
387 #endif // QGSRENDERERV2_H
QMap< QString, QgsSymbolV2 * > QgsSymbolV2Map
A rectangle specified with double values.
QList< QgsSymbolV2 * > QgsSymbolV2List
QDomNode appendChild(const QDomNode &newChild)
void setForceRasterRender(bool forceRaster)
Sets whether the renderer should be rendered to a raster destination.
QList< QPair< QString, QPixmap > > QgsLegendSymbologyList
virtual QString filter()
If a renderer does not require all the features this method may be overridden and return an expressio...
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
bool forceRasterRender() const
Returns whether the renderer must render as a raster.
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.
virtual Q_DECL_DEPRECATED QString rotationField() const
return rotation field name (or empty string if not set or not supported by renderer) ...
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
virtual Q_DECL_DEPRECATED void setRotationField(const QString &fieldName)
sets rotation field of renderer (if supported by the renderer)
Represents a vector layer which manages a vector based data sets.
QList< QPair< QString, QgsSymbolV2 * > > QgsLegendSymbolList
QMap< QString, QString > QgsStringMap