16#ifndef QGSSKYBOXSETTINGS_H
17#define QGSSKYBOXSETTINGS_H
32#define ENABLE_PANORAMIC_SKYBOX 0
55#if ENABLE_PANORAMIC_SKYBOX
57 QString panoramicTexturePath()
const {
return mPanoramicTexturePath; }
59 void setPanoramicTexturePath(
const QString &texturePath ) { mPanoramicTexturePath = texturePath; }
72 void setCubeMapFace(
const QString &face,
const QString &path ) { mCubeMapFacesPaths[face] = path; }
129#if ENABLE_PANORAMIC_SKYBOX
130 QString mPanoramicTexturePath;
134 QMap<QString, QString> mCubeMapFacesPaths;
135 bool mEnableEnvironmentalLighting =
true;
136 double mEnvironmentalLightStrength = 1.0;
Map3DBackgroundType
Background types for 3D map view.
@ DistinctTextureSkybox
Skybox with 6 distinct textures for different faces.
SkyboxCubeMapping
Skybox texture cube mapping for distinct texture skyboxes.
@ NativeZUp
Textures exported for Z-up (+X Right, +Y Forward, +Z Up).
Base class for all background settings classes used in a 3D map view.
virtual QgsAbstract3DMapBackgroundSettings * clone() const =0
Returns a deep copy of this background settings object.
A container for the context for various read/write operations on objects.
Contains the configuration of a skybox entity.
QgsSkyboxSettings()=default
bool environmentalLightingEnabled() const
Returns true if the skybox should generate environmental lighting effects.
QMap< QString, QString > cubeMapFacesPaths() const
Returns a map containing the path of each texture specified by the user.
Qgis::Map3DBackgroundType type() const override
Returns the unique type for this background settings class.
double environmentalLightStrength() const
Returns the environmental light strength, as a factor between 0 and 1.
void setEnvironmentalLightingEnabled(bool enabled)
Sets whether the skybox should generate environmental lighting effects.
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 setEnvironmentalLightStrength(double strength)
Sets the strength of the environmental light, as a factor between 0 and 1.