QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
class containing the configuration of ambient occlusion rendering 3 More...
#include <qgsambientocclusionsettings.h>
Public Member Functions | |
QgsAmbientOcclusionSettings ()=default | |
Default constructor. | |
QgsAmbientOcclusionSettings (const QgsAmbientOcclusionSettings &other) | |
Copy constructor. | |
float | intensity () const |
Returns the shading factor of the ambient occlusion effect. | |
bool | isEnabled () const |
Returns whether ambient occlusion effect is enabled. | |
QgsAmbientOcclusionSettings & | operator= (QgsAmbientOcclusionSettings const &rhs) |
delete assignment operator | |
float | radius () const |
Returns the radius parameter of the ambient occlusion effect. | |
void | readXml (const QDomElement &element, const QgsReadWriteContext &context) |
Reads settings from a DOM element. | |
void | setEnabled (bool enabled) |
Sets whether ambient occlusion effect is enabled. | |
void | setIntensity (float factor) |
Sets the shading factor of the ambient occlusion effect. | |
void | setRadius (float radius) |
Sets the radius parameter of the ambient occlusion effect. | |
void | setThreshold (float threshold) |
Sets at what amount of occlusion the effect will kick in. | |
float | threshold () const |
Returns at what amount of occlusion the effect will kick in. | |
void | writeXml (QDomElement &element, const QgsReadWriteContext &context) const |
Writes settings to a DOM element. | |
class containing the configuration of ambient occlusion rendering 3
Definition at line 35 of file qgsambientocclusionsettings.h.
|
default |
Default constructor.
QgsAmbientOcclusionSettings::QgsAmbientOcclusionSettings | ( | const QgsAmbientOcclusionSettings & | other | ) |
Copy constructor.
Definition at line 23 of file qgsambientocclusionsettings.cpp.
|
inline |
Returns the shading factor of the ambient occlusion effect.
Definition at line 60 of file qgsambientocclusionsettings.h.
|
inline |
Returns whether ambient occlusion effect is enabled.
Definition at line 54 of file qgsambientocclusionsettings.h.
QgsAmbientOcclusionSettings & QgsAmbientOcclusionSettings::operator= | ( | QgsAmbientOcclusionSettings const & | rhs | ) |
delete assignment operator
Definition at line 32 of file qgsambientocclusionsettings.cpp.
|
inline |
Returns the radius parameter of the ambient occlusion effect.
Definition at line 66 of file qgsambientocclusionsettings.h.
void QgsAmbientOcclusionSettings::readXml | ( | const QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) |
Reads settings from a DOM element.
Definition at line 41 of file qgsambientocclusionsettings.cpp.
|
inline |
Sets whether ambient occlusion effect is enabled.
Definition at line 51 of file qgsambientocclusionsettings.h.
|
inline |
Sets the shading factor of the ambient occlusion effect.
Definition at line 57 of file qgsambientocclusionsettings.h.
|
inline |
Sets the radius parameter of the ambient occlusion effect.
Definition at line 63 of file qgsambientocclusionsettings.h.
|
inline |
Sets at what amount of occlusion the effect will kick in.
Definition at line 69 of file qgsambientocclusionsettings.h.
|
inline |
Returns at what amount of occlusion the effect will kick in.
Definition at line 72 of file qgsambientocclusionsettings.h.
void QgsAmbientOcclusionSettings::writeXml | ( | QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) | const |
Writes settings to a DOM element.
Definition at line 51 of file qgsambientocclusionsettings.cpp.