QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 
23 #include <QDoubleSpinBox>
24 
25 #include "qgsrasterminmaxwidget.h"
27 
33 class GUI_EXPORT QgsHillshadeRendererWidget: public QgsRasterRendererWidget, private Ui::QgsHillShadeWidget
34 {
35  Q_OBJECT
36  public:
37 
44 
46 
50  static QgsRasterRendererWidget* create( QgsRasterLayer* layer, const QgsRectangle &theExtent ) { return new QgsHillshadeRendererWidget( layer, theExtent ); }
51 
56  QgsRasterRenderer* renderer() override;
57 
62  void setFromRenderer( const QgsRasterRenderer* renderer );
63 
68  double azimuth() const;
69 
73  double altitude() const;
74 
78  double zFactor() const;
79 
84  bool multiDirectional() const;
85 
86  public slots:
87 
93  void setAltitude( double altitude );
94 
100  void setAzimuth( double azimuth );
101 
107  void setZFactor( double zfactor );
108 
113  void setMultiDirectional( bool isMultiDirectional );
114 
115  private slots:
116  void on_mLightAzimuth_updated( double value );
117  void on_mLightAzimuthDail_updated( int value );
118 };
119 
120 #endif // QGSSINGLEBANDGRAYRENDERERWIDGET_H
121 
122 
A rectangle specified with double values.
Definition: qgsrectangle.h:35
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
Renderer widget for the hill shade renderer.
virtual QgsRasterRenderer * renderer()=0
Raster renderer pipe that applies colors to a raster.
static QgsRasterRendererWidget * create(QgsRasterLayer *layer, const QgsRectangle &theExtent)
Factory method to create the renderer for this type.