16 #ifndef QGSPOINTLIGHTSETTINGS_H
17 #define QGSPOINTLIGHTSETTINGS_H
50 QColor
color()
const {
return mColor; }
52 void setColor(
const QColor &color ) { mColor = color; }
75 QDomElement writeXml( QDomDocument &doc )
const;
77 void readXml(
const QDomElement &elem );
83 QColor mColor = Qt::white;
84 float mIntensity = 1.0;
85 float mConstantAttenuation = 1.0f;
86 float mLinearAttenuation = 0.0f;
87 float mQuadraticAttenuation = 0.0f;
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)
QgsVector3D position() const
Returns position of the light (in 3D world coordinates)
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.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)