16#ifndef QGSPOINTLIGHTSETTINGS_H
17#define QGSPOINTLIGHTSETTINGS_H
57 QColor
color()
const {
return mColor; }
59 void setColor(
const QColor &color ) { mColor = color; }
86 QColor mColor = Qt::white;
87 float mIntensity = 1.0;
88 float mConstantAttenuation = 1.0f;
89 float mLinearAttenuation = 0.0f;
90 float mQuadraticAttenuation = 0.0f;
LightSourceType
Light source types for 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.
QgsPointLightSettings()=default
Construct a point light with default values.
float quadraticAttenuation() const
Returns quadratic attenuation (A_2)
void setIntensity(float intensity)
Sets intensity of the light.
void setPosition(const QgsVector3D &pos)
Sets position of the light (in 3D world coordinates)
float linearAttenuation() const
Returns linear attenuation (A_1)
void setColor(const QColor &color)
Sets color of the light.
float intensity() const
Returns intensity of the light.
void setLinearAttenuation(float value)
Sets linear attenuation (A_1)
void setConstantAttenuation(float value)
Sets constant attenuation (A_0)
void setQuadraticAttenuation(float value)
Sets quadratic attenuation (A_2)
float constantAttenuation() const
Returns constant attenuation (A_0)
QColor color() const
Returns color of the light.
The class is used as a container of context for various read/write operations on other objects.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)