|
QGIS API Documentation 3.99.0-Master (21b3aa880ba)
|
Widget for direction light settings. More...
#include <qgsdirectionallightwidget.h>

Signals | |
| void | directionChanged () |
| Emitted when the direction is changed. | |
Public Member Functions | |
| QgsDirectionalLightWidget (QWidget *parent=nullptr) | |
| Constructor. | |
| ~QgsDirectionalLightWidget () override | |
| double | altitude () const |
| Returns the altitude value (degree). | |
| double | azimuth () const |
| Returns the azimuth value (degree). | |
| void | setAltitude (double altitude) |
| Sets the altitude value (degree). | |
| void | setAzimuth (double azimuth) |
| Sets the azimuth value (degree). | |
| void | setEnableAzimuth (bool enable) |
| Sets whether the azimut can be changed, for example, when using multidirectional light. | |
Widget for direction light settings.
The user can choose azimuth and altitude values.
Definition at line 35 of file qgsdirectionallightwidget.h.
|
explicit |
Constructor.
Definition at line 25 of file qgsdirectionallightwidget.cpp.
|
override |
Definition at line 54 of file qgsdirectionallightwidget.cpp.
| double QgsDirectionalLightWidget::altitude | ( | ) | const |
Returns the altitude value (degree).
Definition at line 73 of file qgsdirectionallightwidget.cpp.
| double QgsDirectionalLightWidget::azimuth | ( | ) | const |
Returns the azimuth value (degree).
Definition at line 63 of file qgsdirectionallightwidget.cpp.
|
signal |
Emitted when the direction is changed.
| void QgsDirectionalLightWidget::setAltitude | ( | double | altitude | ) |
Sets the altitude value (degree).
Definition at line 68 of file qgsdirectionallightwidget.cpp.
| void QgsDirectionalLightWidget::setAzimuth | ( | double | azimuth | ) |
Sets the azimuth value (degree).
Definition at line 58 of file qgsdirectionallightwidget.cpp.
| void QgsDirectionalLightWidget::setEnableAzimuth | ( | bool | enable | ) |
Sets whether the azimut can be changed, for example, when using multidirectional light.
Definition at line 78 of file qgsdirectionallightwidget.cpp.