QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
QgsGraduatedSymbolRenderer Class Reference

#include <qgsgraduatedsymbolrenderer.h>

Inheritance diagram for QgsGraduatedSymbolRenderer:
Inheritance graph
[legend]

Public Types

enum  Mode {
  EqualInterval , Quantile , Jenks , StdDev ,
  Pretty , Custom
}
 Classification mode. More...
 
- Public Types inherited from QgsFeatureRenderer
enum  Capability { SymbolLevels = 1 , MoreSymbolsPerFeature = 1 << 2 , Filter = 1 << 3 , ScaleDependent = 1 << 4 }
 Used to specify details about a renderer. More...
 

Public Member Functions

 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.
 
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.
 
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.
 
void calculateLabelPrecision (bool updateRanges=true)
 Reset the label decimal places to a numberbased on the minimum class interval.
 
QgsFeatureRenderer::Capabilities capabilities () override
 Returns details about internals of this renderer.
 
void checkLegendSymbolItem (const QString &key, bool state=true) override
 Sets whether the legend symbology item with the specified ley should be checked.
 
QString classAttribute () const
 Returns the attribute name (or expression) used for the classification.
 
QgsClassificationMethodclassificationMethod () const
 Returns the classification method.
 
QgsGraduatedSymbolRendererclone () const override
 Create a deep copy of this renderer.
 
QgsDataDefinedSizeLegenddataDefinedSizeLegend () const
 Returns configuration of appearance of legend when using data-defined size for marker symbols.
 
void deleteAllClasses ()
 
void deleteClass (int idx)
 
QString dump () const override
 Returns debug information about this renderer.
 
bool filterNeedsGeometry () const override
 Returns true if this renderer requires the geometry to apply the filter.
 
Qgis::GraduatedMethod graduatedMethod () const
 Returns the method used for graduation (either size or color).
 
Q_DECL_DEPRECATED QgsRendererRangeLabelFormat labelFormat () const
 Returns the label format used to generate default classification labels.
 
QString legendClassificationAttribute () const override
 If supported by the renderer, return classification attribute for the use in legend.
 
QSet< QString > legendKeysForFeature (const QgsFeature &feature, QgsRenderContext &context) const override
 Returns legend keys matching a specified feature.
 
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.
 
bool legendSymbolItemChecked (const QString &key) override
 Returns true if the legend symbology item with the specified key is checked.
 
QgsLegendSymbolList legendSymbolItems () const override
 Returns a list of symbology items for the legend.
 
bool legendSymbolItemsCheckable () const override
 Returns true if symbology items in legend are checkable.
 
double maxSymbolSize () const
 Returns the max symbol size when graduated by size.
 
double minSymbolSize () const
 Returns the min symbol size when graduated by size.
 
Q_DECL_DEPRECATED Mode mode () const
 
void moveClass (int from, int to)
 Moves the category at index position from to index position to.
 
QgsSymboloriginalSymbolForFeature (const QgsFeature &feature, QgsRenderContext &context) const override
 Returns symbol for feature.
 
const QgsRendererRangerangeForValue (double value) const
 Returns the renderer range matching the provided value, or nullptr if no range matches the value.
 
const QgsRangeListranges () const
 Returns a list of all ranges used in the classification.
 
bool rangesHaveGaps () const
 Tests whether classes assigned to the renderer have gaps between the ranges.
 
bool rangesOverlap () const
 Tests whether classes assigned to the renderer have ranges which overlap.
 
QDomElement save (QDomDocument &doc, const QgsReadWriteContext &context) override
 Stores renderer properties to an XML element.
 
Q_DECL_DEPRECATED void setAstride (bool astride)
 Set if we want a central class astride the pivot value.
 
void setClassAttribute (const QString &attr)
 Sets the attribute name (or expression) used for the classification.
 
void setClassificationMethod (QgsClassificationMethod *method)
 Defines the classification method This will take ownership of the method.
 
void setDataDefinedSizeLegend (QgsDataDefinedSizeLegend *settings)
 Configures appearance of legend when renderer is configured to use data-defined size for marker symbols.
 
void setGraduatedMethod (Qgis::GraduatedMethod method)
 Set the method used for graduation (either size or color).
 
Q_DECL_DEPRECATED void setLabelFormat (const QgsRendererRangeLabelFormat &labelFormat, bool updateRanges=false)
 Set the label format used to generate default classification labels.
 
void setLegendSymbolItem (const QString &key, QgsSymbol *symbol) override
 Sets the symbol to be used for a legend symbol item.
 
Q_DECL_DEPRECATED void setMode (Mode mode)
 
void setSourceColorRamp (QgsColorRamp *ramp)
 Sets the source color ramp.
 
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.
 
void setSymbolSizes (double minSize, double maxSize)
 set varying symbol size for classes
 
Q_DECL_DEPRECATED void setSymmetryPoint (double symmetryPoint)
 Set the pivot point.
 
Q_DECL_DEPRECATED void setUseSymmetricMode (bool useSymmetricMode)
 Set if we want to classify symmetric around a given value.
 
void sortByLabel (Qt::SortOrder order=Qt::AscendingOrder)
 
void sortByValue (Qt::SortOrder order=Qt::AscendingOrder)
 
QgsColorRampsourceColorRamp ()
 Returns the source color ramp, from which each classes' color is derived.
 
const QgsColorRampsourceColorRamp () const
 Returns the source color ramp, from which each classes' color is derived.
 
QgsSymbolsourceSymbol ()
 Returns the renderer's source symbol, which is the base symbol used for the each classes' symbol before applying the classes' color.
 
const QgsSymbolsourceSymbol () const
 Returns the renderer's source symbol, which is the base symbol used for the each classes' symbol before applying the classes' color.
 
void startRender (QgsRenderContext &context, const QgsFields &fields) override
 Must be called when a new render cycle is started.
 
void stopRender (QgsRenderContext &context) override
 Must be called when a render cycle has finished, to allow the renderer to clean up.
 
QgsSymbolsymbolForFeature (const QgsFeature &feature, QgsRenderContext &context) const override
 To be overridden.
 
