|
| QgsGraduatedSymbolRenderer (const QString &attrName=QString(), const QgsRangeList &ranges=QgsRangeList()) |
|
| ~QgsGraduatedSymbolRenderer () override |
|
bool | accept (QgsStyleEntityVisitorInterface *visitor) const override |
| Accepts the specified symbology visitor, causing it to visit all symbols associated with the renderer. More...
|
|
void | addBreak (double breakValue, bool updateSymbols=true) |
| Add a breakpoint by splitting existing classes so that the specified value becomes a break between two classes. More...
|
|
void | addClass (const QgsRendererRange &range) |
|
void | addClass (double lower, double upper) |
|
void | addClass (QgsSymbol *symbol) |
|
Q_DECL_DEPRECATED bool | astride () const |
| Returns if we want to have a central class astride the pivot value. More...
|
|
void | calculateLabelPrecision (bool updateRanges=true) |
| Reset the label decimal places to a numberbased on the minimum class interval. More...
|
|
QgsFeatureRenderer::Capabilities | capabilities () override |
| Returns details about internals of this renderer. More...
|
|
void | checkLegendSymbolItem (const QString &key, bool state=true) override |
| item in symbology was checked More...
|
|
QString | classAttribute () const |
| Returns the attribute name (or expression) used for the classification. More...
|
|
QgsClassificationMethod * | classificationMethod () const |
| Returns the classification method. More...
|
|
QgsGraduatedSymbolRenderer * | clone () const override |
| Create a deep copy of this renderer. More...
|
|
QgsDataDefinedSizeLegend * | dataDefinedSizeLegend () const |
| Returns configuration of appearance of legend when using data-defined size for marker symbols. More...
|
|
void | deleteAllClasses () |
|
void | deleteClass (int idx) |
|
QString | dump () const override |
| Returns debug information about this renderer. More...
|
|
bool | filterNeedsGeometry () const override |
| Returns true if this renderer requires the geometry to apply the filter. More...
|
|
Qgis::GraduatedMethod | graduatedMethod () const |
| Returns the method used for graduation (either size or color). More...
|
|
Q_DECL_DEPRECATED QgsRendererRangeLabelFormat | labelFormat () const |
| Returns the label format used to generate default classification labels. More...
|
|
QString | legendClassificationAttribute () const override |
| If supported by the renderer, return classification attribute for the use in legend. More...
|
|
QSet< QString > | legendKeysForFeature (const QgsFeature &feature, QgsRenderContext &context) const override |
| Returns legend keys matching a specified feature. More...
|
|
QString | legendKeyToExpression (const QString &key, QgsVectorLayer *layer, bool &ok) const override |
| Attempts to convert the specified legend rule key to a QGIS expression matching the features displayed using that key. More...
|
|
bool | legendSymbolItemChecked (const QString &key) override |
| items of symbology items in legend is checked More...
|
|
QgsLegendSymbolList | legendSymbolItems () const override |
| Returns a list of symbology items for the legend. More...
|
|
bool | legendSymbolItemsCheckable () const override |
| items of symbology items in legend should be checkable More...
|
|
double | maxSymbolSize () const |
| Returns the max symbol size when graduated by size. More...
|
|
double | minSymbolSize () const |
| Returns the min symbol size when graduated by size. More...
|
|
Q_DECL_DEPRECATED Mode | mode () const |
|
void | moveClass (int from, int to) |
| Moves the category at index position from to index position to. More...
|
|
QgsSymbol * | originalSymbolForFeature (const QgsFeature &feature, QgsRenderContext &context) const override |
| Returns symbol for feature. More...
|
|
const QgsRendererRange * | rangeForValue (double value) const |
| Returns the renderer range matching the provided value, or nullptr if no range matches the value. More...
|
|
const QgsRangeList & | ranges () const |
| Returns a list of all ranges used in the classification. More...
|
|
bool | rangesHaveGaps () const |
| Tests whether classes assigned to the renderer have gaps between the ranges. More...
|
|
bool | rangesOverlap () const |
| Tests whether classes assigned to the renderer have ranges which overlap. More...
|
|
QDomElement | save (QDomDocument &doc, const QgsReadWriteContext &context) override |
| Stores renderer properties to an XML element. More...
|
|
Q_DECL_DEPRECATED void | setAstride (bool astride) |
| Set if we want a central class astride the pivot value. More...
|
|
void | setClassAttribute (const QString &attr) |
| Sets the attribute name (or expression) used for the classification. More...
|
|
void | setClassificationMethod (QgsClassificationMethod *method) |
| Defines the classification method This will take ownership of the method. More...
|
|
void | setDataDefinedSizeLegend (QgsDataDefinedSizeLegend *settings) |
| Configures appearance of legend when renderer is configured to use data-defined size for marker symbols. More...
|
|
void | setGraduatedMethod (Qgis::GraduatedMethod method) |
| Set the method used for graduation (either size or color). More...
|
|
Q_DECL_DEPRECATED void | setLabelFormat (const QgsRendererRangeLabelFormat &labelFormat, bool updateRanges=false) |
| Set the label format used to generate default classification labels. More...
|
|
void | setLegendSymbolItem (const QString &key, QgsSymbol *symbol) override |
| Sets the symbol to be used for a legend symbol item. More...
|
|
Q_DECL_DEPRECATED void | setMode (Mode mode) |
|
void | setSourceColorRamp (QgsColorRamp *ramp) |
| Sets the source color ramp. More...
|
|
void | setSourceSymbol (QgsSymbol *sym) |
| Sets the source symbol for the renderer, which is the base symbol used for the each classes' symbol before applying the classes' color. More...
|
|
void | setSymbolSizes (double minSize, double maxSize) |
| set varying symbol size for classes More...
|
|
Q_DECL_DEPRECATED void | setSymmetryPoint (double symmetryPoint) |
| Set the pivot point. More...
|
|
Q_DECL_DEPRECATED void | setUseSymmetricMode (bool useSymmetricMode) |
| Set if we want to classify symmetric around a given value. More...
|
|
void | sortByLabel (Qt::SortOrder order=Qt::AscendingOrder) |
|
void | sortByValue (Qt::SortOrder order=Qt::AscendingOrder) |
|
QgsColorRamp * | sourceColorRamp () |
| Returns the source color ramp, from which each classes' color is derived. More...
|
|
const QgsColorRamp * | sourceColorRamp () const |
| Returns the source color ramp, from which each classes' color is derived. More...
|
|
QgsSymbol * | sourceSymbol () |
| Returns the renderer's source symbol, which is the base symbol used for the each classes' symbol before applying the classes' color. More...
|
|
const QgsSymbol * | sourceSymbol () const |
| Returns the renderer's source symbol, which is the base symbol used for the each classes' symbol before applying the classes' color. More...
|
|
void | startRender (QgsRenderContext &context, const QgsFields &fields) override |
| Must be called when a new render cycle is started. More...
|
|
void | stopRender (QgsRenderContext &context) override |
| Must be called when a render cycle has finished, to allow the renderer to clean up. More...
|
|
QgsSymbol * | symbolForFeature (const QgsFeature &feature, QgsRenderContext &context) const override |
| To be overridden. More...
|
|
QgsSymbolList | symbols (QgsRenderContext &context) const override |
| Returns list of symbols used by the renderer. More...
|
|
Q_DECL_DEPRECATED double | symmetryPoint () const |
| Returns the pivot value for symmetric classification. More...
|
|
void | toSld (QDomDocument &doc, QDomElement &element, const QVariantMap &props=QVariantMap()) const override |
| used from subclasses to create SLD Rule elements following SLD v1.1 specs More...
|
|
void | updateClasses (const QgsVectorLayer *vl, int nclasses) |
| Recalculate classes for a layer. More...
|
|
Q_DECL_DEPRECATED void | updateClasses (QgsVectorLayer *vlayer, Mode mode, int nclasses, bool useSymmetricMode=false, double symmetryPoint=0.0, bool astride=false) |
| Recalculate classes for a layer. More...
|
|
void | updateColorRamp (QgsColorRamp *ramp=nullptr) |
| Update the color ramp used. More...
|
|
bool | updateRangeLabel (int rangeIndex, const QString &label) |
|
void | updateRangeLabels () |
| Updates the labels of the ranges. More...
|
|
bool | updateRangeLowerValue (int rangeIndex, double value) |
|
bool | updateRangeRenderState (int rangeIndex, bool render) |
|
bool | updateRangeSymbol (int rangeIndex, QgsSymbol *symbol) |
|
bool | updateRangeUpperValue (int rangeIndex, double value) |
|
void | updateSymbols (QgsSymbol *sym) |
| Update all the symbols but leave breaks and colors. More...
|
|
QSet< QString > | usedAttributes (const QgsRenderContext &context) const override |
| Returns a list of attributes required by this renderer. More...
|
|
Q_DECL_DEPRECATED bool | useSymmetricMode () const |
| Returns if we want to classify symmetric around a given value. More...
|
|
virtual | ~QgsFeatureRenderer () |
|
virtual bool | accept (QgsStyleEntityVisitorInterface *visitor) const |
| Accepts the specified symbology visitor, causing it to visit all symbols associated with the renderer. More...
|
|
virtual QgsFeatureRenderer::Capabilities | capabilities () |
| Returns details about internals of this renderer. More...
|
|
virtual void | checkLegendSymbolItem (const QString &key, bool state=true) |
| item in symbology was checked More...
|
|
virtual QgsFeatureRenderer * | clone () const =0 |
| Create a deep copy of this renderer. More...
|
|
void | copyRendererData (QgsFeatureRenderer *destRenderer) const |
| Clones generic renderer data to another renderer. More...
|
|
virtual QString | dump () const |
| Returns debug information about this renderer. More...
|
|
virtual const QgsFeatureRenderer * | 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 (const QgsFeature &feature, QgsRenderContext &context) const |
| Returns legend keys matching a specified feature. More...
|
|
virtual QString | legendKeyToExpression (const QString &key, QgsVectorLayer *layer, bool &ok) const |
| Attempts to convert the specified legend rule key to a QGIS expression matching the features displayed using that key. More...
|
|
virtual bool | legendSymbolItemChecked (const QString &key) |
| items of symbology items in legend is checked More...
|
|
virtual QgsLegendSymbolList | legendSymbolItems () const |
| Returns a list of symbology items for the legend. More...
|
|
virtual bool | legendSymbolItemsCheckable () const |
| items of symbology items in legend should be checkable 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 |
| Gets 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 QgsSymbol * | originalSymbolForFeature (const QgsFeature &feature, QgsRenderContext &context) const |
| Returns symbol for feature. More...
|
|
virtual QgsSymbolList | originalSymbolsForFeature (const QgsFeature &feature, QgsRenderContext &context) const |
| 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...
|
|
double | referenceScale () const |
| Returns the symbology reference scale. More...
|
|
virtual bool | renderFeature (const QgsFeature &feature, QgsRenderContext &context, int layer=-1, bool selected=false, bool drawVertexMarker=false) SIP_THROW(QgsCsException) |
| Render a feature using this renderer in the given context. More...
|
|
virtual QDomElement | save (QDomDocument &doc, const QgsReadWriteContext &context) |
| Stores renderer properties to an XML element. More...
|
|
virtual void | setEmbeddedRenderer (QgsFeatureRenderer *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, QgsSymbol *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...
|
|
void | setReferenceScale (double scale) |
| Sets the symbology reference scale. More...
|
|
void | setUsingSymbolLevels (bool usingSymbolLevels) |
|
void | setVertexMarkerAppearance (Qgis::VertexMarkerType type, double size) |
| Sets type and size of editing vertex markers for subsequent rendering. More...
|
|
virtual void | startRender (QgsRenderContext &context, const QgsFields &fields) |
| Must be called when a new render cycle is started. More...
|
|
virtual void | stopRender (QgsRenderContext &context) |
| Must be called when a render cycle has finished, to allow the renderer to clean up. More...
|
|
virtual QgsSymbol * | symbolForFeature (const QgsFeature &feature, QgsRenderContext &context) const =0 |
| To be overridden. More...
|
|
virtual QgsSymbolList | symbols (QgsRenderContext &context) const |
| Returns list of symbols used by the renderer. More...
|
|
virtual QgsSymbolList | symbolsForFeature (const QgsFeature &feature, QgsRenderContext &context) const |
| Returns list of symbols used for rendering the feature. More...
|
|
virtual void | toSld (QDomDocument &doc, QDomElement &element, const QVariantMap &props=QVariantMap()) const |
| used from subclasses to create SLD Rule elements following SLD v1.1 specs More...
|
|
QString | type () const |
|
virtual QSet< QString > | usedAttributes (const QgsRenderContext &context) const =0 |
| Returns a list of attributes required by this renderer. More...
|
|
virtual bool | usesEmbeddedSymbols () const |
| Returns true if the renderer uses embedded symbols for features. More...
|
|
bool | usingSymbolLevels () const |
|
virtual bool | willRenderFeature (const QgsFeature &feature, QgsRenderContext &context) const |
| Returns whether the renderer will render a feature or not. More...
|
|
virtual QDomElement | writeSld (QDomDocument &doc, const QString &styleName, const QVariantMap &props=QVariantMap()) const |
| create the SLD UserStyle element following the SLD v1.1 specs with the given name More...
|
|