QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
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
25
32class _3D_EXPORT Qgs3D
33{
34
35 public:
36
38 Qgs3D( const Qgs3D &other ) = delete;
39
41 Qgs3D &operator=( const Qgs3D &other ) = delete;
42
46 static Qgs3D *instance();
47
48 ~Qgs3D();
49
53 static void initialize();
54
58 static QgsMaterialRegistry *materialRegistry();
59
60 private:
61
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
72};
73
74#endif // QGS3D_H
Qgs3D is a singleton class containing various registries and other global members related to 3D class...
Definition: qgs3d.h:33
Qgs3D & operator=(const Qgs3D &other)=delete
Qgs3D cannot be copied.
Qgs3D(const Qgs3D &other)=delete
Qgs3D cannot be copied.
Registry of available 3d material settings classes.