QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
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
25
33{
34 public:
35
36 virtual ~QgsFeatureRendererGenerator() = default;
37
41 virtual QString id() const = 0;
42
63 virtual double level() const;
64
71};
72
73#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 double level() const
Returns a double value which dictates the stacking or z order level associated with the returned rend...
virtual QString id() const =0
Returns a unique ID string identifying the renderer generator.
virtual ~QgsFeatureRendererGenerator()=default
Abstract base class for all 2D vector feature renderers.
#define SIP_FACTORY
Definition qgis_sip.h:84