|
| QgsWmsLegendNode (QgsLayerTreeLayer *nodeLayer, QObject *parent=nullptr) |
| Constructor for QgsWmsLegendNode. More...
|
|
| ~QgsWmsLegendNode () override |
|
QVariant | data (int role) const override |
| Returns data associated with the item. Must be implemented in derived class. More...
|
|
QSizeF | drawSymbol (const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight) const override |
| Draws symbol on the left side of the item. More...
|
|
QJsonObject | exportSymbolToJson (const QgsLegendSettings &settings, const QgsRenderContext &context) const override |
| Adds a symbol in base64 string within a JSON object with the key "icon". More...
|
|
void | invalidateMapBasedData () override |
| Notification from model that information from associated map view has changed. More...
|
|
virtual bool | columnBreak () const |
| Returns whether a forced column break should occur before the node. More...
|
|
virtual QVariant | data (int role) const =0 |
| Returns data associated with the item. Must be implemented in derived class. More...
|
|
virtual ItemMetrics | draw (const QgsLegendSettings &settings, ItemContext *ctx) |
| Entry point called from QgsLegendRenderer to do the rendering. More...
|
|
virtual QSizeF | drawSymbol (const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight) const |
| Draws symbol on the left side of the item. More...
|
|
virtual QSizeF | drawSymbolText (const QgsLegendSettings &settings, ItemContext *ctx, QSizeF symbolSize) const |
| Draws label on the right side of the item. More...
|
|
virtual QJsonObject | exportSymbolToJson (const QgsLegendSettings &settings, const QgsRenderContext &context) const |
| Adds a symbol in base64 string within a JSON object with the key "icon". More...
|
|
QJsonObject | exportToJson (const QgsLegendSettings &settings, const QgsRenderContext &context) |
| Entry point called from QgsLegendRenderer to do the rendering in a JSON object. More...
|
|
virtual Qt::ItemFlags | flags () const |
| Returns item flags associated with the item. Default implementation returns Qt::ItemIsEnabled. More...
|
|
virtual void | invalidateMapBasedData () |
| Notification from model that information from associated map view has changed. More...
|
|
virtual bool | isEmbeddedInParent () const |
|
virtual bool | isScaleOK (double scale) const |
|
QgsLayerTreeLayer * | layerNode () const |
| Returns pointer to the parent layer node. More...
|
|
QgsLayerTreeModel * | model () const |
| Returns pointer to model owning this legend node. More...
|
|
virtual void | setColumnBreak (bool breakBeforeNode) |
| Sets whether a forced column break should occur before the node. More...
|
|
virtual bool | setData (const QVariant &value, int role) |
| Sets some data associated with the item. Default implementation does nothing and returns false . More...
|
|
virtual void | setEmbeddedInParent (bool embedded) |
|
virtual void | setUserLabel (const QString &userLabel) |
|
virtual void | setUserPatchSize (QSizeF size) |
| Sets the user (overridden) size for the legend node. More...
|
|
virtual QString | userLabel () const |
|
virtual QSizeF | userPatchSize () const |
| Returns the user (overridden) size for the legend node. More...
|
|