QGIS API Documentation
2.6.0-Brighton
|
Registry of available symbol layer classes. More...
#include <qgssymbollayerv2registry.h>
Public Member Functions | |
QgsSymbolLayerV2AbstractMetadata * | symbolLayerMetadata (QString name) const |
return metadata for specified symbol layer. Returns NULL if not found | |
bool | addSymbolLayerType (QgsSymbolLayerV2AbstractMetadata *metadata) |
register a new symbol layer type. Takes ownership of the metadata instance. | |
QgsSymbolLayerV2 * | createSymbolLayer (QString name, const QgsStringMap &properties=QgsStringMap()) const |
create a new instance of symbol layer given symbol layer name and properties | |
QgsSymbolLayerV2 * | createSymbolLayerFromSld (QString name, QDomElement &element) const |
create a new instance of symbol layer given symbol layer name and SLD | |
QStringList | symbolLayersForType (QgsSymbolV2::SymbolType type) |
return a list of available symbol layers for a specified symbol type |
Static Public Member Functions | |
static QgsSymbolLayerV2Registry * | instance () |
return the single instance of this class (instantiate it if not exists) | |
static QgsSymbolLayerV2 * | defaultSymbolLayer (QgsSymbolV2::SymbolType type) |
create a new instance of symbol layer for specified symbol type with default settings |
Protected Member Functions | |
QgsSymbolLayerV2Registry () | |
~QgsSymbolLayerV2Registry () |
Protected Attributes | |
QMap< QString, QgsSymbolLayerV2AbstractMetadata * > | mMetadata |
Registry of available symbol layer classes.
Implemented as a singleton.
|
protected |
|
protected |
bool QgsSymbolLayerV2Registry::addSymbolLayerType | ( | QgsSymbolLayerV2AbstractMetadata * | metadata | ) |
register a new symbol layer type. Takes ownership of the metadata instance.
QgsSymbolLayerV2 * QgsSymbolLayerV2Registry::createSymbolLayer | ( | QString | name, |
const QgsStringMap & | properties = QgsStringMap() |
||
) | const |
create a new instance of symbol layer given symbol layer name and properties
QgsSymbolLayerV2 * QgsSymbolLayerV2Registry::createSymbolLayerFromSld | ( | QString | name, |
QDomElement & | element | ||
) | const |
create a new instance of symbol layer given symbol layer name and SLD
|
static |
create a new instance of symbol layer for specified symbol type with default settings
|
static |
return the single instance of this class (instantiate it if not exists)
QgsSymbolLayerV2AbstractMetadata * QgsSymbolLayerV2Registry::symbolLayerMetadata | ( | QString | name | ) | const |
return metadata for specified symbol layer. Returns NULL if not found
QStringList QgsSymbolLayerV2Registry::symbolLayersForType | ( | QgsSymbolV2::SymbolType | type | ) |
return a list of available symbol layers for a specified symbol type
|
protected |