QgsSymbolList symbols (QgsRenderContext &context) const override
 Returns list of symbols used by the renderer.
 
Q_DECL_DEPRECATED double symmetryPoint () const
 Returns the pivot value for symmetric classification.
 
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
 
void updateClasses (const QgsVectorLayer *vl, int nclasses)
 Recalculate classes for a layer.
 
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.
 
void updateColorRamp (QgsColorRamp *ramp=nullptr)
 Update the color ramp used.
 
bool updateRangeLabel (int rangeIndex, const QString &label)
 
void updateRangeLabels ()
 Updates the labels of the ranges.
 
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.
 
QSet< QString > usedAttributes (const QgsRenderContext &context) const override
 Returns a list of attributes required by this renderer.
 
Q_DECL_DEPRECATED bool useSymmetricMode () const
 Returns if we want to classify symmetric around a given value.
 
- Public Member Functions inherited from QgsFeatureRenderer
virtual ~QgsFeatureRenderer ()
 
virtual bool canSkipRender ()
 Returns true if the renderer can be entirely skipped, i.e.
 
void copyRendererData (QgsFeatureRenderer *destRenderer) const
 Clones generic renderer data to another renderer.
 
virtual const QgsFeatureRendererembeddedRenderer () const
 Returns the current embedded renderer (subrenderer) for this feature renderer.
 
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.
 
bool forceRasterRender () const
 Returns whether the renderer must render as a raster.
 
QSet< QString > legendKeys () const
 Returns the set of all legend keys used by the renderer.
 
virtual void modifyRequestExtent (QgsRectangle &extent, QgsRenderContext &context)
 Allows for a renderer to modify the extent of a feature request prior to rendering.
 
QgsFeatureRequest::OrderBy orderBy () const
 Gets the order in which features shall be processed by this renderer.
 
bool orderByEnabled () const
 Returns whether custom ordering will be applied before features are processed by this renderer.
 
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()
 
QgsPaintEffectpaintEffect () const
 Returns the current paint effect for the renderer.
 
double referenceScale () const
 Returns the symbology reference scale.
 
virtual bool renderFeature (const QgsFeature &feature, QgsRenderContext &context, int layer=-1, bool selected=false, bool drawVertexMarker=false)
 Render a feature using this renderer in the given context.
 
virtual void setEmbeddedRenderer (QgsFeatureRenderer *subRenderer)
 Sets an embedded renderer (subrenderer) for this feature renderer.
 
void setForceRasterRender (bool forceRaster)
 Sets whether the renderer should be rendered to a raster destination.
 
void setOrderBy (const QgsFeatureRequest::OrderBy &orderBy)
 Define the order in which features shall be processed by this renderer.
 
void setOrderByEnabled (bool enabled)
 Sets whether custom ordering should be applied before features are processed by this renderer.
 
void setPaintEffect (QgsPaintEffect *effect)
 Sets the current paint effect for the renderer.
 
void setReferenceScale (double scale)
 Sets the symbology reference scale.
 
void setUsingSymbolLevels (bool usingSymbolLevels)
 
void setVertexMarkerAppearance (Qgis::VertexMarkerType type, double size)
 Sets type and size of editing vertex markers for subsequent rendering.
 
virtual QgsSymbolList symbolsForFeature (const QgsFeature &feature, QgsRenderContext &context) const
 Returns list of symbols used for rendering the feature.
 
QString type () const
 
virtual bool usesEmbeddedSymbols () const
 Returns true if the renderer uses embedded symbols for features.
 
bool usingSymbolLevels () const
 
virtual bool willRenderFeature (const QgsFeature &feature, QgsRenderContext &context) const
 Returns whether the renderer will render a feature or not.
 
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
 

Static Public Member Functions

static Q_DECL_DEPRECATED QList< double > calcEqualIntervalBreaks (double minimum, double maximum, int classes, bool useSymmetricMode, double symmetryPoint, bool astride)
 Compute the equal interval classification.
 
static QgsGraduatedSymbolRendererconvertFromRenderer (const QgsFeatureRenderer *renderer)
 creates a QgsGraduatedSymbolRenderer from an existing renderer.
 
static QgsFeatureRenderercreate (QDomElement &element, const QgsReadWriteContext &context)
 create renderer from XML element
 
static Q_DECL_DEPRECATED QgsGraduatedSymbolRenderercreateRenderer (QgsVectorLayer *vlayer, const QString &attrName, int classes, Mode mode, QgsSymbol *symbol, QgsColorRamp *ramp, const QgsRendererRangeLabelFormat &legendFormat=QgsRendererRangeLabelFormat(), bool useSymmetricMode=false, double symmetryPoint=0.0, const QStringList &listForCboPrettyBreaks=QStringList(), bool astride=false)
 Creates a new graduated renderer.
 
static Q_DECL_DEPRECATED void makeBreaksSymmetric (QList< double > &breaks, double symmetryPoint, bool astride)
 Remove the breaks that are above the existing opposite sign classes to keep colors symmetrically balanced around symmetryPoint Does not put a break on the symmetryPoint.
 
- Static Public Member Functions inherited from QgsFeatureRenderer
static QgsFeatureRendererdefaultRenderer (Qgis::GeometryType geomType)
 Returns a new renderer - used by default in vector layers.
 
static QgsFeatureRendererload (QDomElement &symbologyElem, const QgsReadWriteContext &context)
 create a renderer from XML element
 
