QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSDIRECTIONALLIGHTSETTINGS_H
17 #define QGSDIRECTIONALLIGHTSETTINGS_H
44 QColor
color()
const {
return mColor; }
46 void setColor(
const QColor &color ) { mColor = color; }
54 QDomElement writeXml( QDomDocument &doc )
const;
56 void readXml(
const QDomElement &elem );
62 QColor mColor = Qt::white;
63 float mIntensity = 1.0;
66 #endif // QGSDIRECTIONALLIGHTSETTINGS_H
QColor color() const
Returns color of the light.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
void setDirection(const QgsVector3D &direction)
Sets the direction of the light in degrees.
3 Class for storage of 3D vectors similar to QVector3D, with the difference that it uses double preci...
void setIntensity(float intensity)
Sets intensity of the light.
QgsDirectionalLightSettings()=default
Construct a directional light with default values.
float intensity() const
Returns intensity of the light.
QgsVector3D direction() const
Returns the direction of the light in degrees.
void setColor(const QColor &color)
Sets color of the light.
3 Definition of a directional light in a 3D map scene