QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
3 More...
#include <qgsdirectionallightsettings.h>
Public Member Functions | |
QgsDirectionalLightSettings ()=default | |
Construct a directional light with default values. | |
QgsDirectionalLightSettings * | clone () const override |
Returns a copy of the light source. | |
QColor | color () const |
Returns color of the light. | |
Qt3DCore::QEntity * | createEntity (const Qgs3DMapSettings &map, Qt3DCore::QEntity *parent) const override |
Creates an entity representing the light source. | |
QgsVector3D | direction () const |
Returns the direction of the light in degrees. | |
float | intensity () const |
Returns intensity of the light. | |
bool | operator== (const QgsDirectionalLightSettings &other) |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context=QgsReadWriteContext()) override |
Reads configuration from a DOM element previously written using writeXml(). | |
void | setColor (const QColor &color) |
Sets color of the light. | |
void | setDirection (const QgsVector3D &direction) |
Sets the direction of the light in degrees. | |
void | setIntensity (float intensity) |
Sets intensity of the light. | |
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 () |
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. | |
3
Definition of a directional light in a 3D map scene
Definition at line 33 of file qgsdirectionallightsettings.h.
|
default |
Construct a directional light with default values.
|
overridevirtual |
Returns a copy of the light source.
Implements QgsLightSource.
Definition at line 29 of file qgsdirectionallightsettings.cpp.
|
inline |
Returns color of the light.
Definition at line 51 of file qgsdirectionallightsettings.h.
|
overridevirtual |
Creates an entity representing the light source.
Implements QgsLightSource.
Definition at line 34 of file qgsdirectionallightsettings.cpp.
|
inline |
Returns the direction of the light in degrees.
Definition at line 46 of file qgsdirectionallightsettings.h.
|
inline |
Returns intensity of the light.
Definition at line 56 of file qgsdirectionallightsettings.h.
bool QgsDirectionalLightSettings::operator== | ( | const QgsDirectionalLightSettings & | other | ) |
Definition at line 71 of file qgsdirectionallightsettings.cpp.
|
overridevirtual |
Reads configuration from a DOM element previously written using writeXml().
Implements QgsLightSource.
Definition at line 62 of file qgsdirectionallightsettings.cpp.
|
inline |
Sets color of the light.
Definition at line 53 of file qgsdirectionallightsettings.h.
|
inline |
Sets the direction of the light in degrees.
Definition at line 48 of file qgsdirectionallightsettings.h.
|
inline |
Sets intensity of the light.
Definition at line 58 of file qgsdirectionallightsettings.h.
|
overridevirtual |
Returns the light source type.
Implements QgsLightSource.
Definition at line 24 of file qgsdirectionallightsettings.cpp.
|
overridevirtual |
Writes the light source's configuration to a new DOM element and returns it.
Implements QgsLightSource.
Definition at line 51 of file qgsdirectionallightsettings.cpp.