Subgroup: other

Class: QgsHillshadeRendererWidget

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

Bases: qgis._gui.QgsRasterRendererWidget

Renderer widget for the hill shade renderer.

Parameters:
  • layer – The layer attached for this widget.
  • extent

    The current extent.

    Renderer widget for the hill shade renderer.

New in version 2.16: 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.

Signals

Attributes

actionEvent()
altitude(self) → float

Returns the angle of the light source over the raster.

See also

setAltitude()

azimuth(self) → float

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

See also

setAzimuth()

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

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(self) → bool

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

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

The renderer for the widget.

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 – the altitude

See also

altitude()

setAzimuth(self, azimuth: float)

Set the azimuth of the light source.

Parameters:azimuth – 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 – The renderer to take the state from.
setMultiDirectional(self, isMultiDirectional: bool)

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

Parameters:isMultiDirectional – set to true to use multi directional rendering
setZFactor(self, zfactor: float)

Set the Z scaling factor of the result image.

Parameters:zfactor – The z factor

See also

zFactor()

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

Returns the Z scaling factor.

See also

setZFactor()