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
Signals
Attributes
-
actionEvent
()¶
-
altitude
(self) → float¶ Returns the angle of the light source over the raster.
See also
-
azimuth
(self) → float¶ Returns the direction of the light over the raster between 0-360.
See also
-
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.
See also
-
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
-
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
-
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 See also
-
setZFactor
(self, zfactor: float)¶ Set the Z scaling factor of the result image.
Parameters: zfactor – The z factor See also
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶
-
zFactor
(self) → float¶ Returns the Z scaling factor.
See also