Class: QgsHillshadeRendererWidget¶
-
class
qgis.gui.
QgsHillshadeRendererWidget
(layer: QgsRasterLayer, extent: QgsRectangle = QgsRectangle())¶ Bases:
QgsRasterRendererWidget
Renderer widget for the hill shade renderer.
- Parameters
layer (QgsRasterLayer) – The layer attached for this widget.
extent (
QgsRectangle
= QgsRectangle()) – The current extent.
Renderer widget for the hill shade renderer.
Methods
Returns the angle of the light source over the raster.
Returns the direction of the light over the raster between 0-360.
Factory method to create the renderer for this type.
Returns true if the renderer should use the multi-directional hillshade algorithm.
The renderer for the widget.
Set the altitude of the light source
Set the azimuth of the light source.
Set the widget state from the given renderer.
Sets whether to render using a multi-directional hillshade algorithm.
Set the Z scaling factor of the result image.
Returns the Z scaling factor.
-
actionEvent
()¶
-
altitude
(self) → float¶ Returns the angle of the light source over the raster.
See also
- Return type
float
-
azimuth
(self) → float¶ Returns the direction of the light over the raster between 0-360.
See also
- Return type
float
-
changeEvent
()¶
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
(layer: QgsRasterLayer, extent: QgsRectangle) → QgsRasterRendererWidget¶ Factory method to create the renderer for this type.
- Parameters
layer (QgsRasterLayer) –
extent (QgsRectangle) –
- Return 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.
See also
- Return type
bool
-
nativeEvent
()¶
-
paintEvent
()¶
-
receivers
()¶
-
renderer
(self) → QgsRasterRenderer¶ The renderer for the widget.
- Return type
- 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
-
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
-
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
See also
-
setZFactor
(self, zfactor: float)¶ Set the Z scaling factor of the result image.
- Parameters
zfactor (float) – The z factor
See also
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶
-
zFactor
(self) → float¶ Returns the Z scaling factor.
See also
- Return type
float