16#ifndef QGSDIRECTIONALLIGHTSETTINGS_H
17#define QGSDIRECTIONALLIGHTSETTINGS_H
51 QColor
color()
const {
return mColor; }
65 QColor mColor = Qt::white;
66 float mIntensity = 1.0;
LightSourceType
Light source types for 3D scenes.
Definition of a directional light in a 3D map scene.
void setColor(const QColor &color)
Sets color of the light.
float intensity() const
Returns intensity of the light.
QColor color() const
Returns color of the light.
void setDirection(const QgsVector3D &direction)
Sets the direction of the light in degrees.
QDomElement writeXml(QDomDocument &doc, const QgsReadWriteContext &context=QgsReadWriteContext()) const override
Writes the light source's configuration to a new DOM element and returns it.
QgsDirectionalLightSettings()=default
Construct a directional light with default values.
Qt3DCore::QEntity * createEntity(const Qgs3DMapSettings &map, Qt3DCore::QEntity *parent) const override
Creates an entity representing the light source.
void setIntensity(float intensity)
Sets intensity of the light.
void readXml(const QDomElement &elem, const QgsReadWriteContext &context=QgsReadWriteContext()) override
Reads configuration from a DOM element previously written using writeXml().
QgsVector3D direction() const
Returns the direction of the light in degrees.
Base class for light sources in 3d scenes.
virtual Qgis::LightSourceType type() const =0
Returns the light source type.
virtual QgsLightSource * clone() const =0
Returns a copy of the light source.
A container for the context for various read/write operations on objects.
A 3D vector (similar to QVector3D) with the difference that it uses double precision instead of singl...
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)