Class: QgsRasterSymbolLegendNode

class qgis.core.QgsRasterSymbolLegendNode(nodeLayer: QgsLayerTreeLayer, color: Union[QColor, Qt.GlobalColor], label: str, parent: QObject = None)

Bases: qgis._core.QgsLayerTreeModelLegendNode

Constructor for QgsRasterSymbolLegendNode.

Parameters:
  • nodeLayer – layer node
  • color – color
  • label – label
  • parent – attach a parent QObject to the legend node.

Implementation of legend node interface for displaying raster legend entries

childEvent()
connectNotify()
createTemporaryRenderContext()
customEvent()
data(self, role: int) → Any
disconnectNotify()
drawSymbol(self, settings: QgsLegendSettings, ctx: QgsLayerTreeModelLegendNode.ItemContext, itemHeight: float) → QSizeF
isSignalConnected()
receivers()
sender()
senderSignalIndex()
timerEvent()