QGIS API Documentation
2.8.2-Wien
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
qgsvectorlayerrenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvectorlayerrenderer.h
3
--------------------------------------
4
Date : December 2013
5
Copyright : (C) 2013 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 QGSVECTORLAYERRENDERER_H
17
#define QGSVECTORLAYERRENDERER_H
18
19
class
QgsFeatureRendererV2
;
20
class
QgsRenderContext
;
21
class
QgsVectorLayer
;
22
class
QgsVectorLayerFeatureSource
;
23
24
class
QgsDiagramRendererV2
;
25
class
QgsDiagramLayerSettings
;
26
27
class
QgsGeometryCache
;
28
class
QgsFeatureIterator
;
29
class
QgsSingleSymbolRendererV2
;
30
31
#include <QList>
32
#include <QPainter>
33
34
typedef
QList<int>
QgsAttributeList
;
35
36
#include "
qgis.h
"
37
#include "
qgsfield.h
"
// QgsFields
38
#include "
qgsfeature.h
"
// QgsFeatureIds
39
#include "
qgsfeatureiterator.h
"
40
#include "
qgsvectorsimplifymethod.h
"
41
42
#include "
qgsmaplayerrenderer.h
"
43
44
50
class
QgsVectorLayerRenderer
:
public
QgsMapLayerRenderer
51
{
52
public
:
53
QgsVectorLayerRenderer
(
QgsVectorLayer
* layer,
QgsRenderContext
& context );
54
~QgsVectorLayerRenderer
();
55
56
virtual
bool
render
()
override
;
57
60
void
setGeometryCachePointer
(
QgsGeometryCache
* cache );
61
62
private
:
63
68
void
prepareLabeling(
QgsVectorLayer
* layer, QStringList& attributeNames );
69
void
prepareDiagrams(
QgsVectorLayer
* layer, QStringList& attributeNames );
70
73
void
drawRendererV2(
QgsFeatureIterator
& fit );
74
77
void
drawRendererV2Levels(
QgsFeatureIterator
& fit );
78
80
void
stopRendererV2(
QgsSingleSymbolRendererV2
* selRenderer );
81
82
83
protected
:
84
85
QgsRenderContext
&
mContext
;
86
87
QgsFields
mFields
;
// TODO: use fields from mSource
88
89
QgsFeatureIds
mSelectedFeatureIds
;
90
91
QgsVectorLayerFeatureSource
*
mSource
;
92
93
QgsFeatureRendererV2
*
mRendererV2
;
94
95
QgsGeometryCache
*
mCache
;
96
97
bool
mDrawVertexMarkers
;
98
bool
mVertexMarkerOnlyForSelection
;
99
int
mVertexMarkerStyle
,
mVertexMarkerSize
;
100
101
QGis::GeometryType
mGeometryType
;
102
103
QStringList
mAttrNames
;
104
105
bool
mLabeling
;
106
bool
mDiagrams
;
107
108
int
mLayerTransparency
;
109
QPainter::CompositionMode
mFeatureBlendMode
;
110
111
QgsVectorSimplifyMethod
mSimplifyMethod
;
112
bool
mSimplifyGeometry
;
113
};
114
115
116
#endif // QGSVECTORLAYERRENDERER_H
Generated on Sun May 10 2015 16:33:25 for QGIS API Documentation by
1.8.1.2