QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
qgssldexportcontext.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgssldexportcontext.cpp - 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#include "qgssldexportcontext.h"
17
18QgsSldExportContext::QgsSldExportContext( const Qgis::SldExportOptions &options, const Qgis::SldExportVendorExtension &vendorExtension, const QString &filePath )
19 : mExportOptions( options )
20 , mVendorExtensions( vendorExtension )
21 , mExportFilePath( filePath )
22{
23
24}
25
27{
28 return mExportOptions;
29}
30
32{
33 mExportOptions = exportOptions;
34}
35
37{
38 return mVendorExtensions;
39}
40
42{
43 mVendorExtensions = vendorExtension;
44}
45
47{
48 return mExportFilePath;
49}
50
51void QgsSldExportContext::setExportFilePath( const QString &exportFilePath )
52{
53 mExportFilePath = exportFilePath;
54}
SldExportVendorExtension
SLD export vendor extensions, allow the use of vendor extensions when exporting to SLD.
Definition qgis.h:675
QFlags< SldExportOption > SldExportOptions
Definition qgis.h:666
Qgis::SldExportVendorExtension vendorExtensions() const
Returns the vendor extension enabled for the SLD export.
QString exportFilePath() const
Returns the export file path for the SLD.
void setExportFilePath(const QString &exportFilePath)
Sets the export file path for the SLD to exportFilePath.
void setExportOptions(const Qgis::SldExportOptions &exportOptions)
Set export options to exportOptions.
Qgis::SldExportOptions exportOptions() const
Returns the export options.
QgsSldExportContext()=default
Constructs a default SLD export context.
void setVendorExtension(const Qgis::SldExportVendorExtension &vendorExtension)
Sets the vendor extensions to vendorExtension.