QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsAmbientOcclusionSettings Class Reference

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.
 
QgsAmbientOcclusionSettingsoperator= (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.
 

Detailed Description

class containing the configuration of ambient occlusion rendering 3

Note
Not available in Python bindings
Since
QGIS 3.28

Definition at line 35 of file qgsambientocclusionsettings.h.

Constructor & Destructor Documentation

◆ QgsAmbientOcclusionSettings() [1/2]

QgsAmbientOcclusionSettings::QgsAmbientOcclusionSettings ( )
default

◆ QgsAmbientOcclusionSettings() [2/2]

QgsAmbientOcclusionSettings::QgsAmbientOcclusionSettings ( const QgsAmbientOcclusionSettings other)

Definition at line 23 of file qgsambientocclusionsettings.cpp.

Member Function Documentation

◆ intensity()

float QgsAmbientOcclusionSettings::intensity ( ) const
inline

Returns the shading factor of the ambient occlusion effect.

Definition at line 58 of file qgsambientocclusionsettings.h.

◆ isEnabled()

bool QgsAmbientOcclusionSettings::isEnabled ( ) const
inline

Returns whether ambient occlusion effect is enabled.

Definition at line 52 of file qgsambientocclusionsettings.h.

◆ operator=()

QgsAmbientOcclusionSettings & QgsAmbientOcclusionSettings::operator= ( QgsAmbientOcclusionSettings const &  rhs)

Definition at line 32 of file qgsambientocclusionsettings.cpp.

◆ radius()

float QgsAmbientOcclusionSettings::radius ( ) const
inline

Returns the radius parameter of the ambient occlusion effect.

Definition at line 64 of file qgsambientocclusionsettings.h.

◆ readXml()

void QgsAmbientOcclusionSettings::readXml ( const QDomElement &  element,
const QgsReadWriteContext context 
)

Reads settings from a DOM element.

Definition at line 41 of file qgsambientocclusionsettings.cpp.

◆ setEnabled()

void QgsAmbientOcclusionSettings::setEnabled ( bool  enabled)
inline

Sets whether ambient occlusion effect is enabled.

Definition at line 49 of file qgsambientocclusionsettings.h.

◆ setIntensity()

void QgsAmbientOcclusionSettings::setIntensity ( float  factor)
inline

Sets the shading factor of the ambient occlusion effect.

Definition at line 55 of file qgsambientocclusionsettings.h.

◆ setRadius()

void QgsAmbientOcclusionSettings::setRadius ( float  radius)
inline

Sets the radius parameter of the ambient occlusion effect.

Definition at line 61 of file qgsambientocclusionsettings.h.

◆ setThreshold()

void QgsAmbientOcclusionSettings::setThreshold ( float  threshold)
inline

Sets at what amount of occlusion the effect will kick in.

Definition at line 67 of file qgsambientocclusionsettings.h.

◆ threshold()

float QgsAmbientOcclusionSettings::threshold ( ) const
inline

Returns at what amount of occlusion the effect will kick in.

Definition at line 70 of file qgsambientocclusionsettings.h.

◆ writeXml()

void QgsAmbientOcclusionSettings::writeXml ( QDomElement &  element,
const QgsReadWriteContext context 
) const

Writes settings to a DOM element.

Definition at line 51 of file qgsambientocclusionsettings.cpp.


The documentation for this class was generated from the following files: