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.

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

rtype

QgsRasterMinMaxWidget

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

receivers

renderer

rtype

QgsRasterRenderer

resizeEvent

sender

senderSignalIndex

setFromRenderer

Set state of the widget from renderer settings

setMapCanvas

param canvas

sharedPainter

showEvent

tabletEvent

timerEvent

updateMicroFocus

wheelEvent

actionEvent(self, QActionEvent)
changeEvent(self, QEvent)
childEvent(self, QChildEvent)
closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
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(self, QEvent)
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, QMetaMethod)
doComputations(self)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
enterEvent(self, QEvent)
event(self, QEvent) bool
focusInEvent(self, QFocusEvent)
focusNextChild(self) bool
focusNextPrevChild(self, bool) bool
focusOutEvent(self, QFocusEvent)
focusPreviousChild(self) bool
hideEvent(self, QHideEvent)
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
isSignalConnected(self, QMetaMethod) bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
leaveEvent(self, QEvent)
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(self, QPaintDevice.PaintDeviceMetric) int
minMaxWidget(self) QgsRasterMinMaxWidget
Return type

QgsRasterMinMaxWidget

mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
moveEvent(self, QMoveEvent)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) Tuple[bool, int]
paintEvent(self, QPaintEvent)
receivers(self, PYQT_SIGNAL) int
renderer(self) QgsRasterRenderer
Return type

QgsRasterRenderer

resizeEvent(self, QResizeEvent)
sender(self) QObject
senderSignalIndex(self) int
setFromRenderer(self, r: QgsRasterRenderer)

Set state of the widget from renderer settings

Parameters

r (QgsRasterRenderer) –

setMapCanvas(self, canvas: QgsMapCanvas)
Parameters

canvas (QgsMapCanvas) –

sharedPainter(self) QPainter
showEvent(self, QShowEvent)
tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)