QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
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 58 of file qgsambientocclusionsettings.h.
|
inline |
Returns whether ambient occlusion effect is enabled.
Definition at line 52 of file qgsambientocclusionsettings.h.
QgsAmbientOcclusionSettings & QgsAmbientOcclusionSettings::operator= | ( | QgsAmbientOcclusionSettings const & | rhs | ) |
Definition at line 32 of file qgsambientocclusionsettings.cpp.
|
inline |
Returns the radius parameter of the ambient occlusion effect.
Definition at line 64 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 49 of file qgsambientocclusionsettings.h.
|
inline |
Sets the shading factor of the ambient occlusion effect.
Definition at line 55 of file qgsambientocclusionsettings.h.
|
inline |
Sets the radius parameter of the ambient occlusion effect.
Definition at line 61 of file qgsambientocclusionsettings.h.
|
inline |
Sets at what amount of occlusion the effect will kick in.
Definition at line 67 of file qgsambientocclusionsettings.h.
|
inline |
Returns at what amount of occlusion the effect will kick in.
Definition at line 70 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.