QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
|
3 More...
#include <qgsdirectionallightsettings.h>
Public Member Functions | |
QgsDirectionalLightSettings ()=default | |
Construct a directional light with default values. More... | |
QColor | color () const |
Returns color of the light. More... | |
QgsVector3D | direction () const |
Returns the direction of the light in degrees. More... | |
float | intensity () const |
Returns intensity of the light. More... | |
bool | operator== (const QgsDirectionalLightSettings &other) |
void | readXml (const QDomElement &elem) |
Reads configuration from a DOM element previously written using writeXml() More... | |
void | setColor (const QColor &color) |
Sets color of the light. More... | |
void | setDirection (const QgsVector3D &direction) |
Sets the direction of the light in degrees. More... | |
void | setIntensity (float intensity) |
Sets intensity of the light. More... | |
QDomElement | writeXml (QDomDocument &doc) const |
Writes configuration to a new DOM element and returns it. More... | |
3
Definition of a directional light in a 3D map scene
Definition at line 32 of file qgsdirectionallightsettings.h.
|
default |
Construct a directional light with default values.
|
inline |
Returns color of the light.
Definition at line 44 of file qgsdirectionallightsettings.h.
|
inline |
Returns the direction of the light in degrees.
Definition at line 39 of file qgsdirectionallightsettings.h.
|
inline |
Returns intensity of the light.
Definition at line 49 of file qgsdirectionallightsettings.h.
bool QgsDirectionalLightSettings::operator== | ( | const QgsDirectionalLightSettings & | other | ) |
Definition at line 43 of file qgsdirectionallightsettings.cpp.
void QgsDirectionalLightSettings::readXml | ( | const QDomElement & | elem | ) |
Reads configuration from a DOM element previously written using writeXml()
Definition at line 34 of file qgsdirectionallightsettings.cpp.
|
inline |
Sets color of the light.
Definition at line 46 of file qgsdirectionallightsettings.h.
|
inline |
Sets the direction of the light in degrees.
Definition at line 41 of file qgsdirectionallightsettings.h.
|
inline |
Sets intensity of the light.
Definition at line 51 of file qgsdirectionallightsettings.h.
QDomElement QgsDirectionalLightSettings::writeXml | ( | QDomDocument & | doc | ) | const |
Writes configuration to a new DOM element and returns it.
Definition at line 23 of file qgsdirectionallightsettings.cpp.