#include <qgsrendererv2registry.h>


Public Member Functions | |
| QgsRendererV2Metadata (QString name, QString visibleName, QgsRendererV2CreateFunc pfCreate, QIcon icon=QIcon(), QgsRendererV2WidgetFunc pfWidget=NULL) | |
| construct metadata | |
| virtual QgsFeatureRendererV2 * | createRenderer (QDomElement &elem) |
| Return new instance of the renderer given the DOM element. | |
| virtual QgsRendererV2Widget * | createRendererWidget (QgsVectorLayer *layer, QgsStyleV2 *style, QgsFeatureRendererV2 *renderer) |
| Return new instance of settings widget for the renderer. | |
| QgsRendererV2CreateFunc | createFunction () const |
| QgsRendererV2WidgetFunc | widgetFunction () const |
| void | setWidgetFunction (QgsRendererV2WidgetFunc f) |
Protected Attributes | |
| QgsRendererV2CreateFunc | mCreateFunc |
| pointer to function that creates an instance of the renderer when loading project / style | |
| QgsRendererV2WidgetFunc | mWidgetFunc |
| pointer to function that creates a widget for configuration of renderer's params | |
Definition at line 55 of file qgsrendererv2registry.h.
| QgsRendererV2Metadata::QgsRendererV2Metadata | ( | QString | name, | |
| QString | visibleName, | |||
| QgsRendererV2CreateFunc | pfCreate, | |||
| QIcon | icon = QIcon(), |
|||
| QgsRendererV2WidgetFunc | pfWidget = NULL | |||
| ) | [inline] |
| virtual QgsFeatureRendererV2* QgsRendererV2Metadata::createRenderer | ( | QDomElement & | elem | ) | [inline, virtual] |
Return new instance of the renderer given the DOM element.
Returns NULL on error. Pure virtual function: must be implemented in derived classes.
Implements QgsRendererV2AbstractMetadata.
Definition at line 67 of file qgsrendererv2registry.h.
| virtual QgsRendererV2Widget* QgsRendererV2Metadata::createRendererWidget | ( | QgsVectorLayer * | layer, | |
| QgsStyleV2 * | style, | |||
| QgsFeatureRendererV2 * | renderer | |||
| ) | [inline, virtual] |
Return new instance of settings widget for the renderer.
Returns NULL on error.
Reimplemented from QgsRendererV2AbstractMetadata.
Definition at line 68 of file qgsrendererv2registry.h.
| QgsRendererV2CreateFunc QgsRendererV2Metadata::createFunction | ( | ) | const [inline] |
Definition at line 71 of file qgsrendererv2registry.h.
| QgsRendererV2WidgetFunc QgsRendererV2Metadata::widgetFunction | ( | ) | const [inline] |
Definition at line 72 of file qgsrendererv2registry.h.
| void QgsRendererV2Metadata::setWidgetFunction | ( | QgsRendererV2WidgetFunc | f | ) | [inline] |
Definition at line 74 of file qgsrendererv2registry.h.
pointer to function that creates an instance of the renderer when loading project / style
Definition at line 78 of file qgsrendererv2registry.h.
pointer to function that creates a widget for configuration of renderer's params
Definition at line 80 of file qgsrendererv2registry.h.
1.5.6