QGIS API Documentation
3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
src
gui
qgsdirectionallightwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsdirectionallightwidget.h - QgsDirectionalLightWidget
3
4
---------------------
5
begin : 11.12.2022
6
copyright : (C) 2022 by Vincent Cloarec
7
email : vcloarec at gmail dot com
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
#ifndef QGSDIRECTIONALLIGHTWIDGET_H
17
#define QGSDIRECTIONALLIGHTWIDGET_H
18
19
#include "ui_qgsdirectionallightwidget.h"
20
21
#include "qgis_gui.h"
22
23
#include <QWidget>
24
35
class
GUI_EXPORT
QgsDirectionalLightWidget
:
public
QWidget,
private
Ui::QgsDirectionalLightWidget
36
{
37
Q_OBJECT
38
39
public
:
41
explicit
QgsDirectionalLightWidget
( QWidget *parent =
nullptr
);
42
~QgsDirectionalLightWidget
()
override
;
43
45
void
setAzimuth
(
double
azimuth
);
46
48
double
azimuth
()
const
;
49
51
void
setAltitude
(
double
altitude
);
52
54
double
altitude
()
const
;
55
57
void
setEnableAzimuth
(
bool
enable );
58
59
signals:
61
void
directionChanged
();
62
63
private
:
64
};
65
66
#endif
// QGSDIRECTIONALLIGHTWIDGET_H
QgsDirectionalLightWidget::setEnableAzimuth
void setEnableAzimuth(bool enable)
Sets whether the azimut can be changed, for example, when using multidirectional light.
Definition
qgsdirectionallightwidget.cpp:78
QgsDirectionalLightWidget::altitude
double altitude() const
Returns the altitude value (degree).
Definition
qgsdirectionallightwidget.cpp:73
QgsDirectionalLightWidget::directionChanged
void directionChanged()
Emitted when the direction is changed.
QgsDirectionalLightWidget::setAzimuth
void setAzimuth(double azimuth)
Sets the azimuth value (degree).
Definition
qgsdirectionallightwidget.cpp:58
QgsDirectionalLightWidget::setAltitude
void setAltitude(double altitude)
Sets the altitude value (degree).
Definition
qgsdirectionallightwidget.cpp:68
QgsDirectionalLightWidget::azimuth
double azimuth() const
Returns the azimuth value (degree).
Definition
qgsdirectionallightwidget.cpp:63
QgsDirectionalLightWidget::QgsDirectionalLightWidget
QgsDirectionalLightWidget(QWidget *parent=nullptr)
Constructor.
Definition
qgsdirectionallightwidget.cpp:25
Generated on
for QGIS API Documentation by
1.15.0