QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
QgsSymbolLayerV2AbstractMetadata Class Reference

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

#include <qgssymbollayerv2registry.h>

Inheritance diagram for QgsSymbolLayerV2AbstractMetadata:
Inheritance graph
[legend]

Public Member Functions

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

Protected Attributes

QString mName
QString mVisibleName
QgsSymbolV2::SymbolType mType

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.

Constructor & Destructor Documentation

QgsSymbolLayerV2AbstractMetadata::QgsSymbolLayerV2AbstractMetadata ( QString  name,
QString  visibleName,
QgsSymbolV2::SymbolType  type 
)
inline
virtual QgsSymbolLayerV2AbstractMetadata::~QgsSymbolLayerV2AbstractMetadata ( )
inlinevirtual

Member Function Documentation

virtual QgsSymbolLayerV2* QgsSymbolLayerV2AbstractMetadata::createSymbolLayer ( const QgsStringMap map)
pure virtual

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

Implemented in QgsSymbolLayerV2Metadata.

virtual QgsSymbolLayerV2* QgsSymbolLayerV2AbstractMetadata::createSymbolLayerFromSld ( QDomElement &  )
inlinevirtual

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

Reimplemented in QgsSymbolLayerV2Metadata.

virtual QgsSymbolLayerV2Widget* QgsSymbolLayerV2AbstractMetadata::createSymbolLayerWidget ( const QgsVectorLayer )
inlinevirtual

create widget for symbol layer of this type.

Can return NULL if there's no GUI

Reimplemented in QgsSymbolLayerV2Metadata.

QString QgsSymbolLayerV2AbstractMetadata::name ( ) const
inline
QgsSymbolV2::SymbolType QgsSymbolLayerV2AbstractMetadata::type ( ) const
inline
QString QgsSymbolLayerV2AbstractMetadata::visibleName ( ) const
inline

Member Data Documentation

QString QgsSymbolLayerV2AbstractMetadata::mName
protected
QgsSymbolV2::SymbolType QgsSymbolLayerV2AbstractMetadata::mType
protected
QString QgsSymbolLayerV2AbstractMetadata::mVisibleName
protected

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