QGIS API Documentation 4.1.0-Master (9af12b5a203)
Loading...
Searching...
No Matches
QgsSkyboxSettings Class Reference

Contains the configuration of a skybox entity. More...

#include <qgsskyboxsettings.h>

Inheritance diagram for QgsSkyboxSettings:

Public Member Functions

 QgsSkyboxSettings ()=default
 QgsSkyboxSettings (const QgsSkyboxSettings &other)
QgsSkyboxSettingsclone () const override
 Returns a deep copy of this background settings object.
QMap< QString, QString > cubeMapFacesPaths () const
 Returns a map containing the path of each texture specified by the user.
Qgis::SkyboxCubeMapping cubeMapping () const
 Returns the cube face mapping scheme.
QgsSkyboxSettingsoperator= (QgsSkyboxSettings const &rhs)
void readXml (const QDomElement &element, const QgsReadWriteContext &context) override
 Reads settings from a DOM element.
void setCubeMapFace (const QString &face, const QString &path)
 Sets a face of one of the skybox 6 textures The face parameter needs to be one of the followings: "posX", "posY", "posZ", "negX", "negY", "negZ".
void setCubeMapping (Qgis::SkyboxCubeMapping mapping)
 Sets the cube face mapping scheme.
Qgis::Map3DBackgroundType type () const override
 Returns the unique type for this background settings class.
void writeXml (QDomElement &element, const QgsReadWriteContext &context) const override
 Writes settings to a DOM element.
Public Member Functions inherited from QgsAbstract3DMapBackgroundSettings
virtual ~QgsAbstract3DMapBackgroundSettings ()=default

Detailed Description

Contains the configuration of a skybox entity.

Since
QGIS 3.16

Definition at line 40 of file qgsskyboxsettings.h.

Constructor & Destructor Documentation

◆ QgsSkyboxSettings() [1/2]

QgsSkyboxSettings::QgsSkyboxSettings ( )
default

◆ QgsSkyboxSettings() [2/2]

QgsSkyboxSettings::QgsSkyboxSettings ( const QgsSkyboxSettings & other)

Definition at line 33 of file qgsskyboxsettings.cpp.

Member Function Documentation

◆ clone()

QgsSkyboxSettings * QgsSkyboxSettings::clone ( ) const
overridevirtual

Returns a deep copy of this background settings object.

Implements QgsAbstract3DMapBackgroundSettings.

Definition at line 27 of file qgsskyboxsettings.cpp.

◆ cubeMapFacesPaths()

QMap< QString, QString > QgsSkyboxSettings::cubeMapFacesPaths ( ) const
inline

Returns a map containing the path of each texture specified by the user.

The map will contain the following keys corresponding to each face "posX", "posY", "posZ", "negX", "negY", "negZ".

Definition at line 66 of file qgsskyboxsettings.h.

◆ cubeMapping()

Qgis::SkyboxCubeMapping QgsSkyboxSettings::cubeMapping ( ) const

Returns the cube face mapping scheme.

See also
setCubeMapping()
Since
QGIS 4.2

Definition at line 87 of file qgsskyboxsettings.cpp.

◆ operator=()

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

Definition at line 43 of file qgsskyboxsettings.cpp.

◆ readXml()

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

Reads settings from a DOM element.

Implements QgsAbstract3DMapBackgroundSettings.

Definition at line 56 of file qgsskyboxsettings.cpp.

◆ setCubeMapFace()

void QgsSkyboxSettings::setCubeMapFace ( const QString & face,
const QString & path )
inline

Sets a face of one of the skybox 6 textures The face parameter needs to be one of the followings: "posX", "posY", "posZ", "negX", "negY", "negZ".

Definition at line 72 of file qgsskyboxsettings.h.

◆ setCubeMapping()

void QgsSkyboxSettings::setCubeMapping ( Qgis::SkyboxCubeMapping mapping)

Sets the cube face mapping scheme.

See also
cubeMapping()
Since
QGIS 4.2

Definition at line 92 of file qgsskyboxsettings.cpp.

◆ type()

Qgis::Map3DBackgroundType QgsSkyboxSettings::type ( ) const
inlineoverridevirtual

Returns the unique type for this background settings class.

Implements QgsAbstract3DMapBackgroundSettings.

Definition at line 47 of file qgsskyboxsettings.h.

◆ writeXml()

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

Writes settings to a DOM element.

Implements QgsAbstract3DMapBackgroundSettings.

Definition at line 72 of file qgsskyboxsettings.cpp.


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