QGIS API Documentation
3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
src
core
labeling
rules
qgslabelingengineruleregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslabelingengineruleregistry.h
3
---------------------
4
Date : August 2024
5
Copyright : (C) 2024 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
#ifndef QGSLABELINGENGINERULEREGISTRY_H
16
#define QGSLABELINGENGINERULEREGISTRY_H
17
18
#include "qgis_core.h"
19
#include "
qgis_sip.h
"
20
#include "
qgis.h
"
21
22
class
QgsAbstractLabelingEngineRule
;
23
38
class
CORE_EXPORT
QgsLabelingEngineRuleRegistry
39
{
40
public
:
41
46
QgsLabelingEngineRuleRegistry
();
47
~QgsLabelingEngineRuleRegistry
();
48
50
QgsLabelingEngineRuleRegistry
(
const
QgsLabelingEngineRuleRegistry
&other ) =
delete
;
52
QgsLabelingEngineRuleRegistry
&
operator=
(
const
QgsLabelingEngineRuleRegistry
&other ) =
delete
;
53
57
QStringList ruleIds()
const
;
58
62
QString displayType(
const
QString &
id
)
const
;
63
70
bool
isAvailable(
const
QString &
id
)
const
;
71
79
QgsAbstractLabelingEngineRule
*create(
const
QString &
id
)
const
SIP_TRANSFERBACK
;
80
90
bool
addRule(
QgsAbstractLabelingEngineRule
*rule
SIP_TRANSFER
);
91
97
void
removeRule(
const
QString &
id
);
98
99
private
:
100
101
#ifdef SIP_RUN
102
QgsLabelingEngineRuleRegistry
(
const
QgsLabelingEngineRuleRegistry
&other );
103
#endif
104
105
std::map< QString, std::unique_ptr< QgsAbstractLabelingEngineRule > > mRules;
106
107
};
108
109
#endif
// QGSLABELINGENGINERULEREGISTRY_H
QgsAbstractLabelingEngineRule
Abstract base class for labeling engine rules.
Definition
qgslabelingenginerule.h:133
QgsLabelingEngineRuleRegistry
A registry for labeling engine rules.
Definition
qgslabelingengineruleregistry.h:39
QgsLabelingEngineRuleRegistry::QgsLabelingEngineRuleRegistry
QgsLabelingEngineRuleRegistry(const QgsLabelingEngineRuleRegistry &other)=delete
QgsLabelingEngineRuleRegistry cannot be copied.
QgsLabelingEngineRuleRegistry::operator=
QgsLabelingEngineRuleRegistry & operator=(const QgsLabelingEngineRuleRegistry &other)=delete
QgsLabelingEngineRuleRegistry cannot be copied.
QgsLabelingEngineRuleRegistry::~QgsLabelingEngineRuleRegistry
~QgsLabelingEngineRuleRegistry()
qgis.h
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:36
SIP_TRANSFERBACK
#define SIP_TRANSFERBACK
Definition
qgis_sip.h:48
Generated on Sun Nov 10 2024 14:15:43 for QGIS API Documentation by
1.9.8