QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
qgssldexportcontext.h
Go to the documentation of this file.
1/***************************************************************************
2 qgssldexportcontext.h - QgsSldExportContext
3
4 ---------------------
5 begin : 21.12.2022
6 copyright : (C) 2022 by Alessandro Pasotti
7 email : elpaso at itopen dot it
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef QGSSLDEXPORTCONTEXT_H
17#define QGSSLDEXPORTCONTEXT_H
18
19#include "qgis.h"
20#include "qgis_core.h"
21
28class CORE_EXPORT QgsSldExportContext
29{
30 public:
31
36
38
39 QgsSldExportContext( const QgsSldExportContext &other ) = default;
41
48 QgsSldExportContext( const Qgis::SldExportOptions &options, const Qgis::SldExportVendorExtension &vendorExtension, const QString &filePath );
49
53 Qgis::SldExportOptions exportOptions() const;
54
58 void setExportOptions( const Qgis::SldExportOptions &exportOptions );
59
63 Qgis::SldExportVendorExtension vendorExtensions() const;
64
68 void setVendorExtension( const Qgis::SldExportVendorExtension &vendorExtension );
69
73 QString exportFilePath() const;
74
78 void setExportFilePath( const QString &exportFilePath );
79
80 private:
81
84 QString mExportFilePath;
85
86};
87
89
90#endif // QGSSLDEXPORTCONTEXT_H
@ NoOptions
Default SLD export.
SldExportVendorExtension
SLD export vendor extensions, allow the use of vendor extensions when exporting to SLD.
Definition qgis.h:675
@ NoVendorExtension
No vendor extensions.
QFlags< SldExportOption > SldExportOptions
Definition qgis.h:666
The QgsSldExportContext class holds SLD export options and other information related to SLD export of...
QgsSldExportContext & operator=(const QgsSldExportContext &other)=default
QgsSldExportContext()=default
Constructs a default SLD export context.
~QgsSldExportContext()=default
QgsSldExportContext(const QgsSldExportContext &other)=default
Q_DECLARE_METATYPE(QgsSldExportContext)