QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
class containing the configuration of ambient occlusion rendering 3 More...
#include <qgsambientocclusionsettings.h>
Public Member Functions | |
QgsAmbientOcclusionSettings ()=default | |
QgsAmbientOcclusionSettings (const QgsAmbientOcclusionSettings &other) | |
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) |
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 |
QgsAmbientOcclusionSettings::QgsAmbientOcclusionSettings | ( | const QgsAmbientOcclusionSettings & | other | ) |
Definition at line 23 of file qgsambientocclusionsettings.cpp.
|
inline |
Returns the shading factor of the ambient occlusion effect.
Definition at line 57 of file qgsambientocclusionsettings.h.
|
inline |
Returns whether ambient occlusion effect is enabled.
Definition at line 51 of file qgsambientocclusionsettings.h.
QgsAmbientOcclusionSettings & QgsAmbientOcclusionSettings::operator= | ( | QgsAmbientOcclusionSettings const & | rhs | ) |
Definition at line 31 of file qgsambientocclusionsettings.cpp.
|
inline |
Returns the radius parameter of the ambient occlusion effect.
Definition at line 63 of file qgsambientocclusionsettings.h.
void QgsAmbientOcclusionSettings::readXml | ( | const QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) |
Reads settings from a DOM element.
Definition at line 40 of file qgsambientocclusionsettings.cpp.
|
inline |
Sets whether ambient occlusion effect is enabled.
Definition at line 48 of file qgsambientocclusionsettings.h.
|
inline |
Sets the shading factor of the ambient occlusion effect.
Definition at line 54 of file qgsambientocclusionsettings.h.
|
inline |
Sets the radius parameter of the ambient occlusion effect.
Definition at line 60 of file qgsambientocclusionsettings.h.
|
inline |
Sets at what amount of occlusion the effect will kick in.
Definition at line 66 of file qgsambientocclusionsettings.h.
|
inline |
Returns at what amount of occlusion the effect will kick in.
Definition at line 69 of file qgsambientocclusionsettings.h.
void QgsAmbientOcclusionSettings::writeXml | ( | QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) | const |
Writes settings to a DOM element.
Definition at line 50 of file qgsambientocclusionsettings.cpp.