Class: QgsSingleBandGrayRendererWidget

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

Bases: QgsRasterRendererWidget

Methods

actionEvent

changeEvent

childEvent

closeEvent

connectNotify

contextMenuEvent

contrastEnhancementAlgorithm

rtype

QgsContrastEnhancement.ContrastEnhancementAlgorithm

create

param layer

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

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

setContrastEnhancementAlgorithm

param algorithm

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)
contrastEnhancementAlgorithm(self) QgsContrastEnhancement.ContrastEnhancementAlgorithm
Return type

QgsContrastEnhancement.ContrastEnhancementAlgorithm

create(layer: QgsRasterLayer, extent: QgsRectangle) QgsRasterRendererWidget
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) –

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
setContrastEnhancementAlgorithm(self, algorithm: QgsContrastEnhancement.ContrastEnhancementAlgorithm)
Parameters

algorithm (QgsContrastEnhancement.ContrastEnhancementAlgorithm) –

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)