QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSSYMBOLLAYERREGISTRY_H
17 #define QGSSYMBOLLAYERREGISTRY_H
19 #include "qgis_core.h"
48 , mVisibleName( visibleName )
54 QString
name()
const {
return mName; }
75 Q_UNUSED( properties )
76 Q_UNUSED( pathResolver )
90 Q_UNUSED( properties )
122 , mCreateFunc( pfCreate )
123 , mWidgetFunc( pfWidget )
124 , mCreateFromSldFunc( pfCreateFromSld )
125 , mPathResolverFunc( pfPathResolver )
126 , mFontResolverFunc( pfFontResolver )
146 if ( mPathResolverFunc )
147 mPathResolverFunc( properties, pathResolver, saving );
152 if ( mFontResolverFunc )
153 mFontResolverFunc( properties, context );
208 QgsSymbolLayer *createSymbolLayer(
const QString &name,
const QVariantMap &properties = QVariantMap() )
const SIP_FACTORY;
219 void resolvePaths(
const QString &name, QVariantMap &properties,
const QgsPathResolver &pathResolver,
bool saving )
const;
229 void resolveFonts(
const QString &name, QVariantMap &properties,
const QgsReadWriteContext &context )
const;
242 QMap<QString, QgsSymbolLayerAbstractMetadata *> mMetadata;
void(* QgsSymbolLayerPathResolverFunc)(QVariantMap &, const QgsPathResolver &, bool)
The class is used as a container of context for various read/write operations on other objects.
Registry of available symbol layer classes.
QgsSymbolLayer *(* QgsSymbolLayerCreateFromSldFunc)(QDomElement &)
QgsSymbolLayerWidget *(* QgsSymbolLayerWidgetFunc)(QgsVectorLayer *)
Represents a vector layer which manages a vector based data sets.
QgsSymbolLayer *(* QgsSymbolLayerCreateFunc)(const QVariantMap &)
void(* QgsSymbolLayerFontResolverFunc)(const QVariantMap &, const QgsReadWriteContext &)
Resolves relative paths into absolute paths and vice versa. Used for writing.