Class: QgsRasterSymbolLegendNode¶
Implementation of legend node interface for displaying raster legend entries.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
An abstract interface for legend items returned from |
|
Constructor
Methods
Returns whether the item is user-checkable - whether renderer supports enabling/disabling it. |
|
Returns the unique identifier of node for identification of the item within renderer. |
- class qgis.core.QgsRasterSymbolLegendNode[source]¶
Bases:
QgsLayerTreeModelLegendNode- __init__(nodeLayer: QgsLayerTreeLayer | None, color: QColor | Qt.GlobalColor | int, label: str | None, parent: QObject | None = None, isCheckable: bool = False, ruleKey: str | None = '', parentRuleKey: str | None = '')¶
Constructor for QgsRasterSymbolLegendNode.
- Parameters:
nodeLayer (QgsLayerTreeLayer|None) – layer node
color (QColor|Qt.GlobalColor|int) – color
label (str|None) – label
parent (QObject|None = None) – attach a parent QObject to the legend node.
isCheckable (bool = False) – set to
Trueto enable the checkbox for the node (since QGIS 3.18)ruleKey (str|None = '') – optional identifier to allow a unique ID to be assigned to the node by a renderer (since QGIS 3.18)
parentRuleKey (str|None = '') – rule key of parent (since QGIS 3.40)