16 #ifndef QGSRENDERERV2_H
17 #define QGSRENDERERV2_H
31 #include <QDomDocument>
32 #include <QDomElement>
49 #define RENDERER_TAG_NAME "renderer-v2"
183 virtual bool renderFeature(
QgsFeature& feature,
QgsRenderContext& context,
int layer = -1,
bool selected =
false,
bool drawVertexMarker =
false );
191 RotationField = 1 << 1,
192 MoreSymbolsPerFeature = 1 << 2,
194 ScaleDependent = 1 << 4
264 virtual bool legendSymbolItemsCheckable()
const;
268 virtual bool legendSymbolItemChecked(
const QString& key );
272 virtual void checkLegendSymbolItem(
const QString& key,
bool state =
true );
295 void setVertexMarkerAppearance(
int type,
int size );
310 Q_DECL_DEPRECATED
virtual bool willRenderFeature(
QgsFeature& feat );
411 bool orderByEnabled()
const;
420 void setOrderByEnabled(
bool enabled );
440 void renderFeatureWithSymbol(
QgsFeature& feature,
445 bool drawVertexMarker );
458 void setScaleMethodToSymbol(
QgsSymbolV2* symbol,
int scaleMethod );
510 #endif // QGSRENDERERV2_H
QMap< QString, QgsSymbolV2 * > QgsSymbolV2Map
A rectangle specified with double values.
virtual void toSld(QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const
used from subclasses to create SLD Rule elements following SLD v1.1 specs
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 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...
virtual QString filter(const QgsFields &fields=QgsFields())
If a renderer does not require all the features this method may be overridden and return an expressio...
QgsPaintEffect * mPaintEffect
virtual void setEmbeddedRenderer(QgsFeatureRendererV2 *subRenderer)
Sets an embedded renderer (subrenderer) for this feature renderer.
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 const QgsFeatureRendererV2 * embeddedRenderer() const
Returns the current embedded renderer (subrenderer) for this feature renderer.
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.
virtual QDomElement writeSld(QDomDocument &doc, const QString &styleName) const
create the SLD UserStyle element following the SLD v1.1 specs with the given name ...
QgsFeatureRequest::OrderBy mOrderBy
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
Represents a list of OrderByClauses, with the most important first and the least important last...
QMap< QString, QString > QgsStringMap