|
QGIS API Documentation 4.1.0-Master (ca2ac17535b)
|
Definition of a sun light in a 3D map scene. More...
#include <qgssunlightsettings.h>

Public Member Functions | |
| QgsSunLightSettings ()=default | |
| double | atmosphericPressure () const |
| Returns the atmospheric pressure (in millibars/hPa) used for the solar refraction calculation. | |
| QgsSunLightSettings * | clone () const override |
| Returns a copy of the light source. | |
| QColor | color () const |
| Returns the base color of the sunlight. | |
| Qt3DCore::QEntity * | createEntity (const Qgs3DMapSettings &map, Qt3DCore::QEntity *parent) const override |
| Creates an entity representing the light source. | |
| QgsVector3D | direction (const Qgs3DMapSettings &map) const |
| Returns the calculated direction of the light. | |
| double | intensity () const |
| Returns the base intensity of the sunlight. | |
| bool | operator== (const QgsSunLightSettings &other) const |
| void | readXml (const QDomElement &elem, const QgsReadWriteContext &context=QgsReadWriteContext()) override |
| Reads configuration from a DOM element previously written using writeXml(). | |
| double | referenceElevation () const |
| Returns the reference elevation (in meters above sea level) used for the solar position calculation. | |
| void | setAtmosphericPressure (double pressure) |
| Sets the atmospheric pressure (in millibars/hPa) for the solar refraction calculation. | |
| void | setColor (const QColor &color) |
| Sets the base color of the sunlight. | |
| void | setIntensity (double intensity) |
| Sets the base intensity of the sunlight. | |
| void | setReferenceElevation (double elevation) |
| Sets the reference elevation (in meters above sea level) for the solar position calculation. | |
| void | setSunTime (const QDateTime &time) |
| Sets the date and time for the sun position calculation. | |
| void | setTemperature (double temperature) |
| Sets the ambient temperature (in Celsius) for the solar refraction calculation. | |
| QDateTime | sunTime () const |
| Returns the configured date and time for the sun position calculation. | |
| double | temperature () const |
| Returns the ambient temperature (in Celsius) used for the solar refraction calculation. | |
| Qgis::LightSourceType | type () const override |
| Returns the light source type. | |
| QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context=QgsReadWriteContext()) const override |
| Writes the light source's configuration to a new DOM element and returns it. | |
| Public Member Functions inherited from QgsLightSource | |
| virtual | ~QgsLightSource () |
| QString | id () const |
| Returns the unique light ID string. | |
| virtual void | resolveReferences (const QgsProject &project) |
| After reading from XML, resolve references to any layers that have been read as layer IDs. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from QgsLightSource | |
| static QgsLightSource * | createFromXml (const QDomElement &element, const QgsReadWriteContext &context) |
| Creates a new light source from an XML element. | |
| Protected Member Functions inherited from QgsLightSource | |
| QgsLightSource () | |
| Protected Attributes inherited from QgsLightSource | |
| QString | mId |
| Unique light ID. | |
Definition of a sun light in a 3D map scene.
A light source based on the real-world sun position.
Definition at line 36 of file qgssunlightsettings.h.
|
default |
|
inline |
Returns the atmospheric pressure (in millibars/hPa) used for the solar refraction calculation.
Definition at line 97 of file qgssunlightsettings.h.
|
overridevirtual |
Returns a copy of the light source.
Implements QgsLightSource.
Definition at line 37 of file qgssunlightsettings.cpp.
|
inline |
Returns the base color of the sunlight.
Definition at line 69 of file qgssunlightsettings.h.
|
overridevirtual |
Creates an entity representing the light source.
Implements QgsLightSource.
Definition at line 68 of file qgssunlightsettings.cpp.
| QgsVector3D QgsSunLightSettings::direction | ( | const Qgs3DMapSettings & | map | ) | const |
Returns the calculated direction of the light.
Definition at line 44 of file qgssunlightsettings.cpp.
|
inline |
Returns the base intensity of the sunlight.
Definition at line 83 of file qgssunlightsettings.h.
| bool QgsSunLightSettings::operator== | ( | const QgsSunLightSettings & | other | ) | const |
Definition at line 112 of file qgssunlightsettings.cpp.
|
overridevirtual |
Reads configuration from a DOM element previously written using writeXml().
Implements QgsLightSource.
Definition at line 96 of file qgssunlightsettings.cpp.
|
inline |
Returns the reference elevation (in meters above sea level) used for the solar position calculation.
Definition at line 125 of file qgssunlightsettings.h.
|
inline |
Sets the atmospheric pressure (in millibars/hPa) for the solar refraction calculation.
Definition at line 104 of file qgssunlightsettings.h.
|
inline |
Sets the base color of the sunlight.
Definition at line 76 of file qgssunlightsettings.h.
|
inline |
Sets the base intensity of the sunlight.
Definition at line 90 of file qgssunlightsettings.h.
|
inline |
Sets the reference elevation (in meters above sea level) for the solar position calculation.
Definition at line 132 of file qgssunlightsettings.h.
|
inline |
Sets the date and time for the sun position calculation.
Definition at line 62 of file qgssunlightsettings.h.
|
inline |
Sets the ambient temperature (in Celsius) for the solar refraction calculation.
Definition at line 118 of file qgssunlightsettings.h.
|
inline |
Returns the configured date and time for the sun position calculation.
Definition at line 55 of file qgssunlightsettings.h.
|
inline |
Returns the ambient temperature (in Celsius) used for the solar refraction calculation.
Definition at line 111 of file qgssunlightsettings.h.
|
overridevirtual |
Returns the light source type.
Implements QgsLightSource.
Definition at line 32 of file qgssunlightsettings.cpp.
|
overridevirtual |
Writes the light source's configuration to a new DOM element and returns it.
Implements QgsLightSource.
Definition at line 82 of file qgssunlightsettings.cpp.