|
QGIS API Documentation 4.3.0-Master (52aa6503bed)
|
Stores metadata about one symbol layer class. More...
#include <qgssymbollayerregistry.h>

Public Member Functions | |
| QgsSymbolLayerAbstractMetadata (const QString &name, const QString &visibleName, Qgis::SymbolType type) | |
| Constructor for QgsSymbolLayerAbstractMetadata. | |
| virtual | ~QgsSymbolLayerAbstractMetadata ()=default |
| virtual QgsSymbolLayer * | createSymbolLayer (const QVariantMap &map)=0 |
| Create a symbol layer of this type given the map of properties. | |
| virtual QgsSymbolLayer * | createSymbolLayerFromSld (QDomElement &) |
| Create a symbol layer of this type given the map of properties. | |
| virtual QgsSymbolLayerWidget * | createSymbolLayerWidget (QgsVectorLayer *) |
Create widget for symbol layer of this type. Can return nullptr if there's no GUI. | |
| QString | name () const |
| virtual void | resolveFonts (const QVariantMap &properties, const QgsReadWriteContext &context) |
| Resolve fonts from the symbol layer's properties. | |
| virtual void | resolvePaths (QVariantMap &properties, const QgsPathResolver &pathResolver, bool saving) |
| Resolve paths in symbol layer's properties (if there are any paths). | |
| Qgis::SymbolType | type () const |
| QString | visibleName () const |
Protected Attributes | |
| QString | mName |
| Qgis::SymbolType | mType |
| QString | mVisibleName |
Stores metadata about one symbol layer class.
Definition at line 36 of file qgssymbollayerregistry.h.
|
inline |
Constructor for QgsSymbolLayerAbstractMetadata.
| name | internal symbol layer name (unique identifier) |
| visibleName | user visible, translated name for symbol layer |
| type | associated symbol type |
Definition at line 45 of file qgssymbollayerregistry.h.
|
virtualdefault |
|
pure virtual |
Create a symbol layer of this type given the map of properties.
Implemented in QgsSymbolLayerMetadata.
|
inlinevirtual |
Create a symbol layer of this type given the map of properties.
Reimplemented in QgsSymbolLayerMetadata.
Definition at line 62 of file qgssymbollayerregistry.h.
|
inlinevirtual |
Create widget for symbol layer of this type. Can return nullptr if there's no GUI.
Reimplemented in QgsSymbolLayerMetadata.
Definition at line 60 of file qgssymbollayerregistry.h.
|
inline |
Definition at line 53 of file qgssymbollayerregistry.h.
|
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.
Reimplemented in QgsSymbolLayerMetadata.
Definition at line 86 of file qgssymbollayerregistry.h.
|
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 71 of file qgssymbollayerregistry.h.
|
inline |
Definition at line 55 of file qgssymbollayerregistry.h.
|
inline |
Definition at line 54 of file qgssymbollayerregistry.h.
|
protected |
Definition at line 93 of file qgssymbollayerregistry.h.
|
protected |
Definition at line 95 of file qgssymbollayerregistry.h.
|
protected |
Definition at line 94 of file qgssymbollayerregistry.h.