16#ifndef QGSLEGENDSYMBOLITEM_H
17#define QGSLEGENDSYMBOLITEM_H
55 QString
label()
const {
return mLabel; }
65 bool isScaleOK(
double scale )
const;
80 int level()
const {
return mLevel; }
116 void setUserData(
int key, QVariant &value );
124 QVariant userData(
int key )
const;
128 std::unique_ptr<QgsSymbol> mSymbol;
134 bool mCheckable =
false;
136 QgsSymbol *mOriginalSymbolPointer =
nullptr;
142 std::unique_ptr<QgsDataDefinedSizeLegend> mDataDefinedSizeLegendSettings;
146 int mScaleMinDenom = -1;
147 int mScaleMaxDenom = -1;
154 QMap< int, QVariant > mUserData;
Object that keeps configuration of appearance of marker symbol's data-defined size in legend.
QString parentRuleKey() const
Key of the parent legend node.
int level() const
Indentation level that tells how deep the item is in a hierarchy of items. For flat lists level is 0.
int scaleMaxDenom() const
Max scale denominator of the scale range.
int scaleMinDenom() const
Min scale denominator of the scale range.
QgsLegendSymbolItem & operator=(const QgsLegendSymbolItem &other)
QgsSymbol * symbol() const
Returns associated symbol. May be nullptr.
QString ruleKey() const
Returns unique identifier of the rule for identification of the item within renderer.
bool isCheckable() const
Returns whether the item is user-checkable - whether renderer supports enabling/disabling it.
QString label() const
Returns text label.
QgsSymbol * legacyRuleKey() const
Used for older code that identifies legend entries from symbol pointer within renderer.
Abstract base class for all rendered symbols.
QList< QgsLegendSymbolItem > QgsLegendSymbolList