QGIS API Documentation
3.14.0-Pi (9f7028fd23)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
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
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
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 Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
_
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
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
3d
qgs3drendererregistry.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgs3drendererregistry.cpp
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
#include "
qgs3drendererregistry.h
"
17
18
19
Qgs3DRendererAbstractMetadata::Qgs3DRendererAbstractMetadata
(
const
QString &type )
20
: mType( type )
21
{
22
}
23
24
QString
Qgs3DRendererAbstractMetadata::type
()
const
25
{
26
return
mType
;
27
}
28
29
30
// ----------
31
32
33
Qgs3DRendererRegistry::~Qgs3DRendererRegistry
()
34
{
35
qDeleteAll( mRenderers );
36
}
37
38
void
Qgs3DRendererRegistry::addRenderer
(
Qgs3DRendererAbstractMetadata
*metadata )
39
{
40
mRenderers.insert( metadata->
type
(), metadata );
41
}
42
43
void
Qgs3DRendererRegistry::removeRenderer
(
const
QString &type )
44
{
45
delete
mRenderers.take( type );
46
}
47
48
Qgs3DRendererAbstractMetadata
*
Qgs3DRendererRegistry::rendererMetadata
(
const
QString &type )
const
49
{
50
return
mRenderers.value( type );
51
}
52
53
QStringList
Qgs3DRendererRegistry::renderersList
()
const
54
{
55
return
mRenderers.keys();
56
}
Qgs3DRendererRegistry::renderersList
QStringList renderersList() const
Returns a list of all available 3D renderer types.
Definition:
qgs3drendererregistry.cpp:53
Qgs3DRendererAbstractMetadata::mType
QString mType
Type used within QGIS for identification (the same what renderer's type() returns)
Definition:
qgs3drendererregistry.h:60
Qgs3DRendererAbstractMetadata::type
QString type() const
Returns unique identifier of the 3D renderer class.
Definition:
qgs3drendererregistry.cpp:24
Qgs3DRendererAbstractMetadata
Base metadata class for 3D renderers.
Definition:
qgs3drendererregistry.h:34
Qgs3DRendererRegistry::addRenderer
void addRenderer(Qgs3DRendererAbstractMetadata *metadata)
Registers a new 3D renderer type.
Definition:
qgs3drendererregistry.cpp:38
Qgs3DRendererRegistry::removeRenderer
void removeRenderer(const QString &type)
Unregisters a 3D renderer type.
Definition:
qgs3drendererregistry.cpp:43
Qgs3DRendererRegistry::~Qgs3DRendererRegistry
~Qgs3DRendererRegistry()
Definition:
qgs3drendererregistry.cpp:33
Qgs3DRendererAbstractMetadata::Qgs3DRendererAbstractMetadata
Qgs3DRendererAbstractMetadata(const QString &type)
Constructor of the base class.
Definition:
qgs3drendererregistry.cpp:19
qgs3drendererregistry.h
Qgs3DRendererRegistry::rendererMetadata
Qgs3DRendererAbstractMetadata * rendererMetadata(const QString &type) const
Returns metadata for a 3D renderer type (may be used to create a new instance of the type)
Definition:
qgs3drendererregistry.cpp:48
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17