23 , mOriginalSymbolPointer( nullptr )
24 , mScaleMinDenom( -1 )
25 , mScaleMaxDenom( -1 )
31 : mSymbol( symbol ? symbol->clone() : nullptr )
34 , mCheckable( checkable )
35 , mOriginalSymbolPointer( symbol )
36 , mScaleMinDenom( scaleMinDenom )
37 , mScaleMaxDenom( scaleMaxDenom )
39 , mParentKey( parentRuleKey )
45 , mOriginalSymbolPointer( nullptr )
61 mLabel = other.mLabel;
63 mCheckable = other.mCheckable;
64 mOriginalSymbolPointer = other.mOriginalSymbolPointer;
65 mScaleMinDenom = other.mScaleMinDenom;
66 mScaleMaxDenom = other.mScaleMaxDenom;
67 mLevel = other.mLevel;
68 mParentKey = other.mParentKey;
77 if ( mScaleMinDenom <= 0 && mScaleMaxDenom <= 0 )
79 if ( mScaleMinDenom > 0 && mScaleMinDenom > scale )
81 if ( mScaleMaxDenom > 0 && mScaleMaxDenom < scale )
89 mSymbol = s ? s->
clone() :
nullptr;
90 mOriginalSymbolPointer = s;
int scaleMinDenom() const
Min scale denominator of the scale range.
virtual QgsSymbolV2 * clone() const =0
QString ruleKey() const
Return unique identifier of the rule for identification of the item within renderer.
bool isScaleOK(double scale) const
Determine whether given scale is within the scale range. Returns true if scale or scale range is inva...
QString parentRuleKey() const
Key of the parent legend node.
QString label() const
Return text label.
int scaleMaxDenom() const
Max scale denominator of the scale range.
QgsSymbolV2 * symbol() const
Return associated symbol. May be null.
QgsLegendSymbolItemV2 & operator=(const QgsLegendSymbolItemV2 &other)
int level() const
Identation level that tells how deep the item is in a hierarchy of items. For flat lists level is 0...
void setSymbol(QgsSymbolV2 *s)
Set symbol of the item. Takes ownership of symbol.
The class stores information about one class/rule of a vector layer renderer in a unified way that ca...