Stores metadata about one symbol layer class.
More...
#include <qgssymbollayerregistry.h>
Stores metadata about one symbol layer class.
- Note
- It's necessary to implement createSymbolLayer() function. In C++ you can use QgsSymbolLayerMetadata convenience class.
Definition at line 36 of file qgssymbollayerregistry.h.
◆ QgsSymbolLayerAbstractMetadata()
QgsSymbolLayerAbstractMetadata::QgsSymbolLayerAbstractMetadata |
( |
const QString & |
name, |
|
|
const QString & |
visibleName, |
|
|
Qgis::SymbolType |
type |
|
) |
| |
|
inline |
◆ ~QgsSymbolLayerAbstractMetadata()
virtual QgsSymbolLayerAbstractMetadata::~QgsSymbolLayerAbstractMetadata |
( |
| ) |
|
|
virtualdefault |
◆ createSymbolLayer()
virtual QgsSymbolLayer * QgsSymbolLayerAbstractMetadata::createSymbolLayer |
( |
const QVariantMap & |
map | ) |
|
|
pure virtual |
◆ createSymbolLayerFromSld()
virtual QgsSymbolLayer * QgsSymbolLayerAbstractMetadata::createSymbolLayerFromSld |
( |
QDomElement & |
| ) |
|
|
inlinevirtual |
◆ createSymbolLayerWidget()
◆ name()
QString QgsSymbolLayerAbstractMetadata::name |
( |
| ) |
const |
|
inline |
◆ resolveFonts()
virtual void QgsSymbolLayerAbstractMetadata::resolveFonts |
( |
const QVariantMap & |
properties, |
|
|
const QgsReadWriteContext & |
context |
|
) |
| |
|
inlinevirtual |
Resolve fonts from the symbol layer's properties.
This tests whether the required fonts from the encoded properties are available on the system, and records warnings in the context if not.
- Since
- QGIS 3.20
Reimplemented in QgsSymbolLayerMetadata.
Definition at line 87 of file qgssymbollayerregistry.h.
◆ resolvePaths()
virtual void QgsSymbolLayerAbstractMetadata::resolvePaths |
( |
QVariantMap & |
properties, |
|
|
const QgsPathResolver & |
pathResolver, |
|
|
bool |
saving |
|
) |
| |
|
inlinevirtual |
Resolve paths in symbol layer's properties (if there are any paths).
When saving is true
, paths are converted from absolute to relative, when saving is false
, paths are converted from relative to absolute. This ensures that paths in project files can be relative, but in symbol layer instances the paths are always absolute
Reimplemented in QgsSymbolLayerMetadata.
Definition at line 72 of file qgssymbollayerregistry.h.
◆ type()
◆ visibleName()
QString QgsSymbolLayerAbstractMetadata::visibleName |
( |
| ) |
const |
|
inline |
◆ mName
QString QgsSymbolLayerAbstractMetadata::mName |
|
protected |
◆ mType
◆ mVisibleName
QString QgsSymbolLayerAbstractMetadata::mVisibleName |
|
protected |
The documentation for this class was generated from the following file: