QGIS API Documentation
3.43.0-Master (b60ef06885e)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Functions
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
e
f
g
h
i
l
n
o
p
q
r
s
t
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
core
3d
qgs3drendererregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgs3drendererregistry.h
3
--------------------------------------
4
Date : July 2017
5
Copyright : (C) 2017 by Martin Dobias
6
Email : wonder dot sk at gmail dot com
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 QGS3DRENDERERREGISTRY_H
17
#define QGS3DRENDERERREGISTRY_H
18
19
#include "qgis_core.h"
20
#include "
qgis_sip.h
"
21
22
#include <QMap>
23
24
class
QDomElement;
25
class
QgsAbstract3DRenderer
;
26
class
QgsReadWriteContext
;
27
28
35
class
CORE_EXPORT
Qgs3DRendererAbstractMetadata
36
{
37
public
:
38
39
virtual
~Qgs3DRendererAbstractMetadata
() =
default
;
40
44
QString type()
const
;
45
50
virtual
QgsAbstract3DRenderer
*
createRenderer
( QDomElement &elem,
const
QgsReadWriteContext
&context ) = 0
SIP_FACTORY
;
51
52
protected
:
53
57
explicit
Qgs3DRendererAbstractMetadata
(
const
QString &type );
58
59
protected
:
61
QString
mType
;
62
};
35
class
CORE_EXPORT
Qgs3DRendererAbstractMetadata
{
…
};
63
64
71
class
CORE_EXPORT
Qgs3DRendererRegistry
72
{
73
public
:
74
75
Qgs3DRendererRegistry
() =
default
;
76
77
~Qgs3DRendererRegistry
();
78
82
void
addRenderer(
Qgs3DRendererAbstractMetadata
*metadata
SIP_TRANSFER
);
83
87
void
removeRenderer(
const
QString &type );
88
92
Qgs3DRendererAbstractMetadata
*rendererMetadata(
const
QString &type )
const
;
93
97
QStringList renderersList()
const
;
98
99
private
:
100
QMap<QString, Qgs3DRendererAbstractMetadata *> mRenderers;
101
};
71
class
CORE_EXPORT
Qgs3DRendererRegistry
{
…
};
102
103
#endif
// QGS3DRENDERERREGISTRY_H
Qgs3DRendererAbstractMetadata
Base metadata class for 3D renderers.
Definition
qgs3drendererregistry.h:36
Qgs3DRendererAbstractMetadata::mType
QString mType
Type used within QGIS for identification (the same what renderer's type() returns)
Definition
qgs3drendererregistry.h:61
Qgs3DRendererAbstractMetadata::~Qgs3DRendererAbstractMetadata
virtual ~Qgs3DRendererAbstractMetadata()=default
Qgs3DRendererAbstractMetadata::createRenderer
virtual QgsAbstract3DRenderer * createRenderer(QDomElement &elem, const QgsReadWriteContext &context)=0
Returns new instance of the renderer given the DOM element.
Qgs3DRendererRegistry
A registry for available 3D renderers.
Definition
qgs3drendererregistry.h:72
Qgs3DRendererRegistry::Qgs3DRendererRegistry
Qgs3DRendererRegistry()=default
QgsAbstract3DRenderer
Base class for all renderers that participate in 3D views.
Definition
qgsabstract3drenderer.h:48
QgsReadWriteContext
A container for the context for various read/write operations on objects.
Definition
qgsreadwritecontext.h:34
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:36
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
Generated on Sun Apr 6 2025 18:57:15 for QGIS API Documentation by
1.9.8