16 #ifndef QGSLEGENDRENDERER_H    17 #define QGSLEGENDRENDERER_H    19 #include "qgis_core.h"    86     void drawLegend( QPainter *painter );
   126         QObject *item = 
nullptr;
   143         double labelXOffset = 0.0;
   165         QList<Nucleon> nucleons;
   168         QSizeF size = QSizeF( 0, 0 );
   180     QSizeF paintAndDetermineSize( QPainter *painter = 
nullptr );
   191     void setColumns( QList<Atom> &atomList );
   200     QSizeF drawTitle( QPainter *painter = 
nullptr, QPointF point = QPointF(), Qt::AlignmentFlag halignment = Qt::AlignLeft, 
double legendWidth = 0 );
   205     double spaceAboveAtom( 
const Atom &atom );
   213     QSizeF drawAtom( 
const Atom &atom, QPainter *painter = 
nullptr, QPointF point = QPointF() );
   218     Nucleon drawSymbolItem( 
QgsLayerTreeModelLegendNode *symbolItem, QPainter *painter = 
nullptr, QPointF point = QPointF(), 
double labelXOffset = 0 );
   227     QSizeF drawLayerTitle( 
QgsLayerTreeLayer *nodeLayer, QPainter *painter = 
nullptr, QPointF point = QPointF() );
   233     QSizeF drawGroupTitle( 
QgsLayerTreeGroup *nodeGroup, QPainter *painter = 
nullptr, QPointF point = QPointF() );
   250     QSizeF drawTitle( 
QgsRenderContext *context, QPointF point = QPointF(), Qt::AlignmentFlag halignment = Qt::AlignLeft, 
double legendWidth = 0 );
   260     QSizeF drawAtom( 
const Atom &atom, 
QgsRenderContext *rendercontext, QPointF point = QPointF() );
   296     QSizeF drawTitleInternal( 
QgsRenderContext *context, QPainter *painter, QPointF point, Qt::AlignmentFlag halignment, 
double legendWidth );
   297     QSizeF drawAtomInternal( 
const Atom &atom, 
QgsRenderContext *context, QPainter *painter, QPointF point );
   301     QSizeF paintAndDetermineSizeInternal( 
QgsRenderContext *context, QPainter *painter );
   304 #endif // QGSLEGENDRENDERER_H Layer tree group node serves as a container for layers and further groups. 
 
void setLegendSize(QSizeF s)
Sets the preferred resulting legend size. 
 
Abstract base class for all rendered symbols. 
 
The QgsLayerTreeModel class is model implementation for Qt item views framework. 
 
QSizeF legendSize() const
Returns the preferred legend size set by the client. 
 
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
 
This class is a base class for nodes in a layer tree. 
 
Contains information about the context of a rendering operation. 
 
The QgsLegendRendererItem class is abstract interface for legend items returned from QgsMapLayerLegen...
 
Layer tree node points to a map layer. 
 
The QgsLegendRenderer class handles automatic layout and rendering of legend.