QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgsmaskidprovider.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsmaskidprovider.h
3  ---------------------
4  begin : August 2019
5  copyright : (C) 2019 by Hugo Mercier / Oslandia
6  email : infos at oslandia 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 QGSMASKIDPROVIDER_H
17 #define QGSMASKIDPROVIDER_H
18 
19 #include <QList>
20 #include <QSet>
22 
37 class CORE_EXPORT QgsMaskIdProvider
38 {
39  public:
40 
48  int insertLabelLayer( const QString &layerId, const QString &ruleId, const QSet<QgsSymbolLayerReference> &maskedSymbolLayers );
49 
54  int maskId( const QString &labelLayerId = QString(), const QString &labelRuleId = QString() ) const;
55 
59  int size() const;
60 
61  private:
62 
66  QList<QSet<QgsSymbolLayerReference>> mLabelLayers;
67 
71  QList<QSet<QString>> mMaskIds;
72 };
73 
74 #endif
qgssymbollayerreference.h
QgsMaskIdProvider
Some rendering operations may need multiple mask images.
Definition: qgsmaskidprovider.h:38