QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
Public Member Functions | List of all members
QgsSldExportContext Class Reference

The QgsSldExportContext class holds SLD export options and other information related to SLD export of a QGIS layer style. More...

#include <qgssldexportcontext.h>

Public Member Functions

 QgsSldExportContext ()=default
 Constructs a default SLD export context. More...
 
 QgsSldExportContext (const Qgis::SldExportOptions &options, const Qgis::SldExportVendorExtension &vendorExtension, const QString &filePath)
 /brief Create a new QgsSldExportContext /param options SLD export options /param vendorExtension SLD export vendor extension /param filePath SLD export file path More...
 
 QgsSldExportContext (const QgsSldExportContext &other)=default
 Constructs a copy of SLD export context other. More...
 
 ~QgsSldExportContext ()=default
 
QString exportFilePath () const
 Returns the export file path for the SLD. More...
 
Qgis::SldExportOptions exportOptions () const
 Returns the export options. More...
 
QgsSldExportContextoperator= (const QgsSldExportContext &other)=default
 Copy the values of other into the SLD export context. More...
 
void setExportFilePath (const QString &exportFilePath)
 Sets the export file path for the SLD to exportFilePath. More...
 
void setExportOptions (const Qgis::SldExportOptions &exportOptions)
 Set export options to exportOptions. More...
 
void setVendorExtension (const Qgis::SldExportVendorExtension &vendorExtension)
 Sets the vendor extensions to vendorExtension. More...
 
Qgis::SldExportVendorExtension vendorExtensions () const
 Returns the vendor extension enabled for the SLD export. More...
 

Detailed Description

The QgsSldExportContext class holds SLD export options and other information related to SLD export of a QGIS layer style.

Since
QGIS 3.30

Definition at line 28 of file qgssldexportcontext.h.

Constructor & Destructor Documentation

◆ QgsSldExportContext() [1/3]

QgsSldExportContext::QgsSldExportContext ( )
default

Constructs a default SLD export context.

◆ ~QgsSldExportContext()

QgsSldExportContext::~QgsSldExportContext ( )
default

◆ QgsSldExportContext() [2/3]

QgsSldExportContext::QgsSldExportContext ( const QgsSldExportContext other)
default

Constructs a copy of SLD export context other.

◆ QgsSldExportContext() [3/3]

QgsSldExportContext::QgsSldExportContext ( const Qgis::SldExportOptions &  options,
const Qgis::SldExportVendorExtension vendorExtension,
const QString &  filePath 
)

/brief Create a new QgsSldExportContext /param options SLD export options /param vendorExtension SLD export vendor extension /param filePath SLD export file path

Definition at line 18 of file qgssldexportcontext.cpp.

Member Function Documentation

◆ exportFilePath()

QString QgsSldExportContext::exportFilePath ( ) const

Returns the export file path for the SLD.

Definition at line 46 of file qgssldexportcontext.cpp.

◆ exportOptions()

Qgis::SldExportOptions QgsSldExportContext::exportOptions ( ) const

Returns the export options.

Definition at line 26 of file qgssldexportcontext.cpp.

◆ operator=()

QgsSldExportContext & QgsSldExportContext::operator= ( const QgsSldExportContext other)
default

Copy the values of other into the SLD export context.

◆ setExportFilePath()

void QgsSldExportContext::setExportFilePath ( const QString &  exportFilePath)

Sets the export file path for the SLD to exportFilePath.

Definition at line 51 of file qgssldexportcontext.cpp.

◆ setExportOptions()

void QgsSldExportContext::setExportOptions ( const Qgis::SldExportOptions &  exportOptions)

Set export options to exportOptions.

Definition at line 31 of file qgssldexportcontext.cpp.

◆ setVendorExtension()

void QgsSldExportContext::setVendorExtension ( const Qgis::SldExportVendorExtension vendorExtension)

Sets the vendor extensions to vendorExtension.

Definition at line 41 of file qgssldexportcontext.cpp.

◆ vendorExtensions()

Qgis::SldExportVendorExtension QgsSldExportContext::vendorExtensions ( ) const

Returns the vendor extension enabled for the SLD export.

Definition at line 36 of file qgssldexportcontext.cpp.


The documentation for this class was generated from the following files: