16 #ifndef QGSRENDERERV2_H 17 #define QGSRENDERERV2_H 31 #include <QDomDocument> 32 #include <QDomElement> 49 #define RENDERER_TAG_NAME "renderer-v2" 181 virtual bool filterNeedsGeometry()
const;
197 virtual bool renderFeature(
QgsFeature& feature,
QgsRenderContext& context,
int layer = -1,
bool selected =
false,
bool drawVertexMarker =
false );
205 RotationField = 1 << 1,
206 MoreSymbolsPerFeature = 1 << 2,
208 ScaleDependent = 1 << 4
278 virtual bool legendSymbolItemsCheckable()
const;
282 virtual bool legendSymbolItemChecked(
const QString& key );
286 virtual void checkLegendSymbolItem(
const QString& key,
bool state =
true );
309 void setVertexMarkerAppearance(
int type,
int size );
324 Q_DECL_DEPRECATED
virtual bool willRenderFeature(
QgsFeature& feat );
425 bool orderByEnabled()
const;
434 void setOrderByEnabled(
bool enabled );
454 void renderFeatureWithSymbol(
QgsFeature& feature,
459 bool drawVertexMarker );
486 void setScaleMethodToSymbol(
QgsSymbolV2* symbol,
int scaleMethod );
538 #endif // QGSRENDERERV2_H QMap< QString, QgsSymbolV2 *> QgsSymbolV2Map
virtual Q_DECL_DEPRECATED QString rotationField() const
return rotation field name (or empty string if not set or not supported by renderer) ...
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 void toSld(QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const
used from subclasses to create SLD Rule elements following SLD v1.1 specs
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...
virtual void toSld(QDomDocument &doc, QDomElement &element) const
used from subclasses to create SLD Rule elements following SLD v1.1 specs
QgsPaintEffect * mPaintEffect
virtual const QgsFeatureRendererV2 * embeddedRenderer() const
Returns the current embedded renderer (subrenderer) for this feature renderer.
virtual void setEmbeddedRenderer(QgsFeatureRendererV2 *subRenderer)
Sets an embedded renderer (subrenderer) for this feature renderer.
int mCurrentVertexMarkerSize
The current size of editing marker.
int mCurrentVertexMarkerType
The current type of editing marker.
virtual QString legendClassificationAttribute() const
If supported by the renderer, return classification attribute for the use in legend.
bool usingSymbolLevels() const
QList< QgsSymbolV2LevelItem > QgsSymbolV2Level
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
QList< QgsSymbolV2Level > QgsSymbolV2LevelOrder
bool forceRasterRender() const
Returns whether the renderer must render as a raster.
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