Class: QgsHillshadeRendererWidget

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

Bases: QgsRasterRendererWidget

Renderer widget for the hill shade renderer.

Parameters

Renderer widget for the hill shade renderer.

Methods

actionEvent

altitude

Returns the angle of the light source over the raster.

azimuth

Returns the direction of the light over the raster between 0-360.

changeEvent

childEvent

closeEvent

connectNotify

contextMenuEvent

create

Factory method to create the renderer for this type.

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

initPainter

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

leaveEvent

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

multiDirectional

Returns True if the renderer should use the multi-directional hillshade algorithm.

nativeEvent

paintEvent

receivers

renderer

The renderer for the widget.

resizeEvent

sender

senderSignalIndex

setAltitude

Set the altitude of the light source

setAzimuth

Set the azimuth of the light source.

setFromRenderer

Set the widget state from the given renderer.

setMultiDirectional

Sets whether to render using a multi-directional hillshade algorithm.

setZFactor

Set the Z scaling factor of the result image.

sharedPainter

showEvent

tabletEvent

timerEvent

updateMicroFocus

wheelEvent

zFactor

Returns the Z scaling factor.

actionEvent()
altitude(self) → float

Returns the angle of the light source over the raster.

See also

setAltitude()

Return type

float

azimuth(self) → float

Returns the direction of the light over the raster between 0-360.

See also

setAzimuth()

Return type

float

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

Factory method to create the renderer for this type.

Parameters
Return type

QgsRasterRendererWidget

customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
multiDirectional(self) → bool

Returns True if the renderer should use the multi-directional hillshade algorithm.

Return type

bool

nativeEvent()
paintEvent()
receivers()
renderer(self) → QgsRasterRenderer

The renderer for the widget.

Return type

QgsRasterRenderer

Returns

A new renderer for the the config in the widget

resizeEvent()
sender()
senderSignalIndex()
setAltitude(self, altitude: float)

Set the altitude of the light source

Parameters

altitude (float) – the altitude

See also

altitude()

setAzimuth(self, azimuth: float)

Set the azimuth of the light source.

Parameters

azimuth (float) – The azimuth of the light source, between 0 and 360.0

See also

azimuth()

setFromRenderer(self, renderer: QgsRasterRenderer)

Set the widget state from the given renderer.

Parameters

renderer (QgsRasterRenderer) – The renderer to take the state from.

setMultiDirectional(self, isMultiDirectional: bool)

Sets whether to render using a multi-directional hillshade algorithm.

Parameters

isMultiDirectional (bool) – set to True to use multi directional rendering

setZFactor(self, zfactor: float)

Set the Z scaling factor of the result image.

Parameters

zfactor (float) – The z factor

See also

zFactor()

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()
zFactor(self) → float

Returns the Z scaling factor.

See also

setZFactor()

Return type

float