QGIS/python/gui/auto_generated/raster/qgshillshaderendererwidget.sip.in

132 lines
3.3 KiB
Plaintext
Raw Normal View History

2017-05-31 11:55:58 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/raster/qgshillshaderendererwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsHillshadeRendererWidget: QgsRasterRendererWidget
{
2017-05-31 11:55:58 +02:00
%Docstring
Renderer widget for the hill shade renderer.
2017-12-15 10:36:55 -04:00
2017-05-31 11:55:58 +02:00
.. versionadded:: 2.16
%End
%TypeHeaderCode
2017-05-31 11:55:58 +02:00
#include "qgshillshaderendererwidget.h"
%End
public:
QgsHillshadeRendererWidget( QgsRasterLayer *layer, const QgsRectangle &extent = QgsRectangle() );
2017-05-31 11:55:58 +02:00
%Docstring
Renderer widget for the hill shade renderer.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param layer: The layer attached for this widget.
:param extent: The current extent.
2017-05-31 11:55:58 +02:00
%End
static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) /Factory/;
2017-05-31 11:55:58 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Factory method to create the renderer for this type.
2017-05-31 11:55:58 +02:00
%End
virtual QgsRasterRenderer *renderer();
%Docstring
The renderer for the widget.
2017-12-15 10:36:55 -04:00
:return: A new renderer for the the config in the widget
2017-05-31 11:55:58 +02:00
%End
void setFromRenderer( const QgsRasterRenderer *renderer );
%Docstring
Set the widget state from the given renderer.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param renderer: The renderer to take the state from.
2017-05-31 11:55:58 +02:00
%End
double azimuth() const;
2017-05-31 11:55:58 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the direction of the light over the raster between 0-360.
.. seealso:: :py:func:`setAzimuth`
2017-05-31 11:55:58 +02:00
%End
double altitude() const;
2017-05-31 11:55:58 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the angle of the light source over the raster.
.. seealso:: :py:func:`setAltitude`
2017-05-31 11:55:58 +02:00
%End
double zFactor() const;
2017-05-31 11:55:58 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the Z scaling factor.
.. seealso:: :py:func:`setZFactor`
2017-05-31 11:55:58 +02:00
%End
bool multiDirectional() const;
2017-05-31 11:55:58 +02:00
%Docstring
2019-02-26 19:54:09 +10:00
Returns ``True`` if the renderer should use the multi-directional hillshade algorithm.
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`setMultiDirectional`
2017-05-31 11:55:58 +02:00
%End
public slots:
void setAltitude( double altitude );
2017-05-31 11:55:58 +02:00
%Docstring
Set the altitude of the light source
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param altitude: the altitude
.. seealso:: :py:func:`altitude`
2017-05-31 11:55:58 +02:00
%End
void setAzimuth( double azimuth );
2017-05-31 11:55:58 +02:00
%Docstring
Set the azimuth of the light source.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param azimuth: The azimuth of the light source, between 0 and 360.0
.. seealso:: :py:func:`azimuth`
2017-05-31 11:55:58 +02:00
%End
void setZFactor( double zfactor );
2017-05-31 11:55:58 +02:00
%Docstring
Set the Z scaling factor of the result image.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param zfactor: The z factor
.. seealso:: :py:func:`zFactor`
2017-05-31 11:55:58 +02:00
%End
void setMultiDirectional( bool isMultiDirectional );
%Docstring
2017-12-15 10:36:55 -04:00
Sets whether to render using a multi-directional hillshade algorithm.
2017-12-15 21:36:08 -04:00
2019-02-26 19:54:09 +10:00
:param isMultiDirectional: set to ``True`` to use multi directional rendering
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`multiDirectional`
2017-05-31 11:55:58 +02:00
%End
};
2017-05-31 11:55:58 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/raster/qgshillshaderendererwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/