QGIS API Documentation 3.41.0-Master (af5edcb665c)
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#include "qgis_sip.h"
23
26
33class _3D_EXPORT Qgs3D
34{
35 public:
36 Qgs3D( const Qgs3D &other ) = delete;
37 Qgs3D &operator=( const Qgs3D &other ) = delete;
38
42 static Qgs3D *instance();
43
44 ~Qgs3D();
45
49 static void initialize();
50
54 static QgsMaterialRegistry *materialRegistry();
55
59 static Qgs3DTerrainRegistry *terrainRegistry();
60
61 private:
62 Qgs3D();
63
64#ifdef SIP_RUN
65 Qgs3D( const Qgs3D &other );
66#endif
67
68 bool mInitialized = false;
69
70 QgsMaterialRegistry *mMaterialRegistry = nullptr;
71 Qgs3DTerrainRegistry *mTerrainRegistry = nullptr;
72};
73
74#endif // QGS3D_H
Registry of available 3d terrain classes.
Qgs3D is a singleton class containing various registries and other global members related to 3D class...
Definition qgs3d.h:34
Qgs3D & operator=(const Qgs3D &other)=delete
Qgs3D(const Qgs3D &other)=delete
Registry of available 3d material settings classes.