QGIS API Documentation 3.99.0-Master (c22de0620c0)
Loading...
Searching...
No Matches
qgs3d.h
Go to the documentation of this file.
1/***************************************************************************
2 qgs3d.h
3 --------
4 begin : July 2020
5 copyright : (C) 2020 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGS3D_H
19#define QGS3D_H
20
21#include "qgis_3d.h"
22
25
32class _3D_EXPORT Qgs3D
33{
34 public:
35 Qgs3D( const Qgs3D &other ) = delete;
36 Qgs3D &operator=( const Qgs3D &other ) = delete;
37
41 static Qgs3D *instance();
42
43 ~Qgs3D();
44
48 static void initialize();
49
54
59
60 private:
61 Qgs3D();
62
63#ifdef SIP_RUN
64 Qgs3D( const Qgs3D &other );
65#endif
66
67 bool mInitialized = false;
68
69 QgsMaterialRegistry *mMaterialRegistry = nullptr;
70 Qgs3DTerrainRegistry *mTerrainRegistry = nullptr;
71};
72
73#endif // QGS3D_H
Registry of available 3d terrain classes.
static void initialize()
Initializes the 3D framework.
Definition qgs3d.cpp:58
static Qgs3DTerrainRegistry * terrainRegistry()
Returns the terrain registry, used for managing 3D terrains.
Definition qgs3d.cpp:93
static QgsMaterialRegistry * materialRegistry()
Returns the material registry, used for managing 3D materials.
Definition qgs3d.cpp:88
static Qgs3D * instance()
Returns a pointer to the singleton instance.
Definition qgs3d.cpp:48
Qgs3D & operator=(const Qgs3D &other)=delete
Qgs3D(const Qgs3D &other)=delete
Registry of available 3d material settings classes.