18#include <QDomDocument>
24 : mEnabled( other.mEnabled )
25 , mIntensity( other.mIntensity )
26 , mRadius( other.mRadius )
27 , mThreshold( other.mThreshold )
34 mEnabled = rhs.mEnabled;
35 mIntensity = rhs.mIntensity;
36 mRadius = rhs.mRadius;
37 mThreshold = rhs.mThreshold;
43 mEnabled = element.attribute( QStringLiteral(
"enabled" ), QStringLiteral(
"0" ) ).toInt();
44 mIntensity = element.attribute( QStringLiteral(
"intensity" ), QStringLiteral(
"0.5" ) ).toFloat();
45 mRadius = element.attribute( QStringLiteral(
"radius" ), QStringLiteral(
"25" ) ).toFloat();
46 mThreshold = element.attribute( QStringLiteral(
"threshold" ), QStringLiteral(
"0.5" ) ).toFloat();
53 element.setAttribute( QStringLiteral(
"enabled" ), mEnabled );
54 element.setAttribute( QStringLiteral(
"intensity" ), mIntensity );
55 element.setAttribute( QStringLiteral(
"radius" ), mRadius );
56 element.setAttribute( QStringLiteral(
"threshold" ), mThreshold );
class containing the configuration of ambient occlusion rendering 3
void writeXml(QDomElement &element, const QgsReadWriteContext &context) const
Writes settings to a DOM element.
QgsAmbientOcclusionSettings & operator=(QgsAmbientOcclusionSettings const &rhs)
delete assignment operator
QgsAmbientOcclusionSettings()=default
Default constructor.
void readXml(const QDomElement &element, const QgsReadWriteContext &context)
Reads settings from a DOM element.
The class is used as a container of context for various read/write operations on other objects.