QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Protected Attributes | List of all members
QgsSymbolLayerV2Metadata Class Reference

Convenience metadata class that uses static functions to create symbol layer and its widget. More...

#include <qgssymbollayerv2registry.h>

Inheritance diagram for QgsSymbolLayerV2Metadata:
Inheritance graph
[legend]

Public Member Functions

 QgsSymbolLayerV2Metadata (const QString &name, const QString &visibleName, QgsSymbolV2::SymbolType type, QgsSymbolLayerV2CreateFunc pfCreate, QgsSymbolLayerV2WidgetFunc pfWidget=nullptr)
 
 QgsSymbolLayerV2Metadata (const QString &name, const QString &visibleName, QgsSymbolV2::SymbolType type, QgsSymbolLayerV2CreateFunc pfCreate, QgsSymbolLayerV2CreateFromSldFunc pfCreateFromSld, QgsSymbolLayerV2WidgetFunc pfWidget=nullptr)
 
QgsSymbolLayerV2CreateFromSldFunc createFromSldFunction () const
 
QgsSymbolLayerV2CreateFunc createFunction () const
 
virtual QgsSymbolLayerV2createSymbolLayer (const QgsStringMap &map) override
 Create a symbol layer of this type given the map of properties. More...
 
virtual QgsSymbolLayerV2createSymbolLayerFromSld (QDomElement &elem) override
 Create a symbol layer of this type given the map of properties. More...
 
virtual QgsSymbolLayerV2WidgetcreateSymbolLayerWidget (const QgsVectorLayer *vl) override
 Create widget for symbol layer of this type. More...
 
void setWidgetFunction (QgsSymbolLayerV2WidgetFunc f)
 
QgsSymbolLayerV2WidgetFunc widgetFunction () const
 

Protected Attributes

QgsSymbolLayerV2CreateFromSldFunc mCreateFromSldFunc
 
QgsSymbolLayerV2CreateFunc mCreateFunc
 
QgsSymbolLayerV2WidgetFunc mWidgetFunc
 

Detailed Description

Convenience metadata class that uses static functions to create symbol layer and its widget.

Definition at line 66 of file qgssymbollayerv2registry.h.

Constructor & Destructor Documentation

◆ QgsSymbolLayerV2Metadata() [1/2]

QgsSymbolLayerV2Metadata::QgsSymbolLayerV2Metadata ( const QString name,
const QString visibleName,
QgsSymbolV2::SymbolType  type,
QgsSymbolLayerV2CreateFunc  pfCreate,
QgsSymbolLayerV2WidgetFunc  pfWidget = nullptr 
)
inline
Note
not available in python bindings

Definition at line 70 of file qgssymbollayerv2registry.h.

◆ QgsSymbolLayerV2Metadata() [2/2]

QgsSymbolLayerV2Metadata::QgsSymbolLayerV2Metadata ( const QString name,
const QString visibleName,
QgsSymbolV2::SymbolType  type,
QgsSymbolLayerV2CreateFunc  pfCreate,
QgsSymbolLayerV2CreateFromSldFunc  pfCreateFromSld,
QgsSymbolLayerV2WidgetFunc  pfWidget = nullptr 
)
inline
Note
not available in python bindings

Definition at line 81 of file qgssymbollayerv2registry.h.

Member Function Documentation

◆ createFromSldFunction()

QgsSymbolLayerV2CreateFromSldFunc QgsSymbolLayerV2Metadata::createFromSldFunction ( ) const
inline
Note
not available in python bindings

Definition at line 97 of file qgssymbollayerv2registry.h.

◆ createFunction()

QgsSymbolLayerV2CreateFunc QgsSymbolLayerV2Metadata::createFunction ( ) const
inline
Note
not available in python bindings

Definition at line 93 of file qgssymbollayerv2registry.h.

◆ createSymbolLayer()

virtual QgsSymbolLayerV2* QgsSymbolLayerV2Metadata::createSymbolLayer ( const QgsStringMap map)
inlineoverridevirtual

Create a symbol layer of this type given the map of properties.

Implements QgsSymbolLayerV2AbstractMetadata.

Definition at line 102 of file qgssymbollayerv2registry.h.

◆ createSymbolLayerFromSld()

virtual QgsSymbolLayerV2* QgsSymbolLayerV2Metadata::createSymbolLayerFromSld ( QDomElement )
inlineoverridevirtual

Create a symbol layer of this type given the map of properties.

Reimplemented from QgsSymbolLayerV2AbstractMetadata.

Definition at line 104 of file qgssymbollayerv2registry.h.

◆ createSymbolLayerWidget()

virtual QgsSymbolLayerV2Widget* QgsSymbolLayerV2Metadata::createSymbolLayerWidget ( const QgsVectorLayer )
inlineoverridevirtual

Create widget for symbol layer of this type.

Can return NULL if there's no GUI

Reimplemented from QgsSymbolLayerV2AbstractMetadata.

Definition at line 103 of file qgssymbollayerv2registry.h.

◆ setWidgetFunction()

void QgsSymbolLayerV2Metadata::setWidgetFunction ( QgsSymbolLayerV2WidgetFunc  f)
inline
Note
not available in python bindings

Definition at line 100 of file qgssymbollayerv2registry.h.

◆ widgetFunction()

QgsSymbolLayerV2WidgetFunc QgsSymbolLayerV2Metadata::widgetFunction ( ) const
inline
Note
not available in python bindings

Definition at line 95 of file qgssymbollayerv2registry.h.

Member Data Documentation

◆ mCreateFromSldFunc

QgsSymbolLayerV2CreateFromSldFunc QgsSymbolLayerV2Metadata::mCreateFromSldFunc
protected

Definition at line 109 of file qgssymbollayerv2registry.h.

◆ mCreateFunc

QgsSymbolLayerV2CreateFunc QgsSymbolLayerV2Metadata::mCreateFunc
protected

Definition at line 107 of file qgssymbollayerv2registry.h.

◆ mWidgetFunc

QgsSymbolLayerV2WidgetFunc QgsSymbolLayerV2Metadata::mWidgetFunc
protected

Definition at line 108 of file qgssymbollayerv2registry.h.


The documentation for this class was generated from the following file: