Public Member Functions |
| QgsHeatmapRenderer () |
virtual | ~QgsHeatmapRenderer () |
virtual QgsFeatureRendererV2 * | clone () const override |
QgsVectorColorRampV2 * | colorRamp () const |
| Returns the color ramp used for shading the heatmap.
|
virtual QString | dump () const override |
| for debugging
|
double | invertRamp () const |
| Returns whether the ramp is inverted.
|
double | maximumValue () const |
| Returns the maximum value used for shading the heatmap.
|
virtual void | modifyRequestExtent (QgsRectangle &extent, QgsRenderContext &context) override |
| Allows for a renderer to modify the extent of a feature request prior to rendering.
|
double | radius () const |
| Returns the radius for the heatmap.
|
const QgsMapUnitScale & | radiusMapUnitScale () const |
| Returns the map unit scale used for the heatmap's radius.
|
QgsSymbolV2::OutputUnit | radiusUnit () const |
| Returns the units used for the heatmap's radius.
|
virtual bool | renderFeature (QgsFeature &feature, QgsRenderContext &context, int layer=-1, bool selected=false, bool drawVertexMarker=false) override |
double | renderQuality () const |
| Returns the render quality used for drawing the heatmap.
|
virtual QDomElement | save (QDomDocument &doc) override |
| store renderer info to XML element
|
void | setColorRamp (QgsVectorColorRampV2 *ramp) |
| Sets the color ramp to use for shading the heatmap.
|
void | setInvertRamp (const bool invert) |
| Sets whether the ramp is inverted.
|
void | setMaximumValue (const double value) |
| Sets the maximum value used for shading the heatmap.
|
void | setRadius (const double radius) |
| Sets the radius for the heatmap.
|
void | setRadiusMapUnitScale (const QgsMapUnitScale &scale) |
| Sets the map unit scale used for the heatmap's radius.
|
void | setRadiusUnit (const QgsSymbolV2::OutputUnit unit) |
| Sets the units used for the heatmap's radius.
|
void | setRenderQuality (const int quality) |
| Sets the render quality used for drawing the heatmap.
|
void | setWeightExpression (const QString &expression) |
| Sets the expression used for weighting points when generating the heatmap.
|
virtual void | startRender (QgsRenderContext &context, const QgsFields &fields) override |
virtual void | stopRender (QgsRenderContext &context) override |
virtual QgsSymbolV2 * | symbolForFeature (QgsFeature &feature) override |
| to be overridden
|
virtual QgsSymbolV2List | symbols () override |
| for symbol levels
|
virtual QList< QString > | usedAttributes () override |
QString | weightExpression () const |
| Returns the expression used for weighting points when generating the heatmap.
|
virtual | ~QgsFeatureRendererV2 () |
virtual int | capabilities () |
| returns bitwise OR-ed capabilities of the renderer
|
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.
|
virtual bool | legendSymbolItemChecked (QString key) |
| items of symbology items in legend is checked
|
virtual QgsLegendSymbolList | legendSymbolItems (double scaleDenominator=-1, QString rule="") |
| return a list of item text / symbol
|
virtual bool | legendSymbolItemsCheckable () const |
| items of symbology items in legend should be checkable
|
virtual QgsLegendSymbolListV2 | legendSymbolItemsV2 () const |
| Return a list of symbology items for the legend.
|
virtual QgsLegendSymbologyList | legendSymbologyItems (QSize iconSize) |
| return a list of symbology items for the legend
|
virtual QgsSymbolV2 * | originalSymbolForFeature (QgsFeature &feature) |
| Return symbol for feature.
|
virtual QgsSymbolV2List | originalSymbolsForFeature (QgsFeature &feat) |
| Equivalent of originalSymbolsForFeature() call extended to support renderers that may use more symbols per feature - similar to symbolsForFeature()
|
virtual QString | rotationField () const |
| return rotation field name (or empty string if not set or not supported by renderer)
|
virtual void | setRotationField (QString fieldName) |
| sets rotation field of renderer (if supported by the renderer)
|
void | setUsingSymbolLevels (bool usingSymbolLevels) |
void | setVertexMarkerAppearance (int type, int size) |
| set type and size of editing vertex markers for subsequent rendering
|
virtual Q_DECL_DEPRECATED void | startRender (QgsRenderContext &context, const QgsVectorLayer *vlayer) |
virtual QgsSymbolV2List | symbolsForFeature (QgsFeature &feat) |
| return list of symbols used for rendering the feature.
|
virtual void | toSld (QDomDocument &doc, QDomElement &element) const |
| used from subclasses to create SLD Rule elements following SLD v1.1 specs
|
QString | type () const |
bool | usingSymbolLevels () const |
virtual bool | willRenderFeature (QgsFeature &feat) |
| return whether the renderer will render a feature or not.
|
virtual Q_DECL_DEPRECATED
QDomElement | writeSld (QDomDocument &doc, const QgsVectorLayer &layer) const |
| create the SLD UserStyle element following the SLD v1.1 specs
|
virtual QDomElement | writeSld (QDomDocument &doc, const QString &styleName) const |
| create the SLD UserStyle element following the SLD v1.1 specs with the given name
|
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 | renderVertexMarkerPolygon (QPolygonF &pts, QList< QPolygonF > *rings, QgsRenderContext &context) |
| render editing vertex marker for a polygon
|
void | renderVertexMarkerPolyline (QPolygonF &pts, QgsRenderContext &context) |
| render editing vertex marker for a polyline
|
void | setScaleMethodToSymbol (QgsSymbolV2 *symbol, int scaleMethod) |
static const unsigned char * | _getLineString (QPolygonF &pts, QgsRenderContext &context, const unsigned char *wkb) |
static const unsigned char * | _getPoint (QPointF &pt, QgsRenderContext &context, const unsigned char *wkb) |
static const unsigned char * | _getPolygon (QPolygonF &pts, QList< QPolygonF > &holes, QgsRenderContext &context, const unsigned char *wkb) |
int | mCurrentVertexMarkerSize |
| The current size of editing marker.
|
int | mCurrentVertexMarkerType |
| The current type of editing marker.
|
QString | mType |
bool | mUsingSymbolLevels |
A renderer which draws points as a live heatmap.
- Note
- Added in version 2.7
Definition at line 33 of file qgsheatmaprenderer.h.