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 *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-25 11:09:25 +10:00
|
|
|
class QgsHillshadeRendererWidget: QgsRasterRendererWidget
|
|
|
|
{
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Renderer widget for the hill shade renderer.
|
|
|
|
.. versionadded:: 2.16
|
|
|
|
%End
|
|
|
|
|
2016-05-25 11:09:25 +10:00
|
|
|
%TypeHeaderCode
|
2017-05-31 11:55:58 +02:00
|
|
|
#include "qgshillshaderendererwidget.h"
|
2016-05-25 11:09:25 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsHillshadeRendererWidget( QgsRasterLayer *layer, const QgsRectangle &extent = QgsRectangle() );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Renderer widget for the hill shade renderer.
|
|
|
|
\param layer The layer attached for this widget.
|
|
|
|
\param extent The current extent.
|
|
|
|
%End
|
2016-05-25 11:09:25 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) /Factory/;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Factory method to create the renderer for this type.
|
|
|
|
:rtype: QgsRasterRendererWidget
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual QgsRasterRenderer *renderer();
|
|
|
|
|
|
|
|
%Docstring
|
|
|
|
The renderer for the widget.
|
|
|
|
:return: A new renderer for the the config in the widget
|
|
|
|
:rtype: QgsRasterRenderer
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setFromRenderer( const QgsRasterRenderer *renderer );
|
|
|
|
%Docstring
|
|
|
|
Set the widget state from the given renderer.
|
|
|
|
\param renderer The renderer to take the state from.
|
|
|
|
%End
|
2016-05-25 11:09:25 +10:00
|
|
|
|
|
|
|
double azimuth() const;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the direction of the light over the raster between 0-360.
|
|
|
|
.. seealso:: setAzimuth()
|
|
|
|
:rtype: float
|
|
|
|
%End
|
2016-05-25 11:09:25 +10:00
|
|
|
|
|
|
|
double altitude() const;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the angle of the light source over the raster.
|
|
|
|
.. seealso:: setAltitude()
|
|
|
|
:rtype: float
|
|
|
|
%End
|
2016-05-25 11:09:25 +10:00
|
|
|
|
|
|
|
double zFactor() const;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the Z scaling factor.
|
|
|
|
.. seealso:: setZFactor()
|
|
|
|
:rtype: float
|
|
|
|
%End
|
2016-05-25 11:09:25 +10:00
|
|
|
|
2016-06-01 13:52:33 +02:00
|
|
|
bool multiDirectional() const;
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Returns true if the renderer should use the multi-directional hillshade algorithm.
|
|
|
|
.. seealso:: setMultiDirectional()
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2016-06-01 13:52:33 +02:00
|
|
|
|
2016-05-25 11:09:25 +10:00
|
|
|
public slots:
|
2016-06-01 22:24:24 +10:00
|
|
|
|
2016-05-25 11:09:25 +10:00
|
|
|
void setAltitude( double altitude );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Set the altitude of the light source
|
|
|
|
\param altitude the altitude
|
|
|
|
.. seealso:: altitude()
|
|
|
|
%End
|
2016-05-25 11:09:25 +10:00
|
|
|
|
|
|
|
void setAzimuth( double azimuth );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Set the azimuth of the light source.
|
|
|
|
\param azimuth The azimuth of the light source, between 0 and 360.0
|
|
|
|
.. seealso:: azimuth()
|
|
|
|
%End
|
2016-05-25 11:09:25 +10:00
|
|
|
|
|
|
|
void setZFactor( double zfactor );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Set the Z scaling factor of the result image.
|
|
|
|
\param zfactor The z factor
|
|
|
|
.. seealso:: zFactor()
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setMultiDirectional( bool isMultiDirectional );
|
|
|
|
%Docstring
|
|
|
|
Sets whether to render using a multi-directional hillshade algorithm.
|
|
|
|
\param isMultiDirectional set to true to use multi directional rendering
|
|
|
|
.. seealso:: multiDirectional()
|
|
|
|
%End
|
2016-06-01 13:52:33 +02:00
|
|
|
|
2016-05-25 11:09:25 +10:00
|
|
|
};
|
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 *
|
|
|
|
************************************************************************/
|