mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			122 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			122 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/raster/qgshillshaderendererwidget.h                          *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsHillshadeRendererWidget : QgsRasterRendererWidget
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
Renderer widget for the hill shade renderer.
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgshillshaderendererwidget.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
    QgsHillshadeRendererWidget( QgsRasterLayer *layer, const QgsRectangle &extent = QgsRectangle() );
 | 
						|
%Docstring
 | 
						|
Renderer widget for the hill shade renderer.
 | 
						|
 | 
						|
:param layer: The layer attached for this widget.
 | 
						|
:param extent: The current extent.
 | 
						|
%End
 | 
						|
 | 
						|
    static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) /Factory/;
 | 
						|
%Docstring
 | 
						|
Factory method to create the renderer for this type.
 | 
						|
%End
 | 
						|
 | 
						|
    virtual QgsRasterRenderer *renderer() /Factory/;
 | 
						|
 | 
						|
 | 
						|
    void setFromRenderer( const QgsRasterRenderer *renderer );
 | 
						|
%Docstring
 | 
						|
Set the widget state from the given renderer.
 | 
						|
 | 
						|
:param renderer: The renderer to take the state from.
 | 
						|
%End
 | 
						|
 | 
						|
    double azimuth() const;
 | 
						|
%Docstring
 | 
						|
Returns the direction of the light over the raster between 0-360.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setAzimuth`
 | 
						|
%End
 | 
						|
 | 
						|
    double altitude() const;
 | 
						|
%Docstring
 | 
						|
Returns the angle of the light source over the raster.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setAltitude`
 | 
						|
%End
 | 
						|
 | 
						|
    double zFactor() const;
 | 
						|
%Docstring
 | 
						|
Returns the Z scaling factor.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setZFactor`
 | 
						|
%End
 | 
						|
 | 
						|
    bool multiDirectional() const;
 | 
						|
%Docstring
 | 
						|
Returns ``True`` if the renderer should use the multi-directional hillshade algorithm.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setMultiDirectional`
 | 
						|
%End
 | 
						|
 | 
						|
  public slots:
 | 
						|
 | 
						|
    void setAltitude( double altitude );
 | 
						|
%Docstring
 | 
						|
Set the altitude of the light source
 | 
						|
 | 
						|
:param altitude: the altitude
 | 
						|
 | 
						|
.. seealso:: :py:func:`altitude`
 | 
						|
%End
 | 
						|
 | 
						|
    void setAzimuth( double azimuth );
 | 
						|
%Docstring
 | 
						|
Set the azimuth of the light source.
 | 
						|
 | 
						|
:param azimuth: The azimuth of the light source, between 0 and 360.0
 | 
						|
 | 
						|
.. seealso:: :py:func:`azimuth`
 | 
						|
%End
 | 
						|
 | 
						|
    void setZFactor( double zfactor );
 | 
						|
%Docstring
 | 
						|
Set the Z scaling factor of the result image.
 | 
						|
 | 
						|
:param zfactor: The z factor
 | 
						|
 | 
						|
.. seealso:: :py:func:`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:: :py:func:`multiDirectional`
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/raster/qgshillshaderendererwidget.h                          *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | 
						|
 ************************************************************************/
 |