Stores metadata about one renderer class.
More...
#include <qgsrendererv2registry.h>
Protected Attributes |
QString | mName |
| name used within QGIS for identification (the same what renderer's type() returns)
|
QString | mVisibleName |
| name visible for users (translatable)
|
QIcon | mIcon |
| icon to be shown in the renderer properties dialog
|
Detailed Description
Stores metadata about one renderer class.
- Note
- It's necessary to implement createRenderer() function. In C++ you can use QgsRendererV2Metadata convenience class.
Constructor & Destructor Documentation
QgsRendererV2AbstractMetadata::QgsRendererV2AbstractMetadata |
( |
QString |
name, |
|
|
QString |
visibleName, |
|
|
QIcon |
icon = QIcon() |
|
) |
| |
|
inline |
virtual QgsRendererV2AbstractMetadata::~QgsRendererV2AbstractMetadata |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
Return new instance of the renderer given the DOM element.
Returns NULL on error. Pure virtual function: must be implemented in derived classes.
Implemented in QgsRendererV2Metadata.
Return new instance of settings widget for the renderer.
Returns NULL on error.
Reimplemented in QgsRendererV2Metadata.
QIcon QgsRendererV2AbstractMetadata::icon |
( |
| ) |
const |
|
inline |
QString QgsRendererV2AbstractMetadata::name |
( |
| ) |
const |
|
inline |
void QgsRendererV2AbstractMetadata::setIcon |
( |
const QIcon & |
icon | ) |
|
|
inline |
QString QgsRendererV2AbstractMetadata::visibleName |
( |
| ) |
const |
|
inline |
Member Data Documentation
QIcon QgsRendererV2AbstractMetadata::mIcon |
|
protected |
icon to be shown in the renderer properties dialog
QString QgsRendererV2AbstractMetadata::mName |
|
protected |
name used within QGIS for identification (the same what renderer's type() returns)
QString QgsRendererV2AbstractMetadata::mVisibleName |
|
protected |
name visible for users (translatable)
The documentation for this class was generated from the following file: