QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
3 More...
#include <qgslightsource.h>
Public Member Functions | |
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... | |
Static Public Member Functions | |
static QgsLightSource * | createFromXml (const QDomElement &element, const QgsReadWriteContext &context) |
Creates a new light source from an XML element. More... | |
3
Base class for light sources in 3d scenes.
Definition at line 46 of file qgslightsource.h.
|
virtualdefault |
|
pure virtual |
Returns a copy of the light source.
Implemented in QgsDirectionalLightSettings, and QgsPointLightSettings.
|
pure virtual |
Creates an entity representing the light source.
Implemented in QgsDirectionalLightSettings, and QgsPointLightSettings.
|
static |
Creates a new light source from an XML element.
Definition at line 30 of file qgslightsource.cpp.
|
pure virtual |
Reads configuration from a DOM element previously written using writeXml().
Implemented in QgsDirectionalLightSettings, and QgsPointLightSettings.
|
virtual |
After reading from XML, resolve references to any layers that have been read as layer IDs.
Definition at line 25 of file qgslightsource.cpp.
|
pure virtual |
Returns the light source type.
Implemented in QgsDirectionalLightSettings, and QgsPointLightSettings.
|
pure virtual |
Writes the light source's configuration to a new DOM element and returns it.
Implemented in QgsDirectionalLightSettings, and QgsPointLightSettings.