QGIS API Documentation 3.39.0-Master (bca3cdb6021)
Loading...
Searching...
No Matches
qgshillshaderendererwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgshillshaderendererwidget.h
3 ---------------------------------
4 begin : May 2016
5 copyright : (C) 2016 by Nathan Woodrow
6 email : woodrow dot nathan at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSHILLSHADERENDERERWIDGET_H
19#define QGSHILLSHADERENDERERWIDGET_H
20
21#include "ui_qgshillshaderendererwidget.h"
22#include "qgis_sip.h"
23
24#include <QDoubleSpinBox>
25
27#include "qgis_gui.h"
28
33class GUI_EXPORT QgsHillshadeRendererWidget: public QgsRasterRendererWidget, private Ui::QgsHillShadeWidget
34{
35 Q_OBJECT
36 public:
37
44
48 static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent ) SIP_FACTORY { return new QgsHillshadeRendererWidget( layer, extent ); }
49
51
56 void setFromRenderer( const QgsRasterRenderer *renderer );
57
62 double azimuth() const;
63
68 double altitude() const;
69
74 double zFactor() const;
75
80 bool multiDirectional() const;
81
82 public slots:
83
89 void setAltitude( double altitude );
90
96 void setAzimuth( double azimuth );
97
103 void setZFactor( double zfactor );
104
110 void setMultiDirectional( bool isMultiDirectional );
111
112 private slots:
113 void mLightAzimuth_updated( double value );
114 void mLightAzimuthDial_updated( int value );
115};
116
117#endif // QGSSINGLEBANDGRAYRENDERERWIDGET_H
118
119
Renderer widget for the hill shade renderer.
static QgsRasterRendererWidget * create(QgsRasterLayer *layer, const QgsRectangle &extent)
Factory method to create the renderer for this type.
Represents a raster layer.
Abstract base class for widgets which configure a QgsRasterRenderer.
virtual QgsRasterRenderer * renderer()=0
Creates a new renderer, using the properties defined in the widget.
Raster renderer pipe that applies colors to a raster.
A rectangle specified with double values.
#define SIP_FACTORY
Definition qgis_sip.h:76