Public Member Functions |
| QgsSingleSymbolRendererV2 (QgsSymbolV2 *symbol) |
virtual | ~QgsSingleSymbolRendererV2 () |
virtual QgsSymbolV2 * | symbolForFeature (QgsFeature &feature) |
| to be overridden
|
virtual QgsSymbolV2 * | originalSymbolForFeature (QgsFeature &feature) |
| Return symbol for feature.
|
virtual void | startRender (QgsRenderContext &context, const QgsFields &fields) |
virtual void | stopRender (QgsRenderContext &context) |
virtual QList< QString > | usedAttributes () |
QgsSymbolV2 * | symbol () const |
void | setSymbol (QgsSymbolV2 *s) |
void | setRotationField (QString fieldOrExpression) |
| sets rotation field of renderer (if supported by the renderer)
|
QString | rotationField () const |
| return rotation field name (or empty string if not set or not supported by renderer)
|
void | setSizeScaleField (QString fieldOrExpression) |
QString | sizeScaleField () const |
void | setScaleMethod (QgsSymbolV2::ScaleMethod scaleMethod) |
QgsSymbolV2::ScaleMethod | scaleMethod () const |
virtual QString | dump () const |
| for debugging
|
virtual QgsFeatureRendererV2 * | clone () const |
virtual void | toSld (QDomDocument &doc, QDomElement &element) const |
| used from subclasses to create SLD Rule elements following SLD v1.1 specs
|
virtual int | capabilities () |
| returns bitwise OR-ed capabilities of the renderer
|
virtual QgsSymbolV2List | symbols () |
| for symbol levels
|
virtual QDomElement | save (QDomDocument &doc) |
| store renderer info to XML element
|
virtual QgsLegendSymbologyList | legendSymbologyItems (QSize iconSize) |
| return a list of symbology items for the legend
|
virtual QgsLegendSymbolList | legendSymbolItems (double scaleDenominator=-1, QString rule=QString()) |
| return a list of item text / symbol
|
virtual QgsLegendSymbolListV2 | legendSymbolItemsV2 () const |
| Return a list of symbology items for the legend.
|
QString | type () const |
virtual Q_DECL_DEPRECATED void | startRender (QgsRenderContext &context, const QgsVectorLayer *vlayer) |
virtual | ~QgsFeatureRendererV2 () |
virtual bool | renderFeature (QgsFeature &feature, QgsRenderContext &context, int layer=-1, bool selected=false, bool drawVertexMarker=false) |
bool | usingSymbolLevels () const |
void | setUsingSymbolLevels (bool usingSymbolLevels) |
virtual QDomElement | writeSld (QDomDocument &doc, const QgsVectorLayer &layer) const |
| create the SLD UserStyle element following the SLD v1.1 specs
|
virtual bool | legendSymbolItemsCheckable () const |
| items of symbology items in legend should be checkable
|
virtual bool | legendSymbolItemChecked (QString key) |
| items of symbology items in legend is checked
|
virtual void | checkLegendSymbolItem (QString key, bool state=true) |
| item in symbology was checked
|
virtual QString | legendClassificationAttribute () const |
| If supported by the renderer, return classification attribute for the use in legend.
|
void | setVertexMarkerAppearance (int type, int size) |
| set type and size of editing vertex markers for subsequent rendering
|
virtual bool | willRenderFeature (QgsFeature &feat) |
| return whether the renderer will render a feature or not.
|
virtual QgsSymbolV2List | symbolsForFeature (QgsFeature &feat) |
| return list of symbols used for rendering the feature.
|
virtual QgsSymbolV2List | originalSymbolsForFeature (QgsFeature &feat) |
| Equivalent of originalSymbolsForFeature() call extended to support renderers that may use more symbols per feature - similar to symbolsForFeature()
|
Additional Inherited Members |
enum | Capabilities {
SymbolLevels = 1,
RotationField = 1 << 1,
MoreSymbolsPerFeature = 1 << 2,
Filter = 1 << 3,
ScaleDependent = 1 << 4
} |
| QgsFeatureRendererV2 (QString type) |
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
|
void | renderVertexMarkerPolyline (QPolygonF &pts, QgsRenderContext &context) |
| render editing vertex marker for a polyline
|
void | renderVertexMarkerPolygon (QPolygonF &pts, QList< QPolygonF > *rings, QgsRenderContext &context) |
| render editing vertex marker for a polygon
|
void | setScaleMethodToSymbol (QgsSymbolV2 *symbol, int scaleMethod) |
static const unsigned char * | _getPoint (QPointF &pt, QgsRenderContext &context, const unsigned char *wkb) |
static const unsigned char * | _getLineString (QPolygonF &pts, QgsRenderContext &context, const unsigned char *wkb) |
static const unsigned char * | _getPolygon (QPolygonF &pts, QList< QPolygonF > &holes, QgsRenderContext &context, const unsigned char *wkb) |