|
QGIS API Documentation 3.99.0-Master (f78f5286a64)
|
Renderer widget for the hill shade renderer. More...
#include <qgshillshaderendererwidget.h>

Public Slots | |
| void | setAltitude (double altitude) |
| Set the altitude of the light source. | |
| void | setAzimuth (double azimuth) |
| Set the azimuth of the light source. | |
| void | setMultiDirectional (bool isMultiDirectional) |
| Sets whether to render using a multi-directional hillshade algorithm. | |
| void | setZFactor (double zfactor) |
| Set the Z scaling factor of the result image. | |
Public Member Functions | |
| QgsHillshadeRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle()) | |
| Renderer widget for the hill shade renderer. | |
| double | altitude () const |
| Returns the angle of the light source over the raster. | |
| double | azimuth () const |
| Returns the direction of the light over the raster between 0-360. | |
| bool | multiDirectional () const |
Returns true if the renderer should use the multi-directional hillshade algorithm. | |
| QgsRasterRenderer * | renderer () override |
| Creates a new renderer, using the properties defined in the widget. | |
| void | setFromRenderer (const QgsRasterRenderer *renderer) |
| Set the widget state from the given renderer. | |
| double | zFactor () const |
| Returns the Z scaling factor. | |
Public Member Functions inherited from QgsRasterRendererWidget | |
| QgsRasterRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent) | |
| Constructor for QgsRasterRendererWidget. | |
| virtual QgsContrastEnhancement::ContrastEnhancementAlgorithm | contrastEnhancementAlgorithm () const |
| Returns the contrast enhancement algorithm to be used by the raster renderer. | |
| virtual void | doComputations () |
| Load programmatically with current values. | |
| QgsMapCanvas * | mapCanvas () |
| Returns the map canvas associated with the widget. | |
| virtual QString | max (int index=0) |
| virtual QString | min (int index=0) |
| virtual QgsRasterMinMaxWidget * | minMaxWidget () |
| Returns min/max widget when it exists. | |
| const QgsRasterLayer * | rasterLayer () const |
| Returns the raster layer associated with the widget. | |
| virtual int | selectedBand (int index=0) |
| virtual void | setContrastEnhancementAlgorithm (QgsContrastEnhancement::ContrastEnhancementAlgorithm algorithm) |
| Sets the contrast enhancement algorithm to be used by the raster renderer. | |
| virtual void | setMapCanvas (QgsMapCanvas *canvas) |
| Sets the map canvas associated with the widget. | |
| virtual void | setMax (const QString &value, int index=0) |
| virtual void | setMin (const QString &value, int index=0) |
| void | setRasterLayer (QgsRasterLayer *layer) |
| Sets the raster layer associated with the widget. | |
| virtual void | setStdDev (const QString &value) |
| virtual QString | stdDev () |
Static Public Member Functions | |
| static QgsRasterRendererWidget * | create (QgsRasterLayer *layer, const QgsRectangle &extent) |
| Factory method to create the renderer for this type. | |
Additional Inherited Members | |
Signals inherited from QgsRasterRendererWidget | |
| void | widgetChanged () |
| Emitted when something on the widget has changed. | |
Protected Attributes inherited from QgsRasterRendererWidget | |
| QgsMapCanvas * | mCanvas = nullptr |
| Associated map canvas. | |
| QgsRectangle | mExtent |
| Current extent. | |
| QgsRasterLayer * | mRasterLayer = nullptr |
Renderer widget for the hill shade renderer.
Definition at line 33 of file qgshillshaderendererwidget.h.
| QgsHillshadeRendererWidget::QgsHillshadeRendererWidget | ( | QgsRasterLayer * | layer, |
| const QgsRectangle & | extent = QgsRectangle() |
||
| ) |
Renderer widget for the hill shade renderer.
| layer | The layer attached for this widget. |
| extent | The current extent. |
Definition at line 26 of file qgshillshaderendererwidget.cpp.
| double QgsHillshadeRendererWidget::altitude | ( | ) | const |
Returns the angle of the light source over the raster.
Definition at line 134 of file qgshillshaderendererwidget.cpp.
| double QgsHillshadeRendererWidget::azimuth | ( | ) | const |
Returns the direction of the light over the raster between 0-360.
Definition at line 129 of file qgshillshaderendererwidget.cpp.
|
inlinestatic |
Factory method to create the renderer for this type.
Definition at line 47 of file qgshillshaderendererwidget.h.
| bool QgsHillshadeRendererWidget::multiDirectional | ( | ) | const |
Returns true if the renderer should use the multi-directional hillshade algorithm.
Definition at line 144 of file qgshillshaderendererwidget.cpp.
|
overridevirtual |
Creates a new renderer, using the properties defined in the widget.
The caller takes ownership of the returned renderer.
Implements QgsRasterRendererWidget.
Definition at line 57 of file qgshillshaderendererwidget.cpp.
|
slot |
Set the altitude of the light source.
| altitude | the altitude |
Definition at line 91 of file qgshillshaderendererwidget.cpp.
|
slot |
Set the azimuth of the light source.
| azimuth | The azimuth of the light source, between 0 and 360.0 |
Definition at line 96 of file qgshillshaderendererwidget.cpp.
| void QgsHillshadeRendererWidget::setFromRenderer | ( | const QgsRasterRenderer * | renderer | ) |
Set the widget state from the given renderer.
| renderer | The renderer to take the state from. |
Definition at line 78 of file qgshillshaderendererwidget.cpp.
|
slot |
Sets whether to render using a multi-directional hillshade algorithm.
| isMultiDirectional | set to true to use multi directional rendering |
Definition at line 106 of file qgshillshaderendererwidget.cpp.
|
slot |
Set the Z scaling factor of the result image.
| zfactor | The z factor |
Definition at line 101 of file qgshillshaderendererwidget.cpp.
| double QgsHillshadeRendererWidget::zFactor | ( | ) | const |
Returns the Z scaling factor.
Definition at line 139 of file qgshillshaderendererwidget.cpp.