QGIS API Documentation 3.41.0-Master (3440c17df1d)
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
25
32class _3D_EXPORT Qgs3D
33{
34
35 public:
36
37 Qgs3D( const Qgs3D &other ) = delete;
38 Qgs3D &operator=( const Qgs3D &other ) = delete;
39
43 static Qgs3D *instance();
44
45 ~Qgs3D();
46
50 static void initialize();
51
55 static QgsMaterialRegistry *materialRegistry();
56
57 private:
58
59 Qgs3D();
60
61#ifdef SIP_RUN
62 Qgs3D( const Qgs3D &other );
63#endif
64
65 bool mInitialized = false;
66
67 QgsMaterialRegistry *mMaterialRegistry = nullptr;
68
69};
70
71#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(const Qgs3D &other)=delete
Registry of available 3d material settings classes.