QGIS API Documentation
3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
src
server
services
wms
qgswmsrestorer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgswmsrestorer.h
3
----------------
4
begin : April 24, 2017
5
copyright : (C) 2017 by Paul Blottiere
6
email :
[email protected]
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSWMSRESTORER_H
19
#define QGSWMSRESTORER_H
20
21
#include <QList>
22
#include <QDomDocument>
23
#include <QMap>
24
25
#include "
qgsfeatureid.h
"
26
#include "
qgswmsrendercontext.h
"
27
28
class
QgsMapLayer
;
29
class
QgsAbstractVectorLayerLabeling
;
30
37
class
QgsLayerRestorer
38
{
39
public
:
40
45
QgsLayerRestorer
(
const
QList<QgsMapLayer *> &layers );
46
52
~QgsLayerRestorer
();
53
54
private
:
55
56
struct
QgsLayerSettings
57
{
58
QString name;
59
double
mOpacity;
60
std::unique_ptr<QgsAbstractVectorLayerLabeling> mLabeling;
61
QString mNamedStyle;
62
QString mFilter;
63
QgsFeatureIds
mSelectedFeatureIds;
64
};
65
66
std::map<QgsMapLayer *, QgsLayerSettings> mLayerSettings;
67
};
68
69
namespace
QgsWms
70
{
71
77
class
QgsWmsRestorer
78
{
79
public
:
80
85
QgsWmsRestorer
(
const
QgsWmsRenderContext
&context );
86
90
~QgsWmsRestorer
() =
default
;
91
92
private
:
93
94
QgsLayerRestorer
mLayerRestorer;
95
};
96
};
97
98
#endif
QgsAbstractVectorLayerLabeling
Abstract base class - its implementations define different approaches to the labeling of a vector lay...
Definition
qgsvectorlayerlabeling.h:42
QgsLayerRestorer
RAII class to restore layer configuration on destruction (opacity, filters, ...)
Definition
qgswmsrestorer.h:38
QgsLayerRestorer::~QgsLayerRestorer
~QgsLayerRestorer()
Destructor.
Definition
qgswmsrestorer.cpp:81
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:74
QgsWms::QgsWmsRenderContext
Rendering context for the WMS renderer.
Definition
qgswmsrendercontext.h:35
QgsWms::QgsWmsRestorer
RAII class to restore the rendering context configuration on destruction.
Definition
qgswmsrestorer.h:78
QgsWms::QgsWmsRestorer::~QgsWmsRestorer
~QgsWmsRestorer()=default
Default destructor.
QgsWms
Median cut implementation.
Definition
qgsdxfwriter.cpp:24
qgsfeatureid.h
QgsFeatureIds
QSet< QgsFeatureId > QgsFeatureIds
Definition
qgsfeatureid.h:37
qgswmsrendercontext.h
Generated on Mon Oct 30 2023 18:42:25 for QGIS API Documentation by
1.9.8