QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
gui
raster
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
26
#include "
qgsrasterrendererwidget.h
"
27
#include "qgis_gui.h"
28
34
class
GUI_EXPORT
QgsHillshadeRendererWidget
:
public
QgsRasterRendererWidget
,
private
Ui::QgsHillShadeWidget
35
{
36
Q_OBJECT
37
public
:
38
44
QgsHillshadeRendererWidget
(
QgsRasterLayer
*layer,
const
QgsRectangle
&extent =
QgsRectangle
() );
45
49
static
QgsRasterRendererWidget
*create(
QgsRasterLayer
*layer,
const
QgsRectangle
&extent )
SIP_FACTORY
{
return
new
QgsHillshadeRendererWidget
( layer, extent ); }
50
55
QgsRasterRenderer
*
renderer
()
override
;
56
61
void
setFromRenderer(
const
QgsRasterRenderer
*renderer );
62
67
double
azimuth()
const
;
68
73
double
altitude()
const
;
74
79
double
zFactor()
const
;
80
85
bool
multiDirectional()
const
;
86
87
public
slots:
88
94
void
setAltitude(
double
altitude );
95
101
void
setAzimuth(
double
azimuth );
102
108
void
setZFactor(
double
zfactor );
109
115
void
setMultiDirectional(
bool
isMultiDirectional );
116
117
private
slots:
118
void
mLightAzimuth_updated(
double
value );
119
void
mLightAzimuthDial_updated(
int
value );
120
};
121
122
#endif // QGSSINGLEBANDGRAYRENDERERWIDGET_H
123
124
QgsHillshadeRendererWidget
Renderer widget for the hill shade renderer.
Definition:
qgshillshaderendererwidget.h:34
qgsrasterrendererwidget.h
QgsRectangle
Definition:
qgsrectangle.h:41
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsRasterRenderer
Definition:
qgsrasterrenderer.h:38
qgis_sip.h
QgsRasterLayer
Definition:
qgsrasterlayer.h:72
QgsRasterRendererWidget
Definition:
qgsrasterrendererwidget.h:36
QgsRasterRendererWidget::renderer
virtual QgsRasterRenderer * renderer()=0
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17