QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
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#include <QString>
22
24
32{
33 public:
34
35 virtual ~QgsFeatureRendererGenerator() = default;
36
40 virtual QString id() const = 0;
41
62 virtual double level() const;
63
70};
71
72#endif // QGSFEATURERENDERERGENERATOR_H
An interface for objects which generate feature renderers for vector layers.
virtual QgsFeatureRenderer * createRenderer() const =0
Creates a new feature renderer to use when rendering a vector layer.
virtual QString id() const =0
Returns a unique ID string identifying the renderer generator.
virtual ~QgsFeatureRendererGenerator()=default
#define SIP_FACTORY
Definition: qgis_sip.h:76