Class: QgsSingleBandPseudoColorRendererWidget

class qgis.gui.QgsSingleBandPseudoColorRendererWidget(layer: QgsRasterLayer, extent: QgsRectangle = QgsRectangle())

Bases: QgsRasterRendererWidget

Creates new raster renderer widget

Single band pseudo color renderer widget consists of a color ramp shader widget, a raster min max widget and a band selector.

Parameters
actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create(layer: QgsRasterLayer, extent: QgsRectangle)QgsRasterRendererWidget

Creates new raster renderer widget

Parameters
Return type

QgsRasterRendererWidget

currentBand(self) → int

Returns the current raster band number

Return type

int

customEvent()
destroy()
disconnectNotify()
doComputations(self)
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
loadMinMax(self, bandNo: int, min: float, max: float)

called when new min/max values are loaded

Parameters
  • bandNo (int) –

  • min (float) –

  • max (float) –

loadMinMaxFromTree(self, min: float, max: float)

called when the color ramp tree has changed

Parameters
  • min (float) –

  • max (float) –

metric()
minMaxWidget(self)QgsRasterMinMaxWidget
Return type

QgsRasterMinMaxWidget

mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
renderer(self)QgsRasterRenderer
Return type

QgsRasterRenderer

resizeEvent()
sender()
senderSignalIndex()
setFromRenderer(self, r: QgsRasterRenderer)

Set state of the widget from renderer settings

Parameters

r (QgsRasterRenderer) –

setMapCanvas(self, canvas: QgsMapCanvas)
Parameters

canvas (QgsMapCanvas) –

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()