QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
#include <qgsrendererv2.h>
Public Types | |
enum | Capabilities { SymbolLevels = 1, RotationField = 1 << 1, MoreSymbolsPerFeature = 1 << 2, Filter = 1 << 3, ScaleDependent = 1 << 4 } |
Public Member Functions | |
virtual | ~QgsFeatureRendererV2 () |
virtual int | capabilities () |
returns bitwise OR-ed capabilities of the renderer More... | |
virtual void | checkLegendSymbolItem (const QString &key, bool state=true) |
item in symbology was checked More... | |
virtual QgsFeatureRendererV2 * | clone () const =0 |
virtual QString | dump () const |
for debugging More... | |
virtual const QgsFeatureRendererV2 * | embeddedRenderer () const |
Returns the current embedded renderer (subrenderer) for this feature renderer. More... | |
virtual QString | filter (const QgsFields &fields=QgsFields()) |
If a renderer does not require all the features this method may be overridden and return an expression used as where clause. More... | |
virtual bool | filterNeedsGeometry () const |
Returns true if this renderer requires the geometry to apply the filter. More... | |
bool | forceRasterRender () const |
Returns whether the renderer must render as a raster. More... | |
virtual QString | legendClassificationAttribute () const |
If supported by the renderer, return classification attribute for the use in legend. More... | |
virtual QSet< QString > | legendKeysForFeature (QgsFeature &feature, QgsRenderContext &context) |
Return legend keys matching a specified feature. More... | |
virtual bool | legendSymbolItemChecked (const QString &key) |
items of symbology items in legend is checked More... | |
virtual QgsLegendSymbolList | legendSymbolItems (double scaleDenominator=-1, const QString &rule="") |
return a list of item text / symbol More... | |
virtual bool | legendSymbolItemsCheckable () const |
items of symbology items in legend should be checkable More... | |
virtual QgsLegendSymbolListV2 | legendSymbolItemsV2 () const |
Return a list of symbology items for the legend. More... | |
virtual QgsLegendSymbologyList | legendSymbologyItems (QSize iconSize) |
return a list of symbology items for the legend More... | |
virtual void | modifyRequestExtent (QgsRectangle &extent, QgsRenderContext &context) |
Allows for a renderer to modify the extent of a feature request prior to rendering. More... | |
QgsFeatureRequest::OrderBy | orderBy () const |
Get the order in which features shall be processed by this renderer. More... | |
bool | orderByEnabled () const |
Returns whether custom ordering will be applied before features are processed by this renderer. More... | |
virtual Q_DECL_DEPRECATED QgsSymbolV2 * | originalSymbolForFeature (QgsFeature &feature) |
Return symbol for feature. More... | |
virtual QgsSymbolV2 * | originalSymbolForFeature (QgsFeature &feature, QgsRenderContext &context) |
Return symbol for feature. More... | |
virtual Q_DECL_DEPRECATED QgsSymbolV2List | originalSymbolsForFeature (QgsFeature &feat) |
Equivalent of originalSymbolsForFeature() call extended to support renderers that may use more symbols per feature - similar to symbolsForFeature() More... | |
virtual QgsSymbolV2List | originalSymbolsForFeature (QgsFeature &feat, QgsRenderContext &context) |
Equivalent of originalSymbolsForFeature() call extended to support renderers that may use more symbols per feature - similar to symbolsForFeature() More... | |
QgsPaintEffect * | paintEffect () const |
Returns the current paint effect for the renderer. More... | |
virtual bool | renderFeature (QgsFeature &feature, QgsRenderContext &context, int layer=-1, bool selected=false, bool drawVertexMarker=false) |
Render a feature using this renderer in the given context. More... | |
virtual Q_DECL_DEPRECATED QString | rotationField () const |
return rotation field name (or empty string if not set or not supported by renderer) More... | |
virtual QDomElement | save (QDomDocument &doc) |
store renderer info to XML element More... | |
virtual void | setEmbeddedRenderer (QgsFeatureRendererV2 *subRenderer) |
Sets an embedded renderer (subrenderer) for this feature renderer. More... | |
void | setForceRasterRender (bool forceRaster) |
Sets whether the renderer should be rendered to a raster destination. More... | |
virtual void | setLegendSymbolItem (const QString &key, QgsSymbolV2 *symbol) |
Sets the symbol to be used for a legend symbol item. More... | |
void | setOrderBy (const QgsFeatureRequest::OrderBy &orderBy) |
Define the order in which features shall be processed by this renderer. More... | |
void | setOrderByEnabled (bool enabled) |
Sets whether custom ordering should be applied before features are processed by this renderer. More... | |
void | setPaintEffect (QgsPaintEffect *effect) |
Sets the current paint effect for the renderer. More... | |
virtual Q_DECL_DEPRECATED void | setRotationField (const QString &fieldName) |
sets rotation field of renderer (if supported by the renderer) More... | |
void | setUsingSymbolLevels (bool usingSymbolLevels) |
void | setVertexMarkerAppearance (int type, int size) |
set type and size of editing vertex markers for subsequent rendering More... | |
virtual void | startRender (QgsRenderContext &context, const QgsFields &fields)=0 |
Needs to be called when a new render cycle is started. More... | |
virtual Q_DECL_DEPRECATED void | startRender (QgsRenderContext &context, const QgsVectorLayer *vlayer) |
virtual void | stopRender (QgsRenderContext &context)=0 |
Needs to be called when a render cycle has finished to clean up. More... | |
virtual Q_DECL_DEPRECATED QgsSymbolV2 * | symbolForFeature (QgsFeature &feature) |
To be overridden. More... | |
virtual QgsSymbolV2 * | symbolForFeature (QgsFeature &feature, QgsRenderContext &context) |
To be overridden. More... | |
virtual Q_DECL_DEPRECATED QgsSymbolV2List | symbols () |
For symbol levels. More... | |
virtual QgsSymbolV2List | symbols (QgsRenderContext &context) |
Returns list of symbols used by the renderer. More... | |
virtual Q_DECL_DEPRECATED QgsSymbolV2List | symbolsForFeature (QgsFeature &feat) |
Returns list of symbols used for rendering the feature. More... | |
virtual QgsSymbolV2List | symbolsForFeature (QgsFeature &feat, QgsRenderContext &context) |
Returns list of symbols used for rendering the feature. More... | |
virtual void | toSld (QDomDocument &doc, QDomElement &element) const |
used from subclasses to create SLD Rule elements following SLD v1.1 specs More... | |
virtual void | toSld (QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const |
used from subclasses to create SLD Rule elements following SLD v1.1 specs More... | |
QString | type () const |
virtual QList< QString > | usedAttributes ()=0 |
Returns a set of attributes required for this renderer. More... | |
bool | usingSymbolLevels () const |
virtual Q_DECL_DEPRECATED bool | willRenderFeature (QgsFeature &feat) |
Returns whether the renderer will render a feature or not. More... | |
virtual bool | willRenderFeature (QgsFeature &feat, QgsRenderContext &context) |
Returns whether the renderer will render a feature or not. More... | |
virtual Q_DECL_DEPRECATED QDomElement | writeSld (QDomDocument &doc, const QgsVectorLayer &layer) const |
create the SLD UserStyle element following the SLD v1.1 specs More... | |
virtual QDomElement | writeSld (QDomDocument &doc, const QString &styleName) const |
create the SLD UserStyle element following the SLD v1.1 specs with the given name More... | |
virtual QDomElement | writeSld (QDomDocument &doc, const QString &styleName, const QgsStringMap &props) const |
create the SLD UserStyle element following the SLD v1.1 specs with the given name More... | |
Static Public Member Functions | |
static QgsFeatureRendererV2 * | defaultRenderer (QGis::GeometryType geomType) |
return a new renderer - used by default in vector layers More... | |
static QgsFeatureRendererV2 * | load (QDomElement &symbologyElem) |
create a renderer from XML element More... | |
static QgsFeatureRendererV2 * | loadSld (const QDomNode &node, QGis::GeometryType geomType, QString &errorMessage) |
Create a new renderer according to the information contained in the UserStyle element of a SLD style document. More... | |
Protected Member Functions | |
QgsFeatureRendererV2 (const QString &type) | |
Q_DECL_DEPRECATED void | copyPaintEffect (QgsFeatureRendererV2 *destRenderer) const |
Copies paint effect of this renderer to another renderer. More... | |
void | copyRendererData (QgsFeatureRendererV2 *destRenderer) const |
Clones generic renderer data to another renderer. More... | |
void | renderFeatureWithSymbol (QgsFeature &feature, QgsSymbolV2 *symbol, QgsRenderContext &context, int layer, bool selected, bool drawVertexMarker) |
void | renderVertexMarker (QPointF pt, QgsRenderContext &context) |
render editing vertex marker at specified point More... | |
void | renderVertexMarkerPolygon (QPolygonF &pts, QList< QPolygonF > *rings, QgsRenderContext &context) |
render editing vertex marker for a polygon More... | |
void | renderVertexMarkerPolyline (QPolygonF &pts, QgsRenderContext &context) |
render editing vertex marker for a polyline More... | |
void | setScaleMethodToSymbol (QgsSymbolV2 *symbol, int scaleMethod) |
Static Protected Member Functions | |
static QgsConstWkbPtr | _getLineString (QPolygonF &pts, QgsRenderContext &context, QgsConstWkbPtr &wkb, bool clipToExtent=true) |
Creates a line string in screen coordinates from a wkb string in map coordinates. More... | |
static QgsConstWkbPtr | _getPoint (QPointF &pt, QgsRenderContext &context, QgsConstWkbPtr &wkb) |
Creates a point in screen coordinates from a wkb string in map coordinates. More... | |
static QgsConstWkbPtr | _getPolygon (QPolygonF &pts, QList< QPolygonF > &holes, QgsRenderContext &context, QgsConstWkbPtr &wkb, bool clipToExtent=true) |
Creates a polygon in screen coordinates from a wkb string in map coordinates. More... | |
static void | convertSymbolRotation (QgsSymbolV2 *symbol, const QString &field) |
static void | convertSymbolSizeScale (QgsSymbolV2 *symbol, QgsSymbolV2::ScaleMethod method, const QString &field) |
Protected Attributes | |
int | mCurrentVertexMarkerSize |
The current size of editing marker. More... | |
int | mCurrentVertexMarkerType |
The current type of editing marker. More... | |
bool | mForceRaster |
QgsFeatureRequest::OrderBy | mOrderBy |
bool | mOrderByEnabled |
QgsPaintEffect * | mPaintEffect |
QString | mType |
bool | mUsingSymbolLevels |
Definition at line 84 of file qgsrendererv2.h.
Enumerator | |
---|---|
SymbolLevels | rendering with symbol levels (i.e. implements symbols(), symbolForFeature()) |
RotationField | rotate symbols by attribute value |
MoreSymbolsPerFeature | may use more than one symbol to render a feature: symbolsForFeature() will return them |
Filter | features may be filtered, i.e. some features may not be rendered (categorized, rule based ...) |
ScaleDependent | depends on scale if feature will be rendered (rule based ) |
Definition at line 202 of file qgsrendererv2.h.
|
virtual |
Definition at line 106 of file qgsrendererv2.cpp.
|
protected |
Definition at line 93 of file qgsrendererv2.cpp.
|
staticprotected |
Creates a line string in screen coordinates from a wkb string in map coordinates.
Definition at line 50 of file qgsrendererv2.cpp.
|
staticprotected |
Creates a point in screen coordinates from a wkb string in map coordinates.
Definition at line 45 of file qgsrendererv2.cpp.
|
staticprotected |
Creates a polygon in screen coordinates from a wkb string in map coordinates.
Definition at line 55 of file qgsrendererv2.cpp.
|
inlinevirtual |
returns bitwise OR-ed capabilities of the renderer
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, QgsSingleSymbolRendererV2, and QgsPointDisplacementRenderer.
Definition at line 212 of file qgsrendererv2.h.
|
virtual |
item in symbology was checked
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, and QgsPointDisplacementRenderer.
Definition at line 380 of file qgsrendererv2.cpp.
|
pure virtual |
|
staticprotected |
Definition at line 549 of file qgsrendererv2.cpp.
|
staticprotected |
Definition at line 524 of file qgsrendererv2.cpp.
|
protected |
Copies paint effect of this renderer to another renderer.
destRenderer | destination renderer for copied effect |
Definition at line 85 of file qgsrendererv2.cpp.
|
protected |
Clones generic renderer data to another renderer.
Currently clones
destRenderer | destination renderer for copied effect |
Definition at line 75 of file qgsrendererv2.cpp.
|
static |
return a new renderer - used by default in vector layers
Definition at line 111 of file qgsrendererv2.cpp.
|
virtual |
for debugging
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, QgsSingleSymbolRendererV2, QgsHeatmapRenderer, and QgsNullSymbolRenderer.
Definition at line 176 of file qgsrendererv2.cpp.
|
inlinevirtual |
Returns the current embedded renderer (subrenderer) for this feature renderer.
The base class implementation does not use subrenderers and will always return null.
Reimplemented in QgsInvertedPolygonRenderer, and QgsPointDisplacementRenderer.
Definition at line 449 of file qgsrendererv2.h.
|
inlinevirtual |
If a renderer does not require all the features this method may be overridden and return an expression used as where clause.
This will be called once after startRender() and before the first call to renderFeature(). By default this returns a null string and all features will be requested. You do not need to specify the extent in here, this is taken care of separately and will be combined with a filter returned from this method.
Reimplemented in QgsRuleBasedRendererV2, and QgsCategorizedSymbolRendererV2.
Definition at line 169 of file qgsrendererv2.h.
|
virtual |
Returns true if this renderer requires the geometry to apply the filter.
Reimplemented in QgsRuleBasedRendererV2.
Definition at line 156 of file qgsrendererv2.cpp.
|
inline |
Returns whether the renderer must render as a raster.
Definition at line 392 of file qgsrendererv2.h.
|
inlinevirtual |
If supported by the renderer, return classification attribute for the use in legend.
Reimplemented in QgsGraduatedSymbolRendererV2, and QgsCategorizedSymbolRendererV2.
Definition at line 306 of file qgsrendererv2.h.
|
virtual |
Return legend keys matching a specified feature.
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsSingleSymbolRendererV2, and QgsPointDisplacementRenderer.
Definition at line 144 of file qgsrendererv2.cpp.
|
virtual |
items of symbology items in legend is checked
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, and QgsPointDisplacementRenderer.
Definition at line 374 of file qgsrendererv2.cpp.
|
virtual |
return a list of item text / symbol
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, QgsPointDisplacementRenderer, and QgsSingleSymbolRendererV2.
Definition at line 392 of file qgsrendererv2.cpp.
|
virtual |
items of symbology items in legend should be checkable
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, and QgsPointDisplacementRenderer.
Definition at line 369 of file qgsrendererv2.cpp.
|
virtual |
Return a list of symbology items for the legend.
Better choice than legendSymbolItems(). Default fallback implementation just uses legendSymbolItems() implementation
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, and QgsSingleSymbolRendererV2.
Definition at line 399 of file qgsrendererv2.cpp.
|
virtual |
return a list of symbology items for the legend
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, QgsPointDisplacementRenderer, and QgsSingleSymbolRendererV2.
Definition at line 362 of file qgsrendererv2.cpp.
|
static |
create a renderer from XML element
Definition at line 198 of file qgsrendererv2.cpp.
|
static |
Create a new renderer according to the information contained in the UserStyle element of a SLD style document.
node | the node in the SLD document whose the UserStyle element is a child |
geomType | the geometry type of the features, used to convert Symbolizer elements |
errorMessage | it will contain the error message if something went wrong |
Definition at line 252 of file qgsrendererv2.cpp.
|
inlinevirtual |
Allows for a renderer to modify the extent of a feature request prior to rendering.
extent | reference to request's filter extent. Modify extent to change the extent of feature request |
context | render context |
Reimplemented in QgsHeatmapRenderer.
Definition at line 372 of file qgsrendererv2.h.
QgsFeatureRequest::OrderBy QgsFeatureRendererV2::orderBy | ( | ) | const |
Get the order in which features shall be processed by this renderer.
Definition at line 504 of file qgsrendererv2.cpp.
bool QgsFeatureRendererV2::orderByEnabled | ( | ) | const |
Returns whether custom ordering will be applied before features are processed by this renderer.
Definition at line 514 of file qgsrendererv2.cpp.
|
virtual |
Return symbol for feature.
The difference compared to symbolForFeature() is that it returns original symbol which can be used as an identifier for renderer's rule - the former may return a temporary replacement of a symbol for use in rendering.
Definition at line 132 of file qgsrendererv2.cpp.
|
virtual |
Return symbol for feature.
The difference compared to symbolForFeature() is that it returns original symbol which can be used as an identifier for renderer's rule - the former may return a temporary replacement of a symbol for use in rendering.
Reimplemented in QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, QgsPointDisplacementRenderer, QgsSingleSymbolRendererV2, and QgsNullSymbolRenderer.
Definition at line 139 of file qgsrendererv2.cpp.
|
virtual |
Equivalent of originalSymbolsForFeature() call extended to support renderers that may use more symbols per feature - similar to symbolsForFeature()
Definition at line 475 of file qgsrendererv2.cpp.
|
virtual |
Equivalent of originalSymbolsForFeature() call extended to support renderers that may use more symbols per feature - similar to symbolsForFeature()
Reimplemented in QgsRuleBasedRendererV2, QgsInvertedPolygonRenderer, and QgsPointDisplacementRenderer.
Definition at line 485 of file qgsrendererv2.cpp.
QgsPaintEffect * QgsFeatureRendererV2::paintEffect | ( | ) | const |
Returns the current paint effect for the renderer.
Definition at line 493 of file qgsrendererv2.cpp.
|
virtual |
Render a feature using this renderer in the given context.
Must be called between startRender() and stopRender() calls. Default implementation renders a symbol as determined by symbolForFeature() call. Returns true if the feature has been returned (this is used for example to determine whether the feature may be labelled).
If layer is not -1, the renderer should draw only a particula layer from symbols (in order to support symbol level rendering).
Reimplemented in QgsRuleBasedRendererV2, QgsInvertedPolygonRenderer, QgsPointDisplacementRenderer, QgsHeatmapRenderer, and QgsNullSymbolRenderer.
Definition at line 161 of file qgsrendererv2.cpp.
|
protected |
Definition at line 171 of file qgsrendererv2.cpp.
|
protected |
render editing vertex marker at specified point
Definition at line 429 of file qgsrendererv2.cpp.
|
protected |
render editing vertex marker for a polygon
Definition at line 442 of file qgsrendererv2.cpp.
|
protected |
render editing vertex marker for a polyline
Definition at line 436 of file qgsrendererv2.cpp.
|
inlinevirtual |
return rotation field name (or empty string if not set or not supported by renderer)
Reimplemented in QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, and QgsSingleSymbolRendererV2.
Definition at line 313 of file qgsrendererv2.h.
|
virtual |
store renderer info to XML element
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, QgsPointDisplacementRenderer, QgsSingleSymbolRendererV2, QgsNullSymbolRenderer, QgsHeatmapRenderer, and Qgs25DRenderer.
Definition at line 233 of file qgsrendererv2.cpp.
|
inlinevirtual |
Sets an embedded renderer (subrenderer) for this feature renderer.
The base class implementation does nothing with subrenderers, but individual derived classes can use these to modify their behaviour.
subRenderer | the embedded renderer. Ownership will be transferred. |
Reimplemented in QgsInvertedPolygonRenderer, and QgsPointDisplacementRenderer.
Definition at line 442 of file qgsrendererv2.h.
|
inline |
Sets whether the renderer should be rendered to a raster destination.
forceRaster | set to true if renderer must be drawn on a raster surface. This may be desirable for highly detailed layers where rendering as a vector would result in a large, complex vector output. |
Definition at line 401 of file qgsrendererv2.h.
|
virtual |
Sets the symbol to be used for a legend symbol item.
key | rule key for legend symbol |
symbol | new symbol for legend item. Ownership is transferred to renderer. |
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, QgsPointDisplacementRenderer, and QgsSingleSymbolRendererV2.
Definition at line 386 of file qgsrendererv2.cpp.
void QgsFeatureRendererV2::setOrderBy | ( | const QgsFeatureRequest::OrderBy & | orderBy | ) |
Define the order in which features shall be processed by this renderer.
Definition at line 509 of file qgsrendererv2.cpp.
void QgsFeatureRendererV2::setOrderByEnabled | ( | bool | enabled | ) |
Sets whether custom ordering should be applied before features are processed by this renderer.
enabled | set to true to enable custom feature ordering |
Definition at line 519 of file qgsrendererv2.cpp.
void QgsFeatureRendererV2::setPaintEffect | ( | QgsPaintEffect * | effect | ) |
Sets the current paint effect for the renderer.
effect | paint effect. Ownership is transferred to the renderer. |
Definition at line 498 of file qgsrendererv2.cpp.
|
inlinevirtual |
sets rotation field of renderer (if supported by the renderer)
Reimplemented in QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, and QgsSingleSymbolRendererV2.
Definition at line 317 of file qgsrendererv2.h.
|
protected |
Definition at line 60 of file qgsrendererv2.cpp.
|
inline |
Definition at line 228 of file qgsrendererv2.h.
void QgsFeatureRendererV2::setVertexMarkerAppearance | ( | int | type, |
int | size | ||
) |
set type and size of editing vertex markers for subsequent rendering
Definition at line 411 of file qgsrendererv2.cpp.
|
pure virtual |
Needs to be called when a new render cycle is started.
context | Additional information passed to the renderer about the job which will be rendered |
fields | The fields available for rendering |
Implemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsPointDisplacementRenderer, QgsInvertedPolygonRenderer, QgsHeatmapRenderer, QgsSingleSymbolRendererV2, QgsNullSymbolRenderer, and Qgs25DRenderer.
|
virtual |
Definition at line 151 of file qgsrendererv2.cpp.
|
pure virtual |
Needs to be called when a render cycle has finished to clean up.
Implemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsPointDisplacementRenderer, QgsInvertedPolygonRenderer, QgsHeatmapRenderer, QgsSingleSymbolRendererV2, QgsNullSymbolRenderer, and Qgs25DRenderer.
|
virtual |
To be overridden.
Must be called between startRender() and stopRender() calls.
feature | feature |
Definition at line 116 of file qgsrendererv2.cpp.
|
virtual |
To be overridden.
Must be called between startRender() and stopRender() calls.
feature | feature |
context | render context |
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, QgsPointDisplacementRenderer, Qgs25DRenderer, QgsHeatmapRenderer, QgsNullSymbolRenderer, and QgsSingleSymbolRendererV2.
Definition at line 123 of file qgsrendererv2.cpp.
|
virtual |
For symbol levels.
Definition at line 181 of file qgsrendererv2.cpp.
|
virtual |
Returns list of symbols used by the renderer.
context | render context |
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, QgsSingleSymbolRendererV2, QgsPointDisplacementRenderer, QgsHeatmapRenderer, QgsNullSymbolRenderer, and Qgs25DRenderer.
Definition at line 187 of file qgsrendererv2.cpp.
|
virtual |
Returns list of symbols used for rendering the feature.
For renderers that do not support MoreSymbolsPerFeature it is more efficient to use symbolForFeature()
Definition at line 457 of file qgsrendererv2.cpp.
|
virtual |
Returns list of symbols used for rendering the feature.
For renderers that do not support MoreSymbolsPerFeature it is more efficient to use symbolForFeature()
Reimplemented in QgsRuleBasedRendererV2, QgsInvertedPolygonRenderer, and QgsPointDisplacementRenderer.
Definition at line 467 of file qgsrendererv2.cpp.
|
inlinevirtual |
used from subclasses to create SLD Rule elements following SLD v1.1 specs
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsSingleSymbolRendererV2, and QgsPointDisplacementRenderer.
Definition at line 262 of file qgsrendererv2.h.
|
inlinevirtual |
used from subclasses to create SLD Rule elements following SLD v1.1 specs
Reimplemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsSingleSymbolRendererV2, and QgsPointDisplacementRenderer.
Definition at line 267 of file qgsrendererv2.h.
|
inline |
Definition at line 92 of file qgsrendererv2.h.
Returns a set of attributes required for this renderer.
TODO QGIS3: Change QList to QSet
Implemented in QgsRuleBasedRendererV2, QgsGraduatedSymbolRendererV2, QgsCategorizedSymbolRendererV2, QgsInvertedPolygonRenderer, QgsPointDisplacementRenderer, QgsHeatmapRenderer, QgsSingleSymbolRendererV2, QgsNullSymbolRenderer, and Qgs25DRenderer.
|
inline |
Definition at line 227 of file qgsrendererv2.h.
|
virtual |
Returns whether the renderer will render a feature or not.
Must be called between startRender() and stopRender() calls. Default implementation uses symbolForFeature().
Definition at line 417 of file qgsrendererv2.cpp.
|
virtual |
Returns whether the renderer will render a feature or not.
Must be called between startRender() and stopRender() calls. Default implementation uses symbolForFeature().
Reimplemented in QgsRuleBasedRendererV2, QgsInvertedPolygonRenderer, QgsPointDisplacementRenderer, and QgsNullSymbolRenderer.
Definition at line 424 of file qgsrendererv2.cpp.
|
virtual |
create the SLD UserStyle element following the SLD v1.1 specs
Definition at line 341 of file qgsrendererv2.cpp.
|
inlinevirtual |
create the SLD UserStyle element following the SLD v1.1 specs with the given name
Definition at line 241 of file qgsrendererv2.h.
|
virtual |
create the SLD UserStyle element following the SLD v1.1 specs with the given name
Definition at line 347 of file qgsrendererv2.cpp.
|
protected |
The current size of editing marker.
Definition at line 511 of file qgsrendererv2.h.
|
protected |
The current type of editing marker.
Definition at line 509 of file qgsrendererv2.h.
|
protected |
Definition at line 515 of file qgsrendererv2.h.
|
protected |
Definition at line 526 of file qgsrendererv2.h.
|
protected |
Definition at line 528 of file qgsrendererv2.h.
|
protected |
Definition at line 513 of file qgsrendererv2.h.
|
protected |
Definition at line 504 of file qgsrendererv2.h.
|
protected |
Definition at line 506 of file qgsrendererv2.h.