static QgsFeatureRendererloadSld (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.
 

Public Attributes

 Q_NOWARN_DEPRECATED_POP
 
 Q_NOWARN_DEPRECATED_PUSH
 

Protected Member Functions

QString legendKeyForValue (double value) const
 Returns the matching legend key for a value.
 
QgsSymbolsymbolForValue (double value) const
 Gets the symbol which is used to represent value.
 
- Protected Member Functions inherited from QgsFeatureRenderer
 QgsFeatureRenderer (const QString &type)
 
void renderFeatureWithSymbol (const QgsFeature &feature, QgsSymbol *symbol, QgsRenderContext &context, int layer, bool selected, bool drawVertexMarker)
 Render the feature with the symbol using context.
 
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 saveRendererData (QDomDocument &doc, QDomElement &element, const QgsReadWriteContext &context)
 Saves generic renderer data into the specified element.
 

Static Protected Member Functions

static QString graduatedMethodStr (Qgis::GraduatedMethod method)
 
- Static Protected Member Functions inherited from QgsFeatureRenderer
static QPointF _getPoint (QgsRenderContext &context, const QgsPoint &point)
 Creates a point in screen coordinates from a wkb string in map coordinates.
 
static void convertSymbolRotation (QgsSymbol *symbol, const QString &field)
 
static void convertSymbolSizeScale (QgsSymbol *symbol, Qgis::ScaleMethod method, const QString &field)
 

Protected Attributes

QString mAttrName
 
int mAttrNum = -1
 attribute index (derived from attribute name in startRender)
 
std::shared_ptr< QgsClassificationMethodmClassificationMethod
 
bool mCounting = false
 
std::unique_ptr< QgsDataDefinedSizeLegendmDataDefinedSizeLegend
 
std::unique_ptr< QgsExpressionmExpression
 
Qgis::GraduatedMethod mGraduatedMethod = Qgis::GraduatedMethod::Color
 
QgsRangeList mRanges
 
std::unique_ptr< QgsColorRampmSourceColorRamp
 
std::unique_ptr< QgsSymbolmSourceSymbol
 
- Protected Attributes inherited from QgsFeatureRenderer
double mCurrentVertexMarkerSize = 2
 The current size of editing marker.
 
Qgis::VertexMarkerType mCurrentVertexMarkerType = Qgis::VertexMarkerType::Cross
 The current type of editing marker.
 
bool mForceRaster = false
 
QgsFeatureRequest::OrderBy mOrderBy
 
bool mOrderByEnabled = false
 
QgsPaintEffectmPaintEffect = nullptr
 
double mReferenceScale = -1.0
 
QString mType
 
bool mUsingSymbolLevels = false
 

Friends

class TestQgsGraduatedSymbolRenderer
 

Detailed Description

Definition at line 35 of file qgsgraduatedsymbolrenderer.h.

Member Enumeration Documentation

◆ Mode

Classification mode.

Deprecated:
since QGIS 3.10 use QgsClassificationMethod::MethodId instead
Enumerator
EqualInterval 
Quantile 
Jenks 
StdDev 
Pretty 
Custom 

Definition at line 134 of file qgsgraduatedsymbolrenderer.h.

Constructor & Destructor Documentation

◆ QgsGraduatedSymbolRenderer()

QgsGraduatedSymbolRenderer::QgsGraduatedSymbolRenderer ( const QString &  attrName = QString(),
const QgsRangeList ranges = QgsRangeList() 
)

Definition at line 53 of file qgsgraduatedsymbolrenderer.cpp.

◆ ~QgsGraduatedSymbolRenderer()

QgsGraduatedSymbolRenderer::~QgsGraduatedSymbolRenderer ( )
override

Definition at line 71 of file qgsgraduatedsymbolrenderer.cpp.

Member Function Documentation

◆ accept()

bool QgsGraduatedSymbolRenderer::accept ( QgsStyleEntityVisitorInterface visitor) const
overridevirtual

Accepts the specified symbology visitor, causing it to visit all symbols associated with the renderer.

Returns true if the visitor should continue visiting other objects, or false if visiting should be canceled.

Since
QGIS 3.10

Reimplemented from QgsFeatureRenderer.

Definition at line 352 of file qgsgraduatedsymbolrenderer.cpp.

◆ addBreak()

void QgsGraduatedSymbolRenderer::addBreak ( double  breakValue,
bool  updateSymbols = true 
)

Add a breakpoint by splitting existing classes so that the specified value becomes a break between two classes.

Parameters
breakValueposition to insert break
updateSymbolsset to true to reapply ramp colors to the new symbol ranges

Definition at line 1031 of file qgsgraduatedsymbolrenderer.cpp.

◆ addClass() [1/3]

void QgsGraduatedSymbolRenderer::addClass ( const QgsRendererRange range)
Note
available in Python bindings as addClassRange

Definition at line 1071 of file qgsgraduatedsymbolrenderer.cpp.

◆ addClass() [2/3]

void QgsGraduatedSymbolRenderer::addClass ( double  lower,
double  upper 
)
Note
available in Python bindings as addClassLowerUpper

Definition at line 1024 of file qgsgraduatedsymbolrenderer.cpp.

◆ addClass() [3/3]

void QgsGraduatedSymbolRenderer::addClass ( QgsSymbol symbol)

Definition at line 1017 of file qgsgraduatedsymbolrenderer.cpp.

◆ astride()

Q_DECL_DEPRECATED bool QgsGraduatedSymbolRenderer::astride ( ) const
inline

Returns if we want to have a central class astride the pivot value.

Since
QGIS 3.4
Deprecated:
since QGIS 3.10 use classficationMethod instead

Definition at line 187 of file qgsgraduatedsymbolrenderer.h.

◆ calcEqualIntervalBreaks()

QList< double > QgsGraduatedSymbolRenderer::calcEqualIntervalBreaks ( double  minimum,
double  maximum,
int  classes,
bool  useSymmetricMode,
double  symmetryPoint,
bool  astride 
)
static

Compute the equal interval classification.

Parameters
minimumThe minimum value of the distribution
maximumThe maximum value of the distribution
classesThe number of classes desired
useSymmetricModeA bool indicating if we want to have classes and hence colors ramp symmetric around a value
symmetryPointThe point around which we want a symmetry
astrideA bool indicating if the symmetry is made astride the symmetryPoint or not ( [-1,1] vs. [-1,0][0,1] )
Deprecated:
since QGIS 3.10 use QgsClassificationEqualInterval class instead

Definition at line 376 of file qgsgraduatedsymbolrenderer.cpp.

◆ calculateLabelPrecision()

void QgsGraduatedSymbolRenderer::calculateLabelPrecision ( bool  updateRanges = true)

Reset the label decimal places to a numberbased on the minimum class interval.

Parameters
updateRangesif true then ranges currently using the default label will be updated

Definition at line 1113 of file qgsgraduatedsymbolrenderer.cpp.

◆ capabilities()

QgsFeatureRenderer::Capabilities QgsGraduatedSymbolRenderer::capabilities ( )
inlineoverridevirtual

Returns details about internals of this renderer.

E.g. if you only want to deal with visible features:

if not renderer.capabilities().testFlag(QgsFeatureRenderer.Filter) or renderer.willRenderFeature(feature, context):
deal_with_my_feature()
else:
skip_the_curren_feature()

Reimplemented from QgsFeatureRenderer.

Definition at line 52 of file qgsgraduatedsymbolrenderer.h.

◆ checkLegendSymbolItem()

void QgsGraduatedSymbolRenderer::checkLegendSymbolItem ( const QString &  key,
bool  state = true 
)
overridevirtual

Sets whether the legend symbology item with the specified ley should be checked.

See also
legendSymbolItemChecked()
legendKeys()

Reimplemented from QgsFeatureRenderer.

Definition at line 986 of file qgsgraduatedsymbolrenderer.cpp.

◆ classAttribute()

QString QgsGraduatedSymbolRenderer::classAttribute ( ) const
inline

Returns the attribute name (or expression) used for the classification.

See also
setClassAttribute()

Definition at line 61 of file qgsgraduatedsymbolrenderer.h.

◆ classificationMethod()

QgsClassificationMethod * QgsGraduatedSymbolRenderer::classificationMethod ( ) const

Returns the classification method.

Since
QGIS 3.10

Definition at line 1244 of file qgsgraduatedsymbolrenderer.cpp.

◆ clone()

QgsGraduatedSymbolRenderer * QgsGraduatedSymbolRenderer::clone ( ) const
overridevirtual

Create a deep copy of this renderer.

Should be implemented by all subclasses and generate a proper subclass.

Returns
A copy of this renderer

Implements QgsFeatureRenderer.

Definition at line 307 of file qgsgraduatedsymbolrenderer.cpp.

◆ convertFromRenderer()

QgsGraduatedSymbolRenderer * QgsGraduatedSymbolRenderer::convertFromRenderer ( const QgsFeatureRenderer renderer)
static

creates a QgsGraduatedSymbolRenderer from an existing renderer.

Returns
a new renderer if the conversion was possible, otherwise nullptr.

Definition at line 1276 of file qgsgraduatedsymbolrenderer.cpp.

◆ create()

Q_NOWARN_DEPRECATED_POP QgsFeatureRenderer * QgsGraduatedSymbolRenderer::create ( QDomElement &  element,
const QgsReadWriteContext context 
)
static

create renderer from XML element

Definition at line 461 of file qgsgraduatedsymbolrenderer.cpp.

◆ createRenderer()

Q_NOWARN_DEPRECATED_PUSH QgsGraduatedSymbolRenderer * QgsGraduatedSymbolRenderer::createRenderer ( QgsVectorLayer vlayer,
const QString &  attrName,
int  classes,
Mode  mode,
QgsSymbol symbol,
QgsColorRamp ramp,
const QgsRendererRangeLabelFormat legendFormat = QgsRendererRangeLabelFormat(),
bool  useSymmetricMode = false,
double  symmetryPoint = 0.0,
const QStringList &  listForCboPrettyBreaks = QStringList(),
bool  astride = false 
)
static

Creates a new graduated renderer.

Parameters
vlayervector layer
attrNameattribute to classify
classesnumber of classes
modeclassification mode
symbolbase symbol
rampcolor ramp for classes
legendFormat
useSymmetricModeA bool indicating if we want to have classes and hence colors ramp symmetric around a value
symmetryPointThe value around which the classes will be symmetric if useSymmetricMode is checked
listForCboPrettyBreaksThe list of potential pivot values for symmetric mode with prettybreaks mode
astrideA bool indicating if the symmetry is made astride the symmetryPoint or not ( [-1,1] vs. [-1,0][0,1] )
Returns
new QgsGraduatedSymbolRenderer object
Deprecated:
since QGIS 3.10

Definition at line 385 of file qgsgraduatedsymbolrenderer.cpp.

◆ dataDefinedSizeLegend()

QgsDataDefinedSizeLegend * QgsGraduatedSymbolRenderer::dataDefinedSizeLegend ( ) const

Returns configuration of appearance of legend when using data-defined size for marker symbols.

Will return nullptr if the functionality is disabled.

Definition at line 1338 of file qgsgraduatedsymbolrenderer.cpp.

◆ deleteAllClasses()

void QgsGraduatedSymbolRenderer::deleteAllClasses ( )

Definition at line 1081 of file qgsgraduatedsymbolrenderer.cpp.

◆ deleteClass()

void QgsGraduatedSymbolRenderer::deleteClass ( int  idx)

Definition at line 1076 of file qgsgraduatedsymbolrenderer.cpp.

◆ dump()

QString QgsGraduatedSymbolRenderer::dump ( ) const
overridevirtual

Returns debug information about this renderer.

Reimplemented from QgsFeatureRenderer.

Definition at line 299 of file qgsgraduatedsymbolrenderer.cpp.

◆ filterNeedsGeometry()

bool QgsGraduatedSymbolRenderer::filterNeedsGeometry ( ) const
overridevirtual

Returns true if this renderer requires the geometry to apply the filter.

Reimplemented from QgsFeatureRenderer.

Definition at line 223 of file qgsgraduatedsymbolrenderer.cpp.

◆ graduatedMethod()

Qgis::GraduatedMethod QgsGraduatedSymbolRenderer::graduatedMethod ( ) const
inline

Returns the method used for graduation (either size or color).

See also
setGraduatedMethod()

Definition at line 384 of file qgsgraduatedsymbolrenderer.h.

◆ graduatedMethodStr()

QString QgsGraduatedSymbolRenderer::graduatedMethodStr ( Qgis::GraduatedMethod  method)
staticprotected
Note
not available in Python bindings

Definition at line 1343 of file qgsgraduatedsymbolrenderer.cpp.

◆ labelFormat()

Q_NOWARN_DEPRECATED_PUSH QgsRendererRangeLabelFormat QgsGraduatedSymbolRenderer::labelFormat ( ) const

Returns the label format used to generate default classification labels.

Deprecated:
since QGIS 3.10 use classificationMethod() and QgsClassificationMethod::setLabelFormat instead

Definition at line 455 of file qgsgraduatedsymbolrenderer.cpp.

◆ legendClassificationAttribute()

QString QgsGraduatedSymbolRenderer::legendClassificationAttribute ( ) const
inlineoverridevirtual

If supported by the renderer, return classification attribute for the use in legend.

Reimplemented from QgsFeatureRenderer.

Definition at line 397 of file qgsgraduatedsymbolrenderer.h.

◆ legendKeyForValue()

QString QgsGraduatedSymbolRenderer::legendKeyForValue ( double  value) const
protected

Returns the matching legend key for a value.

Definition at line 114 of file qgsgraduatedsymbolrenderer.cpp.

◆ legendKeysForFeature()

QSet< QString > QgsGraduatedSymbolRenderer::legendKeysForFeature ( const QgsFeature feature,
QgsRenderContext context 
) const
overridevirtual

Returns legend keys matching a specified feature.

Reimplemented from QgsFeatureRenderer.

Definition at line 789 of file qgsgraduatedsymbolrenderer.cpp.

◆ legendKeyToExpression()

QString QgsGraduatedSymbolRenderer::legendKeyToExpression ( const QString &  key,
QgsVectorLayer layer,
bool &  ok 
) const
overridevirtual

Attempts to convert the specified legend rule key to a QGIS expression matching the features displayed using that key.

Parameters
keylegend key
layerassociated vector layer
okwill be set to true if legend key was successfully converted to a filter expression
Returns
QGIS expression string for matching features with the specified key
See also
legendKeys()
Since
QGIS 3.26

Reimplemented from QgsFeatureRenderer.

Definition at line 805 of file qgsgraduatedsymbolrenderer.cpp.

◆ legendSymbolItemChecked()

bool QgsGraduatedSymbolRenderer::legendSymbolItemChecked ( const QString &  key)
overridevirtual

Returns true if the legend symbology item with the specified key is checked.

See also
checkLegendSymbolItem()
legendKeys()

Reimplemented from QgsFeatureRenderer.

Definition at line 974 of file qgsgraduatedsymbolrenderer.cpp.

◆ legendSymbolItems()

Q_NOWARN_DEPRECATED_POP QgsLegendSymbolList QgsGraduatedSymbolRenderer::legendSymbolItems ( ) const
overridevirtual

Returns a list of symbology items for the legend.

See also
legendKeys()

Reimplemented from QgsFeatureRenderer.

Definition at line 749 of file qgsgraduatedsymbolrenderer.cpp.

◆ legendSymbolItemsCheckable()

bool QgsGraduatedSymbolRenderer::legendSymbolItemsCheckable ( ) const
overridevirtual

Returns true if symbology items in legend are checkable.

Reimplemented from QgsFeatureRenderer.

Definition at line 969 of file qgsgraduatedsymbolrenderer.cpp.

◆ makeBreaksSymmetric()

void QgsGraduatedSymbolRenderer::makeBreaksSymmetric ( QList< double > &  breaks,
double  symmetryPoint,
bool  astride 
)
static

Remove the breaks that are above the existing opposite sign classes to keep colors symmetrically balanced around symmetryPoint Does not put a break on the symmetryPoint.

This is done before.

Parameters
breaksThe breaks of an already-done classification
symmetryPointThe point around which we want a symmetry
astrideA bool indicating if the symmetry is made astride the symmetryPoint or not ( [-1,1] vs. [-1,0][0,1] )
Since
QGIS 3.4
Deprecated:
since QGIS 3.10, use QgsClassificationMethod::makeBreaksSymmetric instead

Definition at line 371 of file qgsgraduatedsymbolrenderer.cpp.

◆ maxSymbolSize()

double QgsGraduatedSymbolRenderer::maxSymbolSize ( ) const

Returns the max symbol size when graduated by size.

Definition at line 879 of file qgsgraduatedsymbolrenderer.cpp.

◆ minSymbolSize()

double QgsGraduatedSymbolRenderer::minSymbolSize ( ) const

Returns the min symbol size when graduated by size.

Definition at line 864 of file qgsgraduatedsymbolrenderer.cpp.

◆ mode()

Q_DECL_DEPRECATED Mode QgsGraduatedSymbolRenderer::mode ( ) const
inline
Deprecated:
since QGIS 3.10 use classficationMethod instead

Definition at line 149 of file qgsgraduatedsymbolrenderer.h.

◆ moveClass()

void QgsGraduatedSymbolRenderer::moveClass ( int  from,
int  to 
)

Moves the category at index position from to index position to.

Definition at line 1143 of file qgsgraduatedsymbolrenderer.cpp.

◆ originalSymbolForFeature()

QgsSymbol * QgsGraduatedSymbolRenderer::originalSymbolForFeature ( const QgsFeature feature,
QgsRenderContext context 
) const
overridevirtual

Returns 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 from QgsFeatureRenderer.

Definition at line 148 of file qgsgraduatedsymbolrenderer.cpp.

◆ rangeForValue()

const QgsRendererRange * QgsGraduatedSymbolRenderer::rangeForValue ( double  value) const

Returns the renderer range matching the provided value, or nullptr if no range matches the value.

Since
QGIS 3.10.1

Definition at line 77 of file qgsgraduatedsymbolrenderer.cpp.

◆ ranges()

const QgsRangeList & QgsGraduatedSymbolRenderer::ranges ( ) const
inline

Returns a list of all ranges used in the classification.

Definition at line 73 of file qgsgraduatedsymbolrenderer.h.

◆ rangesHaveGaps()

bool QgsGraduatedSymbolRenderer::rangesHaveGaps ( ) const

Tests whether classes assigned to the renderer have gaps between the ranges.

Returns
true if ranges have gaps

Definition at line 1200 of file qgsgraduatedsymbolrenderer.cpp.

◆ rangesOverlap()

bool QgsGraduatedSymbolRenderer::rangesOverlap ( ) const

Tests whether classes assigned to the renderer have ranges which overlap.

Returns
true if ranges overlap

Definition at line 1172 of file qgsgraduatedsymbolrenderer.cpp.

◆ save()

QDomElement QgsGraduatedSymbolRenderer::save ( QDomDocument &  doc,
const QgsReadWriteContext context 
)
overridevirtual

Stores renderer properties to an XML element.

Subclasses which override this method should call saveRendererData() as part of their implementation in order to store all common base class properties in the returned DOM element.

Reimplemented from QgsFeatureRenderer.

Definition at line 627 of file qgsgraduatedsymbolrenderer.cpp.

◆ setAstride()

void QgsGraduatedSymbolRenderer::setAstride ( bool  astride)

Set if we want a central class astride the pivot value.

Since
QGIS 3.4
Deprecated:
since QGIS 3.10 use classficationMethod instead

Definition at line 1271 of file qgsgraduatedsymbolrenderer.cpp.

◆ setClassAttribute()

void QgsGraduatedSymbolRenderer::setClassAttribute ( const QString &  attr)
inline

Sets the attribute name (or expression) used for the classification.

See also
classAttribute()

Definition at line 68 of file qgsgraduatedsymbolrenderer.h.

◆ setClassificationMethod()

void QgsGraduatedSymbolRenderer::setClassificationMethod ( QgsClassificationMethod method)

Defines the classification method This will take ownership of the method.

Since
QGIS 3.10

Definition at line 1249 of file qgsgraduatedsymbolrenderer.cpp.

◆ setDataDefinedSizeLegend()

void QgsGraduatedSymbolRenderer::setDataDefinedSizeLegend ( QgsDataDefinedSizeLegend settings)

Configures appearance of legend when renderer is configured to use data-defined size for marker symbols.

This allows configuring for which values (symbol sizes) should be shown in the legend, whether to display different symbol sizes collapsed in one legend node or separated across multiple legend nodes etc.

When renderer does not use data-defined size or does not use marker symbols, these settings will be ignored. Takes ownership of the passed settings objects. nullptr is a valid input that disables data-defined size legend.

Definition at line 1333 of file qgsgraduatedsymbolrenderer.cpp.

◆ setGraduatedMethod()

void QgsGraduatedSymbolRenderer::setGraduatedMethod ( Qgis::GraduatedMethod  method)
inline

Set the method used for graduation (either size or color).

See also
graduatedMethod()

Definition at line 391 of file qgsgraduatedsymbolrenderer.h.

◆ setLabelFormat()

Q_NOWARN_DEPRECATED_PUSH void QgsGraduatedSymbolRenderer::setLabelFormat ( const QgsRendererRangeLabelFormat labelFormat,
bool  updateRanges = false 
)

Set the label format used to generate default classification labels.

Parameters
labelFormatThe string appended to classification labels
updateRangesIf true then ranges ending with the old unit string are updated to the new.
Deprecated:
since QGIS 3.10 use classificationMethod() and QgsClassificationMethod::setLabelFormat instead

Definition at line 1087 of file qgsgraduatedsymbolrenderer.cpp.

◆ setLegendSymbolItem()

void QgsGraduatedSymbolRenderer::setLegendSymbolItem ( const QString &  key,
QgsSymbol symbol 
)
overridevirtual

Sets the symbol to be used for a legend symbol item.

Parameters
keyrule key for legend symbol
symbolnew symbol for legend item. Ownership is transferred to renderer.
See also
legendKeys()

Reimplemented from QgsFeatureRenderer.

Definition at line 998 of file qgsgraduatedsymbolrenderer.cpp.

◆ setMode()

void QgsGraduatedSymbolRenderer::setMode ( QgsGraduatedSymbolRenderer::Mode  mode)
Deprecated:
since QGIS 3.10 use classficationMethod instead

Definition at line 1254 of file qgsgraduatedsymbolrenderer.cpp.

◆ setSourceColorRamp()

void QgsGraduatedSymbolRenderer::setSourceColorRamp ( QgsColorRamp ramp)

Sets the source color ramp.

Parameters
rampcolor ramp. Ownership is transferred to the renderer

Definition at line 856 of file qgsgraduatedsymbolrenderer.cpp.

◆ setSourceSymbol()

void QgsGraduatedSymbolRenderer::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.

Parameters
symsource symbol, ownership is transferred to the renderer
See also
sourceSymbol()
setSourceColorRamp()

Definition at line 841 of file qgsgraduatedsymbolrenderer.cpp.

◆ setSymbolSizes()

void QgsGraduatedSymbolRenderer::setSymbolSizes ( double  minSize,
double  maxSize 
)

set varying symbol size for classes

Note
the classes must already be set so that symbols exist

Definition at line 894 of file qgsgraduatedsymbolrenderer.cpp.

◆ setSymmetryPoint()

void QgsGraduatedSymbolRenderer::setSymmetryPoint ( double  symmetryPoint)

Set the pivot point.

Since
QGIS 3.4
Deprecated:
since QGIS 3.10 use classficationMethod instead

Definition at line 1266 of file qgsgraduatedsymbolrenderer.cpp.

◆ setUseSymmetricMode()

void QgsGraduatedSymbolRenderer::setUseSymmetricMode ( bool  useSymmetricMode)

Set if we want to classify symmetric around a given value.

Since
QGIS 3.4
Deprecated:
since QGIS 3.10 use classficationMethod instead

Definition at line 1261 of file qgsgraduatedsymbolrenderer.cpp.

◆ sortByLabel()

void QgsGraduatedSymbolRenderer::sortByLabel ( Qt::SortOrder  order = Qt::AscendingOrder)

Definition at line 1232 of file qgsgraduatedsymbolrenderer.cpp.

◆ sortByValue()

void QgsGraduatedSymbolRenderer::sortByValue ( Qt::SortOrder  order = Qt::AscendingOrder)

Definition at line 1160 of file qgsgraduatedsymbolrenderer.cpp.

◆ sourceColorRamp() [1/2]

QgsColorRamp * QgsGraduatedSymbolRenderer::sourceColorRamp ( )

Returns the source color ramp, from which each classes' color is derived.

See also
setSourceColorRamp()
sourceSymbol()

Definition at line 846 of file qgsgraduatedsymbolrenderer.cpp.

◆ sourceColorRamp() [2/2]

const QgsColorRamp * QgsGraduatedSymbolRenderer::sourceColorRamp ( ) const

Returns the source color ramp, from which each classes' color is derived.

See also
setSourceColorRamp()
sourceSymbol()
Note
Not available in Python bindings.

Definition at line 851 of file qgsgraduatedsymbolrenderer.cpp.

◆ sourceSymbol() [1/2]

QgsSymbol * QgsGraduatedSymbolRenderer::sourceSymbol ( )

Returns the renderer's source symbol, which is the base symbol used for the each classes' symbol before applying the classes' color.

See also
setSourceSymbol()
sourceColorRamp()

Definition at line 831 of file qgsgraduatedsymbolrenderer.cpp.

◆ sourceSymbol() [2/2]

const QgsSymbol * QgsGraduatedSymbolRenderer::sourceSymbol ( ) const

Returns the renderer's source symbol, which is the base symbol used for the each classes' symbol before applying the classes' color.

See also
setSourceSymbol()
sourceColorRamp()
Note
Not available in Python bindings.

Definition at line 836 of file qgsgraduatedsymbolrenderer.cpp.

◆ startRender()

void QgsGraduatedSymbolRenderer::startRender ( QgsRenderContext context,
const QgsFields fields 
)
overridevirtual

Must be called when a new render cycle is started.

A call to startRender() must always be followed by a corresponding call to stopRender() after all features have been rendered.

Parameters
contextAdditional information passed to the renderer about the job which will be rendered
fieldsThe fields available for rendering
See also
stopRender()
Warning
This method is not thread safe. Before calling startRender() in a non-main thread, the renderer should instead be cloned and startRender()/stopRender() called on the clone.

Reimplemented from QgsFeatureRenderer.

Definition at line 160 of file qgsgraduatedsymbolrenderer.cpp.

◆ stopRender()

void QgsGraduatedSymbolRenderer::stopRender ( QgsRenderContext context)
overridevirtual

Must be called when a render cycle has finished, to allow the renderer to clean up.

Calls to stopRender() must always be preceded by a call to startRender().

Warning
This method is not thread safe. Before calling startRender() in a non-main thread, the renderer should instead be cloned and startRender()/stopRender() called on the clone.
See also
startRender()

Reimplemented from QgsFeatureRenderer.

Definition at line 184 of file qgsgraduatedsymbolrenderer.cpp.

◆ symbolForFeature()

QgsSymbol * QgsGraduatedSymbolRenderer::symbolForFeature ( const QgsFeature feature,
QgsRenderContext context 
) const
overridevirtual

To be overridden.

Must be called between startRender() and stopRender() calls.

Parameters
featurefeature
contextrender context
Returns
returns pointer to symbol or 0 if symbol was not found

Implements QgsFeatureRenderer.

Definition at line 127 of file qgsgraduatedsymbolrenderer.cpp.

◆ symbolForValue()

QgsSymbol * QgsGraduatedSymbolRenderer::symbolForValue ( double  value) const
protected

Gets the symbol which is used to represent value.

Definition at line 107 of file qgsgraduatedsymbolrenderer.cpp.

◆ symbols()

QgsSymbolList QgsGraduatedSymbolRenderer::symbols ( QgsRenderContext context) const
overridevirtual

Returns list of symbols used by the renderer.

Parameters
contextrender context

Reimplemented from QgsFeatureRenderer.

Definition at line 340 of file qgsgraduatedsymbolrenderer.cpp.

◆ symmetryPoint()

Q_DECL_DEPRECATED double QgsGraduatedSymbolRenderer::symmetryPoint ( ) const
inline

Returns the pivot value for symmetric classification.

Since
QGIS 3.4
Deprecated:
since QGIS 3.10 use classficationMethod instead

Definition at line 172 of file qgsgraduatedsymbolrenderer.h.

◆ toSld()

void QgsGraduatedSymbolRenderer::toSld ( QDomDocument &  doc,
QDomElement &  element,
const QVariantMap &  props = QVariantMap() 
) const
overridevirtual

used from subclasses to create SLD Rule elements following SLD v1.1 specs

Reimplemented from QgsFeatureRenderer.

Definition at line 325 of file qgsgraduatedsymbolrenderer.cpp.

◆ updateClasses() [1/2]

void QgsGraduatedSymbolRenderer::updateClasses ( const QgsVectorLayer vl,
int  nclasses 
)

Recalculate classes for a layer.

Parameters
vlThe layer being rendered (from which data values are calculated)
nclassesthe number of classes

Definition at line 437 of file qgsgraduatedsymbolrenderer.cpp.

◆ updateClasses() [2/2]

Q_NOWARN_DEPRECATED_POP void QgsGraduatedSymbolRenderer::updateClasses ( QgsVectorLayer vlayer,
Mode  mode,
int  nclasses,
bool  useSymmetricMode = false,
double  symmetryPoint = 0.0,
bool  astride = false 
)

Recalculate classes for a layer.

Parameters
vlayerThe layer being rendered (from which data values are calculated)
modeThe calculation mode
nclassesThe number of classes to calculate (approximate for some modes)
useSymmetricModeA bool indicating if we want to have classes and hence colors ramp symmetric around a value
symmetryPointThe value around which the classes will be symmetric if useSymmetricMode is checked
astrideA bool indicating if the symmetry is made astride the symmetryPoint or not ( [-1,1] vs. [-1,0][0,1] )
Deprecated:
since QGIS 3.10

Definition at line 423 of file qgsgraduatedsymbolrenderer.cpp.

◆ updateColorRamp()

void QgsGraduatedSymbolRenderer::updateColorRamp ( QgsColorRamp ramp = nullptr)

Update the color ramp used.

Also updates all symbols colors. Doesn't alter current breaks.

Parameters
rampcolor ramp. Ownership is transferred to the renderer

Definition at line 910 of file qgsgraduatedsymbolrenderer.cpp.

◆ updateRangeLabel()

bool QgsGraduatedSymbolRenderer::updateRangeLabel ( int  rangeIndex,
const QString &  label 
)

Definition at line 244 of file qgsgraduatedsymbolrenderer.cpp.

◆ updateRangeLabels()

Q_NOWARN_DEPRECATED_POP void QgsGraduatedSymbolRenderer::updateRangeLabels ( )

Updates the labels of the ranges.

Since
QGIS 3.10

Definition at line 1100 of file qgsgraduatedsymbolrenderer.cpp.

◆ updateRangeLowerValue()

bool QgsGraduatedSymbolRenderer::updateRangeLowerValue ( int  rangeIndex,
double  value 
)

Definition at line 271 of file qgsgraduatedsymbolrenderer.cpp.

◆ updateRangeRenderState()

bool QgsGraduatedSymbolRenderer::updateRangeRenderState ( int  rangeIndex,
bool  render 
)

Definition at line 291 of file qgsgraduatedsymbolrenderer.cpp.

◆ updateRangeSymbol()

bool QgsGraduatedSymbolRenderer::updateRangeSymbol ( int  rangeIndex,
QgsSymbol symbol 
)

Definition at line 236 of file qgsgraduatedsymbolrenderer.cpp.

◆ updateRangeUpperValue()

bool QgsGraduatedSymbolRenderer::updateRangeUpperValue ( int  rangeIndex,
double  value 
)

Definition at line 252 of file qgsgraduatedsymbolrenderer.cpp.

◆ updateSymbols()

void QgsGraduatedSymbolRenderer::updateSymbols ( QgsSymbol sym)

Update all the symbols but leave breaks and colors.

This method also sets the source symbol for the renderer.

Parameters
symsource symbol to use for classes. Ownership is not transferred.
See also
setSourceSymbol()

Definition at line 936 of file qgsgraduatedsymbolrenderer.cpp.

◆ usedAttributes()

QSet< QString > QgsGraduatedSymbolRenderer::usedAttributes ( const QgsRenderContext context) const
overridevirtual

Returns a list of attributes required by this renderer.

Attributes not listed in here may not have been requested from the provider at rendering time.

Returns
A set of attributes

Implements QgsFeatureRenderer.

Definition at line 197 of file qgsgraduatedsymbolrenderer.cpp.

◆ useSymmetricMode()

Q_DECL_DEPRECATED bool QgsGraduatedSymbolRenderer::useSymmetricMode ( ) const
inline

Returns if we want to classify symmetric around a given value.

Since
QGIS 3.4
Deprecated:
since QGIS 3.10 use classficationMethod instead

Definition at line 158 of file qgsgraduatedsymbolrenderer.h.

Friends And Related Symbol Documentation

◆ TestQgsGraduatedSymbolRenderer

friend class TestQgsGraduatedSymbolRenderer
friend

Definition at line 487 of file qgsgraduatedsymbolrenderer.h.

Member Data Documentation

◆ mAttrName

QString QgsGraduatedSymbolRenderer::mAttrName
protected

Definition at line 437 of file qgsgraduatedsymbolrenderer.h.

◆ mAttrNum

int QgsGraduatedSymbolRenderer::mAttrNum = -1
protected

attribute index (derived from attribute name in startRender)

Definition at line 446 of file qgsgraduatedsymbolrenderer.h.

◆ mClassificationMethod

std::shared_ptr<QgsClassificationMethod> QgsGraduatedSymbolRenderer::mClassificationMethod
protected

Definition at line 464 of file qgsgraduatedsymbolrenderer.h.

◆ mCounting

bool QgsGraduatedSymbolRenderer::mCounting = false
protected

Definition at line 447 of file qgsgraduatedsymbolrenderer.h.

◆ mDataDefinedSizeLegend

std::unique_ptr<QgsDataDefinedSizeLegend> QgsGraduatedSymbolRenderer::mDataDefinedSizeLegend
protected

Definition at line 449 of file qgsgraduatedsymbolrenderer.h.

◆ mExpression

std::unique_ptr<QgsExpression> QgsGraduatedSymbolRenderer::mExpression
protected

Definition at line 442 of file qgsgraduatedsymbolrenderer.h.

◆ mGraduatedMethod

Qgis::GraduatedMethod QgsGraduatedSymbolRenderer::mGraduatedMethod = Qgis::GraduatedMethod::Color
protected

Definition at line 443 of file qgsgraduatedsymbolrenderer.h.

◆ mRanges

QgsRangeList QgsGraduatedSymbolRenderer::mRanges
protected

Definition at line 438 of file qgsgraduatedsymbolrenderer.h.

◆ mSourceColorRamp

std::unique_ptr<QgsColorRamp> QgsGraduatedSymbolRenderer::mSourceColorRamp
protected

Definition at line 440 of file qgsgraduatedsymbolrenderer.h.

◆ mSourceSymbol

std::unique_ptr<QgsSymbol> QgsGraduatedSymbolRenderer::mSourceSymbol
protected

Definition at line 439 of file qgsgraduatedsymbolrenderer.h.

◆ Q_NOWARN_DEPRECATED_POP

QgsGraduatedSymbolRenderer::Q_NOWARN_DEPRECATED_POP

Definition at line 254 of file qgsgraduatedsymbolrenderer.h.

◆ Q_NOWARN_DEPRECATED_PUSH

QgsGraduatedSymbolRenderer::Q_NOWARN_DEPRECATED_PUSH

Definition at line 238 of file qgsgraduatedsymbolrenderer.h.


The documentation for this class was generated from the following files: