QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
symbology
qgsfeaturerenderergenerator.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsfeaturerenderergenerator.h
3
-----------------------
4
Date : December 2020
5
Copyright : (C) 2020 by Nyall Dawson
6
Email : nyall dot dawson 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 QGSFEATURERENDERERGENERATOR_H
17
#define QGSFEATURERENDERERGENERATOR_H
18
19
#include "qgis_core.h"
20
#include "
qgis_sip.h
"
21
22
#include <QString>
23
24
class
QgsFeatureRenderer
;
25
32
class
CORE_EXPORT
QgsFeatureRendererGenerator
33
{
34
public
:
35
virtual
~QgsFeatureRendererGenerator
() =
default
;
36
40
virtual
QString
id
()
const
= 0;
41
62
virtual
double
level
()
const
;
63
69
virtual
QgsFeatureRenderer
*
createRenderer
()
const
= 0
SIP_FACTORY
;
70
};
71
72
#endif
// QGSFEATURERENDERERGENERATOR_H
QgsFeatureRendererGenerator
An interface for objects which generate feature renderers for vector layers.
Definition
qgsfeaturerenderergenerator.h:33
QgsFeatureRendererGenerator::createRenderer
virtual QgsFeatureRenderer * createRenderer() const =0
Creates a new feature renderer to use when rendering a vector layer.
QgsFeatureRendererGenerator::level
virtual double level() const
Returns a double value which dictates the stacking or z order level associated with the returned rend...
Definition
qgsfeaturerenderergenerator.cpp:18
QgsFeatureRendererGenerator::id
virtual QString id() const =0
Returns a unique ID string identifying the renderer generator.
QgsFeatureRendererGenerator::~QgsFeatureRendererGenerator
virtual ~QgsFeatureRendererGenerator()=default
QgsFeatureRenderer
Abstract base class for all 2D vector feature renderers.
Definition
qgsrenderer.h:111
qgis_sip.h
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
Generated on
for QGIS API Documentation by
1.17.0