dmpsymbollayer.h
2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**************************************************************************
* file: dmpsymbollayer.h
* Author: qingxiongf
* Date: 2021-08-04 16:30:05
* Email: qingxiongf@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#ifndef __dmpsymbollayer_h__
#define __dmpsymbollayer_h__
#include "dmap_core.h"
class DmpSymbol;
class CORE_EXPORT DmpSymbolLayer
{
protected:
DmpSymbol::SymbolType mType;
bool mEnabled = true; //! 如果图层已启用且应绘制,则为True
bool mLocked = false;
QColor mColor;
int mRenderingPass = 0;
QgsPropertyCollection mDataDefinedProperties;
std::unique_ptr< QgsPaintEffect > mPaintEffect;
QgsFields mFields;
// Configuration of selected symbology implementation
//! Whether styles for selected features ignore symbol alpha
static const bool SELECTION_IS_OPAQUE = true;
//! Whether fill styles for selected features also highlight symbol stroke
static const bool SELECT_FILL_BORDER = false;
//! Whether fill styles for selected features uses symbol layer style
static const bool SELECT_FILL_STYLE = false;
/**
* Restores older data defined properties from string map.
* \since QGIS 3.0
*/
void restoreOldDataDefinedProperties( const QVariantMap &stringMap );
/**
* Copies all data defined properties of this layer to another symbol layer.
* \param destLayer destination layer
*/
void copyDataDefinedProperties( QgsSymbolLayer *destLayer ) const;
/**
* Copies paint effect of this layer to another symbol layer
* \param destLayer destination layer
* \since QGIS 2.9
*/
void copyPaintEffect( QgsSymbolLayer *destLayer ) const;
private:
static void initPropertyDefinitions();
//! Property definitions
static QgsPropertiesDefinition sPropertyDefinitions;
//QgsSymbolLayer( const QgsSymbolLayer &other );
};
#endif // __dmpsymbollayer_h__