QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
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 "qgis_core.h"
21#include <QList>
22#include <QSet>
23
39class CORE_EXPORT QgsMaskIdProvider
40{
41 public:
42
50 int insertLabelLayer( const QString &layerId, const QString &ruleId, const QSet<QgsSymbolLayerReference> &maskedSymbolLayers );
51
56 int maskId( const QString &labelLayerId = QString(), const QString &labelRuleId = QString() ) const;
57
61 int size() const;
62
63 private:
64
68 QList<QSet<QgsSymbolLayerReference>> mLabelLayers;
69
73 QList<QSet<QString>> mMaskIds;
74};
75
76#endif
This class allows the creation of mask ids based on the different label layers and to give a mask id ...