QGIS API Documentation  3.18.1-Zürich (202f1bf7e5)
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 
38 class CORE_EXPORT QgsMaskIdProvider
39 {
40  public:
41 
49  int insertLabelLayer( const QString &layerId, const QString &ruleId, const QSet<QgsSymbolLayerReference> &maskedSymbolLayers );
50 
55  int maskId( const QString &labelLayerId = QString(), const QString &labelRuleId = QString() ) const;
56 
60  int size() const;
61 
62  private:
63 
67  QList<QSet<QgsSymbolLayerReference>> mLabelLayers;
68 
72  QList<QSet<QString>> mMaskIds;
73 };
74 
75 #endif
This class allows the creation of mask ids based on the different label layers and to give a mask id ...