QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Manages QGIS Server properties for a map layer. More...
#include <qgsmaplayerserverproperties.h>
Public Member Functions | |
QgsMapLayerServerProperties (QgsMapLayer *layer=nullptr) | |
Constructor - Creates a Map Layer QGIS Server Properties. More... | |
void | copyTo (QgsMapLayerServerProperties *properties) const |
Copy properties to another instance. More... | |
const QgsMapLayer * | layer () const override |
Gets the parent layer. More... | |
void | readXml (const QDomNode &layer_node) |
Reads server properties from project file. More... | |
void | reset () |
Reset properties to default. More... | |
void | writeXml (QDomNode &layer_node, QDomDocument &document) const |
Saves server properties to xml under the layer node. More... | |
Public Member Functions inherited from QgsServerMetadataUrlProperties | |
virtual | ~QgsServerMetadataUrlProperties ()=default |
void | addMetadataUrl (const QgsServerMetadataUrlProperties::MetadataUrl &metaUrl) |
Add a metadataUrl for the layer. More... | |
virtual const QgsMapLayer * | layer () const =0 |
Gets the parent layer. More... | |
QList< QgsServerMetadataUrlProperties::MetadataUrl > | metadataUrls () const |
Returns a list of metadataUrl resources associated for the layer. More... | |
void | setMetadataUrls (const QList< QgsServerMetadataUrlProperties::MetadataUrl > &metaUrls) |
Sets a the list of metadata URL for the layer. More... | |
Public Member Functions inherited from QgsServerWmsDimensionProperties | |
virtual | ~QgsServerWmsDimensionProperties ()=default |
bool | addWmsDimension (const QgsServerWmsDimensionProperties::WmsDimensionInfo &wmsDimInfo) |
Adds a QGIS Server WMS Dimension. More... | |
virtual const QgsMapLayer * | layer () const =0 |
Gets the parent layer. More... | |
bool | removeWmsDimension (const QString &wmsDimName) |
Removes a QGIS Server WMS Dimension. More... | |
void | setWmsDimensions (const QList< QgsServerWmsDimensionProperties::WmsDimensionInfo > &dimensions) |
Set WMS Dimensions. More... | |
const QList< QgsServerWmsDimensionProperties::WmsDimensionInfo > | wmsDimensions () const |
Returns the QGIS Server WMS Dimension list. More... | |
Additional Inherited Members | |
Public Types inherited from QgsServerWmsDimensionProperties | |
enum | PredefinedWmsDimensionName { TIME , DATE , ELEVATION } |
Predefined/Restricted WMS Dimension name. More... | |
Static Public Member Functions inherited from QgsServerWmsDimensionProperties | |
static QMap< int, QString > | wmsDimensionDefaultDisplayLabels () |
Returns WMS Dimension default display labels. More... | |
Protected Member Functions inherited from QgsServerMetadataUrlProperties | |
void | copyTo (QgsServerMetadataUrlProperties *properties) const |
Copy properties to another instance. More... | |
void | readXml (const QDomNode &layer_node) |
Reads server properties from project file. More... | |
void | reset () |
Reset properties to default. More... | |
void | writeXml (QDomNode &layer_node, QDomDocument &document) const |
Saves server properties to xml under the layer node. More... | |
Protected Member Functions inherited from QgsServerWmsDimensionProperties | |
void | copyTo (QgsServerWmsDimensionProperties *properties) const |
Copy properties to another instance. More... | |
void | readXml (const QDomNode &layer_node) |
Reads server properties from project file. More... | |
void | reset () |
Reset properties to default. More... | |
void | writeXml (QDomNode &layer_node, QDomDocument &document) const |
Saves server properties to xml under the layer node. More... | |
Manages QGIS Server properties for a map layer.
Definition at line 272 of file qgsmaplayerserverproperties.h.
QgsMapLayerServerProperties::QgsMapLayerServerProperties | ( | QgsMapLayer * | layer = nullptr | ) |
Constructor - Creates a Map Layer QGIS Server Properties.
layer | The map layer |
Definition at line 211 of file qgsmaplayerserverproperties.cpp.
void QgsMapLayerServerProperties::copyTo | ( | QgsMapLayerServerProperties * | properties | ) | const |
Copy properties to another instance.
properties | The properties to copy to |
Definition at line 216 of file qgsmaplayerserverproperties.cpp.
|
inlineoverridevirtual |
Gets the parent layer.
Implements QgsServerMetadataUrlProperties.
Definition at line 311 of file qgsmaplayerserverproperties.h.
void QgsMapLayerServerProperties::readXml | ( | const QDomNode & | layer_node | ) |
Reads server properties from project file.
Definition at line 228 of file qgsmaplayerserverproperties.cpp.
void QgsMapLayerServerProperties::reset | ( | ) |
Reset properties to default.
Definition at line 222 of file qgsmaplayerserverproperties.cpp.
void QgsMapLayerServerProperties::writeXml | ( | QDomNode & | layer_node, |
QDomDocument & | document | ||
) | const |
Saves server properties to xml under the layer node.
Definition at line 234 of file qgsmaplayerserverproperties.cpp.