QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
3 More...
#include <qgslightsource.h>
Public Member Functions | |
virtual | ~QgsLightSource () |
virtual QgsLightSource * | clone () const =0 |
Returns a copy of the light source. | |
virtual Qt3DCore::QEntity * | createEntity (const Qgs3DMapSettings &map, Qt3DCore::QEntity *parent) const =0 |
Creates an entity representing the light source. | |
virtual void | readXml (const QDomElement &elem, const QgsReadWriteContext &context=QgsReadWriteContext())=0 |
Reads configuration from a DOM element previously written using writeXml(). | |
virtual void | resolveReferences (const QgsProject &project) |
After reading from XML, resolve references to any layers that have been read as layer IDs. | |
virtual Qgis::LightSourceType | type () const =0 |
Returns the light source type. | |
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. | |
Static Public Member Functions | |
static QgsLightSource * | createFromXml (const QDomElement &element, const QgsReadWriteContext &context) |
Creates a new light source from an XML element. | |
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 29 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.