Subgroup: Single

Class: QgsSingleBandPseudoColorRendererWidget

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

Bases: qgis._gui.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.

Methods

actionEvent
changeEvent
childEvent
closeEvent
connectNotify
contextMenuEvent
create Creates new raster renderer widget
currentBand Returns the current raster band number
customEvent
destroy
disconnectNotify
doComputations
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
enterEvent
event
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPreviousChild
hideEvent
initPainter
inputMethodEvent
isSignalConnected
keyPressEvent
keyReleaseEvent
leaveEvent
loadMinMax called when new min/max values are loaded
loadMinMaxFromTree called when the color ramp tree has changed
metric
minMaxWidget
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveEvent
nativeEvent
paintEvent
receivers
renderer
resizeEvent
sender
senderSignalIndex
setFromRenderer Set state of the widget from renderer settings
setMapCanvas
sharedPainter
showEvent
tabletEvent
timerEvent
updateMicroFocus
wheelEvent

Signals

Attributes

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

Creates new raster renderer widget

currentBand(self) → int

Returns the current raster band number

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

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

called when the color ramp tree has changed

metric()
minMaxWidget(self) → QgsRasterMinMaxWidget
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
renderer(self) → QgsRasterRenderer
resizeEvent()
sender()
senderSignalIndex()
setFromRenderer(self, r: QgsRasterRenderer)

Set state of the widget from renderer settings

setMapCanvas(self, canvas: QgsMapCanvas)
sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()