QGIS API Documentation
3.0.2-Girona (307d082)
|
Registry of available symbol layer classes. More...
#include <qgssymbollayerregistry.h>
Public Member Functions | |
QgsSymbolLayerRegistry () | |
QgsSymbolLayerRegistry (const QgsSymbolLayerRegistry &rh)=delete | |
QgsSymbolLayerRegistry cannot be copied. More... | |
~QgsSymbolLayerRegistry () | |
bool | addSymbolLayerType (QgsSymbolLayerAbstractMetadata *metadata) |
register a new symbol layer type. Takes ownership of the metadata instance. More... | |
QgsSymbolLayer * | createSymbolLayer (const QString &name, const QgsStringMap &properties=QgsStringMap()) const |
create a new instance of symbol layer given symbol layer name and properties More... | |
QgsSymbolLayer * | createSymbolLayerFromSld (const QString &name, QDomElement &element) const |
create a new instance of symbol layer given symbol layer name and SLD More... | |
QgsSymbolLayerRegistry & | operator= (const QgsSymbolLayerRegistry &rh)=delete |
QgsSymbolLayerRegistry cannot be copied. More... | |
void | resolvePaths (const QString &name, QgsStringMap &properties, const QgsPathResolver &pathResolver, bool saving) const |
Resolve paths in properties of a particular symbol layer. More... | |
QgsSymbolLayerAbstractMetadata * | symbolLayerMetadata (const QString &name) const |
return metadata for specified symbol layer. Returns NULL if not found More... | |
QStringList | symbolLayersForType (QgsSymbol::SymbolType type) |
return a list of available symbol layers for a specified symbol type More... | |
Static Public Member Functions | |
static QgsSymbolLayer * | defaultSymbolLayer (QgsSymbol::SymbolType type) |
create a new instance of symbol layer for specified symbol type with default settings More... | |
Registry of available symbol layer classes.
QgsSymbolLayerRegistry is not usually directly created, but rather accessed through QgsApplication::symbolLayerRegistry().
Definition at line 144 of file qgssymbollayerregistry.h.
QgsSymbolLayerRegistry::QgsSymbolLayerRegistry | ( | ) |
Definition at line 26 of file qgssymbollayerregistry.cpp.
QgsSymbolLayerRegistry::~QgsSymbolLayerRegistry | ( | ) |
Definition at line 69 of file qgssymbollayerregistry.cpp.
|
delete |
QgsSymbolLayerRegistry cannot be copied.
bool QgsSymbolLayerRegistry::addSymbolLayerType | ( | QgsSymbolLayerAbstractMetadata * | metadata | ) |
register a new symbol layer type. Takes ownership of the metadata instance.
Definition at line 74 of file qgssymbollayerregistry.cpp.
QgsSymbolLayer * QgsSymbolLayerRegistry::createSymbolLayer | ( | const QString & | name, |
const QgsStringMap & | properties = QgsStringMap() |
||
) | const |
create a new instance of symbol layer given symbol layer name and properties
Definition at line 110 of file qgssymbollayerregistry.cpp.
QgsSymbolLayer * QgsSymbolLayerRegistry::createSymbolLayerFromSld | ( | const QString & | name, |
QDomElement & | element | ||
) | const |
create a new instance of symbol layer given symbol layer name and SLD
Definition at line 118 of file qgssymbollayerregistry.cpp.
|
static |
create a new instance of symbol layer for specified symbol type with default settings
Definition at line 89 of file qgssymbollayerregistry.cpp.
|
delete |
QgsSymbolLayerRegistry cannot be copied.
void QgsSymbolLayerRegistry::resolvePaths | ( | const QString & | name, |
QgsStringMap & | properties, | ||
const QgsPathResolver & | pathResolver, | ||
bool | saving | ||
) | const |
Resolve paths in properties of a particular symbol layer.
This normally means converting relative paths to absolute paths when loading and converting absolute paths to relative paths when saving.
Definition at line 126 of file qgssymbollayerregistry.cpp.
QgsSymbolLayerAbstractMetadata * QgsSymbolLayerRegistry::symbolLayerMetadata | ( | const QString & | name | ) | const |
return metadata for specified symbol layer. Returns NULL if not found
Definition at line 84 of file qgssymbollayerregistry.cpp.
QStringList QgsSymbolLayerRegistry::symbolLayersForType | ( | QgsSymbol::SymbolType | type | ) |
return a list of available symbol layers for a specified symbol type
Definition at line 134 of file qgssymbollayerregistry.cpp.