QGIS API Documentation
3.2.0-Bonn (bc43194)
src
3d
symbols
qgsabstract3dsymbol.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsabstract3dsymbol.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 QGSABSTRACT3DSYMBOL_H
17
#define QGSABSTRACT3DSYMBOL_H
18
19
#include "qgis_3d.h"
20
#include "
qgis_sip.h
"
21
22
#include "
qgspropertycollection.h
"
23
24
class
QDomElement;
25
class
QString;
26
27
class
QgsReadWriteContext
;
28
29
38
class
_3D_EXPORT
QgsAbstract3DSymbol
39
{
40
public
:
41
virtual
~
QgsAbstract3DSymbol
() =
default
;
42
44
virtual
QString type()
const
= 0;
46
virtual
QgsAbstract3DSymbol
*clone()
const
= 0
SIP_FACTORY
;
47
49
virtual
void
writeXml( QDomElement &elem,
const
QgsReadWriteContext
&context )
const
= 0;
51
virtual
void
readXml(
const
QDomElement &elem,
const
QgsReadWriteContext
&context ) = 0;
52
54
enum
Property
55
{
56
PropertyHeight = 0,
57
PropertyExtrusionHeight
,
58
};
59
61
static
const
QgsPropertiesDefinition
&propertyDefinitions();
62
64
QgsPropertyCollection
&
dataDefinedProperties
() {
return
mDataDefinedProperties; }
65
67
const
QgsPropertyCollection
&
dataDefinedProperties
()
const
{
return
mDataDefinedProperties; }
SIP_SKIP
68
70
void
setDataDefinedProperties
(
const
QgsPropertyCollection
&collection ) { mDataDefinedProperties = collection; }
71
72
protected
:
73
QgsPropertyCollection
mDataDefinedProperties
;
74
75
private
:
76
static
void
initPropertyDefinitions();
77
79
static
QgsPropertiesDefinition
sPropertyDefinitions;
80
};
81
82
83
#endif // QGSABSTRACT3DSYMBOL_H
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects...
Definition:
qgsreadwritecontext.h:32
QgsAbstract3DSymbol::dataDefinedProperties
const QgsPropertyCollection & dataDefinedProperties() const
Returns a reference to the symbol layer's property collection, used for data defined overrides...
Definition:
qgsabstract3dsymbol.h:67
QgsAbstract3DSymbol::mDataDefinedProperties
QgsPropertyCollection mDataDefinedProperties
Definition:
qgsabstract3dsymbol.h:73
QgsAbstract3DSymbol::dataDefinedProperties
QgsPropertyCollection & dataDefinedProperties()
Returns a reference to the symbol layer's property collection, used for data defined overrides...
Definition:
qgsabstract3dsymbol.h:64
QgsAbstract3DSymbol::PropertyExtrusionHeight
Extrusion height (zero means no extrusion)
Definition:
qgsabstract3dsymbol.h:57
QgsAbstract3DSymbol
3 Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
Definition:
qgsabstract3dsymbol.h:38
SIP_SKIP
#define SIP_SKIP
Definition:
qgis_sip.h:119
qgis_sip.h
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:69
QgsPropertiesDefinition
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.
Definition:
qgspropertycollection.h:27
QgsAbstract3DSymbol::setDataDefinedProperties
void setDataDefinedProperties(const QgsPropertyCollection &collection)
Sets the symbol layer's property collection, used for data defined overrides.
Definition:
qgsabstract3dsymbol.h:70
QgsPropertyCollection
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
Definition:
qgspropertycollection.h:280
qgspropertycollection.h
QgsAbstract3DSymbol::Property
Property
Data definable properties.
Definition:
qgsabstract3dsymbol.h:54
Generated on Sat Jun 23 2018 20:58:15 for QGIS API Documentation by
1.8.13