QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
3 More...
#include <qgsdirectionallightsettings.h>
Public Member Functions | |
QgsDirectionalLightSettings ()=default | |
Construct a directional light with default values. More... | |
QgsDirectionalLightSettings * | clone () const override |
Returns a copy of the light source. More... | |
QColor | color () const |
Returns color of the light. More... | |
Qt3DCore::QEntity * | createEntity (const Qgs3DMapSettings &map, Qt3DCore::QEntity *parent) const override |
Creates an entity representing the light source. 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, const QgsReadWriteContext &context=QgsReadWriteContext()) override |
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... | |
Qgis::LightSourceType | type () const override |
Returns the light source type. More... | |
QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context=QgsReadWriteContext()) const override |
Writes the light source's configuration to a new DOM element and returns it. More... | |
Public Member Functions inherited from QgsLightSource | |
virtual | ~QgsLightSource () |
virtual QgsLightSource * | clone () const =0 |
Returns a copy of the light source. More... | |
virtual Qt3DCore::QEntity * | createEntity (const Qgs3DMapSettings &map, Qt3DCore::QEntity *parent) const =0 |
Creates an entity representing the light source. More... | |
virtual void | readXml (const QDomElement &elem, const QgsReadWriteContext &context=QgsReadWriteContext())=0 |
Reads configuration from a DOM element previously written using writeXml(). More... | |
virtual void | resolveReferences (const QgsProject &project) |
After reading from XML, resolve references to any layers that have been read as layer IDs. More... | |
virtual Qgis::LightSourceType | type () const =0 |
Returns the light source type. More... | |
virtual QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context=QgsReadWriteContext()) const =0 |
Writes the light source's configuration to a new DOM element and returns it. More... | |
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. More... | |
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 28 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 33 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 70 of file qgsdirectionallightsettings.cpp.
|
overridevirtual |
Reads configuration from a DOM element previously written using writeXml().
Implements QgsLightSource.
Definition at line 61 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 23 of file qgsdirectionallightsettings.cpp.
|
overridevirtual |
Writes the light source's configuration to a new DOM element and returns it.
Implements QgsLightSource.
Definition at line 50 of file qgsdirectionallightsettings.cpp.