Class: QgsSingleBandPseudoColorRendererWidget

class qgis.gui.QgsSingleBandPseudoColorRendererWidget

Bases: QgsRasterRendererWidget

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

QgsSingleBandPseudoColorRendererWidget(layer: QgsRasterLayer, extent: QgsRectangle = QgsRectangle()) Creates new raster renderer widget

Methods

actionEvent

changeEvent

childEvent

closeEvent

connectNotify

contextMenuEvent

create

Creates new raster renderer widget

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

max

param index

metric

min

param index

minMaxWidget

rtype

QgsRasterMinMaxWidget

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

receivers

renderer

rtype

QgsRasterRenderer

resizeEvent

selectedBand

param index

sender

senderSignalIndex

setFromRenderer

Sets the widget state from the specified renderer.

setMapCanvas

param canvas

setMax

param value

setMin

param value

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

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) –

max(self, index: int = 0) str
Parameters

index (int = 0) –

Return type

str

metric(self, QPaintDevice.PaintDeviceMetric) int
min(self, index: int = 0) str
Parameters

index (int = 0) –

Return type

str

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], PyQt5.sip.voidptr) Tuple[bool, int]
paintEvent(self, QPaintEvent)
receivers(self, PYQT_SIGNAL) int
renderer(self) QgsRasterRenderer
Return type

QgsRasterRenderer

resizeEvent(self, QResizeEvent)
selectedBand(self, index: int = 0) int
Parameters

index (int = 0) –

Return type

int

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

Sets the widget state from the specified renderer.

Parameters

r (QgsRasterRenderer) –

setMapCanvas(self, canvas: QgsMapCanvas)
Parameters

canvas (QgsMapCanvas) –

setMax(self, value: str, index: int = 0)
Parameters
  • value (str) –

  • index (int = 0) –

setMin(self, value: str, index: int = 0)
Parameters
  • value (str) –

  • index (int = 0) –

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