23 , mOriginalSymbolPointer( 0 )
24 , mScaleMinDenom( -1 )
25 , mScaleMaxDenom( -1 )
31 : mSymbol( symbol ? symbol->clone() : 0 )
34 , mCheckable( checkable )
35 , mOriginalSymbolPointer( symbol )
36 , mScaleMinDenom( scaleMinDenom )
37 , mScaleMaxDenom( scaleMaxDenom )
39 , mParentKey( parentRuleKey )
45 , mOriginalSymbolPointer( 0 )
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() : 0;
90 mOriginalSymbolPointer = s;
virtual QgsSymbolV2 * clone() const =0
QgsLegendSymbolItemV2 & operator=(const QgsLegendSymbolItemV2 &other)
void setSymbol(QgsSymbolV2 *s)
Set symbol of the item. Takes ownership of symbol.
bool isScaleOK(double scale) const
Determine whether given scale is within the scale range. Returns true if scale or scale range is inva...
The class stores information about one class/rule of a vector layer renderer in a unified way that ca...