19 #ifndef QGSLAYERTREEMODELLEGENDNODE_H    20 #define QGSLAYERTREEMODELLEGENDNODE_H    51       RuleKeyRole = Qt::UserRole,     
    66     virtual QVariant data( 
int role ) 
const = 0;
    69     virtual bool setData( 
const QVariant& value, 
int role );
    77     virtual bool isScaleOK( 
double scale )
 const { Q_UNUSED( scale ); 
return true; }
   155     virtual QVariant data( 
int role ) 
const override;
   156     virtual bool setData( 
const QVariant& value, 
int role ) 
override;
   160     virtual void setEmbeddedInParent( 
bool embedded ) 
override;
   164     virtual bool isScaleOK( 
double scale )
 const override { 
return mItem.isScaleOK( scale ); }
   166     virtual void invalidateMapBasedData() 
override;
   176     QSize minimumIconSize() 
const;
   198     void checkAllItems();
   204     void uncheckAllItems();
   213     bool mSymbolUsesMapUnits;
   217     static const int indentSize = 20;
   225     void checkAll( 
bool state );
   241     virtual QVariant data( 
int role ) 
const override;
   263     virtual QVariant data( 
int role ) 
const override;
   283     virtual QVariant data( 
int role ) 
const override;
   306     virtual QVariant data( 
int role ) 
const override;
   310     virtual void invalidateMapBasedData() 
override;
   314     void getLegendGraphicFinished( 
const QImage& );
   315     void getLegendGraphicErrored( 
const QString& );
   316     void getLegendGraphicProgress( qint64, qint64 );
   321     const QImage& getLegendGraphic() 
const;
   332 #endif // QGSLAYERTREEMODELLEGENDNODE_H Implementation of legend node interface for displaying arbitrary raster image. 
 
virtual bool isEmbeddedInParent() const
 
virtual bool isScaleOK(double scale) const override
 
Handles asynchronous download of images. 
 
Implementation of legend node interface for displaying raster legend entries. 
 
QgsLayerTreeLayer * layerNode() const
Return pointer to the parent layer node. 
 
QPainter * painter
Painter. 
 
virtual QString userLabel() const
 
The QgsMapSettings class contains configuration for rendering of the map. 
 
void setUserLabel(const QString &userLabel) override
 
The QgsLayerTreeModel class is model implementation for Qt item views framework. 
 
virtual bool isScaleOK(double scale) const
 
QgsLayerTreeLayer * mLayerNode
 
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
 
Implementation of legend node interface for displaying arbitrary label with icon. ...
 
Implementation of legend node interface for displaying WMS legend entries. 
 
virtual void setEmbeddedInParent(bool embedded)
 
Contains information about the context of a rendering operation. 
 
QPointF point
Top-left corner of the legend item. 
 
The QgsLegendRendererItem class is abstract interface for legend items returned from QgsMapLayerLegen...
 
for QgsSymbolV2LegendNode only - legacy rule key (void ptr, to be cast to QgsSymbolV2 ptr) ...
 
Implementation of legend node interface for displaying preview of vector symbols and their labels and...
 
double labelXOffset
offset from the left side where label should start 
 
The class stores information about one class/rule of a vector layer renderer in a unified way that ca...
 
void setIconSize(QSize sz)
Set the icon size. 
 
virtual void invalidateMapBasedData()
Notification from model that information from associated map view has changed. 
 
virtual void setUserLabel(const QString &userLabel)
 
Layer tree node points to a map layer.