QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
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
35class GUI_EXPORT QgsDirectionalLightWidget : public QWidget, private Ui::QgsDirectionalLightWidget
36{
37 Q_OBJECT
38
39 public:
41 explicit QgsDirectionalLightWidget( QWidget *parent = nullptr );
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:
62
63 private:
64};
65
66#endif // QGSDIRECTIONALLIGHTWIDGET_H
void setEnableAzimuth(bool enable)
Sets whether the azimut can be changed, for example, when using multidirectional light.
double altitude() const
Returns the altitude value (degree).
void directionChanged()
Emitted when the direction is changed.
void setAzimuth(double azimuth)
Sets the azimuth value (degree).
void setAltitude(double altitude)
Sets the altitude value (degree).
double azimuth() const
Returns the azimuth value (degree).
QgsDirectionalLightWidget(QWidget *parent=nullptr)
Constructor.