QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
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"
20
#include "
qgssymbollayerreference.h
"
21
22
#include <QList>
23
#include <QSet>
24
40
class
CORE_EXPORT
QgsMaskIdProvider
41
{
42
public
:
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
:
67
QList<QSet<QgsSymbolLayerReference>> mLabelLayers;
68
72
QList<QSet<QString>> mMaskIds;
73
};
74
75
#endif
QgsMaskIdProvider
Allows the creation of mask ids based on the different label layers and to give a mask id from a labe...
Definition
qgsmaskidprovider.h:41
QgsMaskIdProvider::size
int size() const
Returns the number of identifiers allocated.
Definition
qgsmaskidprovider.cpp:51
QgsMaskIdProvider::maskId
int maskId(const QString &labelLayerId=QString(), const QString &labelRuleId=QString()) const
Returns the mask id associated with a label layer and its optional label rule.
Definition
qgsmaskidprovider.cpp:37
QgsMaskIdProvider::insertLabelLayer
int insertLabelLayer(const QString &layerId, const QString &ruleId, const QSet< QgsSymbolLayerReference > &maskedSymbolLayers)
Inserts a label layer to the provider and returns its associated mask id.
Definition
qgsmaskidprovider.cpp:20
qgssymbollayerreference.h
Generated on
for QGIS API Documentation by
1.17.0