QGIS API Documentation  master-3f58142
QgsSymbolLayerV2AbstractMetadata Class Reference

Stores metadata about one symbol layer class. More...

#include <qgssymbollayerv2registry.h>

+ Inheritance diagram for QgsSymbolLayerV2AbstractMetadata:

List of all members.

Public Member Functions

 QgsSymbolLayerV2AbstractMetadata (QString name, QString visibleName, QgsSymbolV2::SymbolType type)
virtual ~QgsSymbolLayerV2AbstractMetadata ()
virtual QgsSymbolLayerV2createSymbolLayer (const QgsStringMap &map)=0
 create a symbol layer of this type given the map of properties.
virtual QgsSymbolLayerV2createSymbolLayerFromSld (QDomElement &)
 create a symbol layer of this type given the map of properties.
virtual QgsSymbolLayerV2WidgetcreateSymbolLayerWidget (const QgsVectorLayer *)
 create widget for symbol layer of this type.
QString name () const
QgsSymbolV2::SymbolType type () const
QString visibleName () const

Protected Attributes

QString mName
QgsSymbolV2::SymbolType mType
QString mVisibleName

Detailed Description

Stores metadata about one symbol layer class.

Note:
It's necessary to implement createSymbolLayer() function. In C++ you can use QgsSymbolLayerV2Metadata convenience class.

Definition at line 30 of file qgssymbollayerv2registry.h.


Constructor & Destructor Documentation

QgsSymbolLayerV2AbstractMetadata::QgsSymbolLayerV2AbstractMetadata ( QString  name,
QString  visibleName,
QgsSymbolV2::SymbolType  type 
) [inline]

Definition at line 33 of file qgssymbollayerv2registry.h.


Member Function Documentation

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

Implemented in QgsSymbolLayerV2Metadata.

Referenced by QgsLayerPropertiesWidget::layerTypeChanged().

virtual QgsSymbolLayerV2* QgsSymbolLayerV2AbstractMetadata::createSymbolLayerFromSld ( QDomElement &  ) [inline, virtual]

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

Reimplemented in QgsSymbolLayerV2Metadata.

Definition at line 47 of file qgssymbollayerv2registry.h.

create widget for symbol layer of this type.

Can return NULL if there's no GUI

Reimplemented in QgsSymbolLayerV2Metadata.

Definition at line 45 of file qgssymbollayerv2registry.h.

Referenced by QgsLayerPropertiesWidget::updateSymbolLayerWidget().

QString QgsSymbolLayerV2AbstractMetadata::name ( ) const [inline]

Member Data Documentation

Definition at line 51 of file qgssymbollayerv2registry.h.

Definition at line 52 of file qgssymbollayerv2registry.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines