QGIS API Documentation
2.2.0-Valmiera
|
Stores metadata about one renderer class. More...
#include <qgsrendererv2registry.h>
Public Member Functions | |
QgsRendererV2AbstractMetadata (QString name, QString visibleName, QIcon icon=QIcon()) | |
virtual | ~QgsRendererV2AbstractMetadata () |
QString | name () const |
QString | visibleName () const |
QIcon | icon () const |
void | setIcon (const QIcon &icon) |
virtual QgsFeatureRendererV2 * | createRenderer (QDomElement &elem)=0 |
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. | |
virtual QgsFeatureRendererV2 * | createRendererFromSld (QDomElement &elem, QGis::GeometryType geomType) |
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 |
Stores metadata about one renderer class.
Definition at line 36 of file qgsrendererv2registry.h.
|
inline |
Definition at line 39 of file qgsrendererv2registry.h.
|
inlinevirtual |
Definition at line 41 of file qgsrendererv2registry.h.
|
pure virtual |
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.
Referenced by QgsFeatureRendererV2::load().
|
inlinevirtual |
Reimplemented in QgsRendererV2Metadata.
Definition at line 56 of file qgsrendererv2registry.h.
Referenced by QgsFeatureRendererV2::loadSld().
|
inlinevirtual |
Return new instance of settings widget for the renderer.
Returns NULL on error.
Reimplemented in QgsRendererV2Metadata.
Definition at line 53 of file qgsrendererv2registry.h.
|
inline |
Definition at line 46 of file qgsrendererv2registry.h.
|
inline |
Definition at line 43 of file qgsrendererv2registry.h.
Referenced by QgsRendererV2Registry::addRenderer().
|
inline |
Definition at line 47 of file qgsrendererv2registry.h.
References icon().
|
inline |
Definition at line 44 of file qgsrendererv2registry.h.
|
protected |
icon to be shown in the renderer properties dialog
Definition at line 65 of file qgsrendererv2registry.h.
|
protected |
name used within QGIS for identification (the same what renderer's type() returns)
Definition at line 61 of file qgsrendererv2registry.h.
|
protected |
name visible for users (translatable)
Definition at line 63 of file qgsrendererv2registry.h.