QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
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 = 0.5;
85 float mConstantAttenuation = 1.0f;
86 float mLinearAttenuation = 0.0f;
87 float mQuadraticAttenuation = 0.0f;
90 #endif // QGSPOINTLIGHTSETTINGS_H
float constantAttenuation() const
Returns constant attenuation (A_0)
void setIntensity(float intensity)
Sets intensity of the light.
QgsVector3D position() const
Returns position of the light (in 3D world coordinates)
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
void setPosition(const QgsVector3D &pos)
Sets position of the light (in 3D world coordinates)
QColor color() const
Returns color of the light.
void setQuadraticAttenuation(float value)
Sets quadratic attenuation (A_2)
void setColor(const QColor &color)
Sets color of the light.
float quadraticAttenuation() const
Returns quadratic attenuation (A_2)
float intensity() const
Returns intensity of the light.
void setConstantAttenuation(float value)
Sets constant attenuation (A_0)
float linearAttenuation() const
Returns linear attenuation (A_1)
void setLinearAttenuation(float value)
Sets linear attenuation (A_1)