QGIS API Documentation
3.99.0-Master (a8f284845db)
Loading...
Searching...
No Matches
src
3d
qgsskyboxsettings.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsskyboxsettings.h
3
--------------------------------------
4
Date : August 2020
5
Copyright : (C) 2020 by Belgacem Nedjima
6
Email : gb uderscore nedjima at esi dot dz
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSSKYBOXSETTINGS_H
17
#define QGSSKYBOXSETTINGS_H
18
19
#include "qgis_3d.h"
20
#include "
qgsskyboxentity.h
"
21
22
#include <QMap>
23
#include <QString>
24
25
#define SIP_NO_FILE
26
27
class
QgsReadWriteContext
;
28
class
QDomElement;
29
30
37
class
_3D_EXPORT
QgsSkyboxSettings
38
{
39
public
:
40
QgsSkyboxSettings
() =
default
;
41
QgsSkyboxSettings
(
const
QgsSkyboxSettings
&other );
42
QgsSkyboxSettings
&
operator=
(
QgsSkyboxSettings
const
&rhs );
43
45
void
readXml
(
const
QDomElement &element,
const
QgsReadWriteContext
&context );
47
void
writeXml
( QDomElement &element,
const
QgsReadWriteContext
&context )
const
;
48
50
QgsSkyboxEntity::SkyboxType
skyboxType
()
const
{
return
mSkyboxType; }
52
void
setSkyboxType
(
QgsSkyboxEntity::SkyboxType
type ) { mSkyboxType = type; }
53
55
QString
panoramicTexturePath
()
const
{
return
mPanoramicTexturePath; }
57
void
setPanoramicTexturePath
(
const
QString &texturePath ) { mPanoramicTexturePath = texturePath; }
58
63
QMap<QString, QString>
cubeMapFacesPaths
()
const
{
return
mCubeMapFacesPaths; }
64
69
void
setCubeMapFace
(
const
QString &face,
const
QString &path ) { mCubeMapFacesPaths[face] = path; }
70
71
private
:
72
QgsSkyboxEntity::SkyboxType
mSkyboxType =
QgsSkyboxEntity::PanoramicSkybox
;
73
//
74
QString mPanoramicTexturePath;
75
//
76
QMap<QString, QString> mCubeMapFacesPaths;
77
};
78
79
#endif
// QGSSKYBOXSETTINGS_H
QgsReadWriteContext
A container for the context for various read/write operations on objects.
Definition
qgsreadwritecontext.h:38
QgsSkyboxEntity::SkyboxType
SkyboxType
Skybox type enumeration.
Definition
qgsskyboxentity.h:62
QgsSkyboxEntity::PanoramicSkybox
@ PanoramicSkybox
Definition
qgsskyboxentity.h:63
QgsSkyboxSettings::setSkyboxType
void setSkyboxType(QgsSkyboxEntity::SkyboxType type)
Sets the type of the skybox.
Definition
qgsskyboxsettings.h:52
QgsSkyboxSettings::QgsSkyboxSettings
QgsSkyboxSettings()=default
QgsSkyboxSettings::cubeMapFacesPaths
QMap< QString, QString > cubeMapFacesPaths() const
Returns a map containing the path of each texture specified by the user.
Definition
qgsskyboxsettings.h:63
QgsSkyboxSettings::skyboxType
QgsSkyboxEntity::SkyboxType skyboxType() const
Returns the type of the skybox.
Definition
qgsskyboxsettings.h:50
QgsSkyboxSettings::setPanoramicTexturePath
void setPanoramicTexturePath(const QString &texturePath)
Sets the panoramic texture path of a skybox of type "Panoramic skybox".
Definition
qgsskyboxsettings.h:57
QgsSkyboxSettings::readXml
void readXml(const QDomElement &element, const QgsReadWriteContext &context)
Reads settings from a DOM element.
Definition
qgsskyboxsettings.cpp:44
QgsSkyboxSettings::operator=
QgsSkyboxSettings & operator=(QgsSkyboxSettings const &rhs)
Definition
qgsskyboxsettings.cpp:33
QgsSkyboxSettings::setCubeMapFace
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...
Definition
qgsskyboxsettings.h:69
QgsSkyboxSettings::writeXml
void writeXml(QDomElement &element, const QgsReadWriteContext &context) const
Writes settings to a DOM element.
Definition
qgsskyboxsettings.cpp:62
QgsSkyboxSettings::panoramicTexturePath
QString panoramicTexturePath() const
Returns the panoramic texture path of a skybox of type "Panormaic skybox".
Definition
qgsskyboxsettings.h:55
qgsskyboxentity.h
Generated on
for QGIS API Documentation by
1.15.0