QGIS API Documentation
2.6.0-Brighton
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
();
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
bool
mCacheFeatures
;
96
QgsGeometryCache
*
mCache
;
97
98
bool
mDrawVertexMarkers
;
99
bool
mVertexMarkerOnlyForSelection
;
100
int
mVertexMarkerStyle
,
mVertexMarkerSize
;
101
102
QGis::GeometryType
mGeometryType
;
103
104
QStringList
mAttrNames
;
105
106
bool
mLabeling
;
107
bool
mDiagrams
;
108
109
int
mLayerTransparency
;
110
QPainter::CompositionMode
mFeatureBlendMode
;
111
112
QgsVectorSimplifyMethod
mSimplifyMethod
;
113
bool
mSimplifyGeometry
;
114
};
115
116
117
#endif // QGSVECTORLAYERRENDERER_H
Generated on Fri Oct 31 2014 15:49:46 for QGIS API Documentation by
1.8.1.2