16#ifndef QGSSKYBOXSETTINGS_H
17#define QGSSKYBOXSETTINGS_H
31#define ENABLE_PANORAMIC_SKYBOX 0
56#if ENABLE_PANORAMIC_SKYBOX
58 QString panoramicTexturePath()
const {
return mPanoramicTexturePath; }
60 void setPanoramicTexturePath(
const QString &texturePath ) { mPanoramicTexturePath = texturePath; }
73 void setCubeMapFace(
const QString &face,
const QString &path ) { mCubeMapFacesPaths[face] = path; }
94#if ENABLE_PANORAMIC_SKYBOX
95 QString mPanoramicTexturePath;
99 QMap<QString, QString> mCubeMapFacesPaths;
SkyboxCubeMapping
Skybox texture cube mapping for distinct texture skyboxes.
@ NativeZUp
Textures exported for Z-up (+X Right, +Y Forward, +Z Up).
SkyboxType
Skybox types for 3D scenes.
@ DistinctTextures
Cube map built from distinct textures.
A container for the context for various read/write operations on objects.
QgsSkyboxSettings()=default
QMap< QString, QString > cubeMapFacesPaths() const
Returns a map containing the path of each texture specified by the user.
Qgis::SkyboxType skyboxType() const
Returns the type of the skybox.
void readXml(const QDomElement &element, const QgsReadWriteContext &context)
Reads settings from a DOM element.
void setSkyboxType(Qgis::SkyboxType type)
Sets the type of the skybox.
QgsSkyboxSettings & operator=(QgsSkyboxSettings const &rhs)
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: "po...
void writeXml(QDomElement &element, const QgsReadWriteContext &context) const
Writes settings to a DOM element.