Quantum GIS API Documentation
1.7.5-Wroclaw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
core
symbology-ng
qgssinglesymbolrendererv2.h
Go to the documentation of this file.
1
#ifndef QGSSINGLESYMBOLRENDERERV2_H
2
#define QGSSINGLESYMBOLRENDERERV2_H
3
4
#include "
qgsrendererv2.h
"
5
6
class
CORE_EXPORT
QgsSingleSymbolRendererV2
:
public
QgsFeatureRendererV2
7
{
8
public
:
9
10
QgsSingleSymbolRendererV2
(
QgsSymbolV2
* symbol );
11
12
virtual
~
QgsSingleSymbolRendererV2
();
13
14
virtual
QgsSymbolV2
*
symbolForFeature
(
QgsFeature
& feature );
15
16
virtual
void
startRender
(
QgsRenderContext
& context,
const
QgsVectorLayer
*vlayer );
17
18
virtual
void
stopRender
(
QgsRenderContext
& context );
19
20
virtual
QList<QString>
usedAttributes
();
21
22
QgsSymbolV2
* symbol()
const
;
23
void
setSymbol(
QgsSymbolV2
* s );
24
26
void
setRotationField
( QString fieldName ) { mRotationField = fieldName; }
28
QString
rotationField
()
const
{
return
mRotationField; }
29
31
void
setSizeScaleField
( QString fieldName ) { mSizeScaleField = fieldName; }
33
QString
sizeScaleField
()
const
{
return
mSizeScaleField; }
34
35
virtual
QString
dump
();
36
37
virtual
QgsFeatureRendererV2
*
clone
();
38
39
virtual
QgsSymbolV2List
symbols
();
40
42
static
QgsFeatureRendererV2
* create( QDomElement& element );
43
45
virtual
QDomElement
save
( QDomDocument& doc );
46
48
virtual
QgsLegendSymbologyList
legendSymbologyItems
( QSize iconSize );
49
52
virtual
QgsLegendSymbolList
legendSymbolItems
();
53
54
protected
:
55
QgsSymbolV2
*
mSymbol
;
56
QString
mRotationField
;
57
QString
mSizeScaleField
;
58
59
// temporary stuff for rendering
60
int
mRotationFieldIdx,
mSizeScaleFieldIdx
;
61
QgsSymbolV2
*
mTempSymbol
;
62
double
mOrigSize
;
63
};
64
65
66
#endif // QGSSINGLESYMBOLRENDERERV2_H
Generated on Wed Jun 13 2012 13:54:11 for Quantum GIS API Documentation by
1.8.1