QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Convenience metadata class that uses static functions to create renderer and its widget. More...
#include <qgsrendererv2registry.h>
Protected Attributes | |
QgsRendererV2CreateFromSldFunc | mCreateFromSldFunc |
pointer to function that creates an instance of the renderer from SLD More... | |
QgsRendererV2CreateFunc | mCreateFunc |
pointer to function that creates an instance of the renderer when loading project / style More... | |
QgsRendererV2WidgetFunc | mWidgetFunc |
pointer to function that creates a widget for configuration of renderer's params More... | |
Protected Attributes inherited from QgsRendererV2AbstractMetadata | |
QIcon | mIcon |
icon to be shown in the renderer properties dialog More... | |
QString | mName |
name used within QGIS for identification (the same what renderer's type() returns) More... | |
QString | mVisibleName |
name visible for users (translatable) More... | |
Additional Inherited Members | |
Public Types inherited from QgsRendererV2AbstractMetadata | |
enum | LayerType { PointLayer = 1, LineLayer = 2, PolygonLayer = 4, All = PointLayer | LineLayer | PolygonLayer } |
Layer types the renderer is compatible with. More... | |
Convenience metadata class that uses static functions to create renderer and its widget.
Definition at line 105 of file qgsrendererv2registry.h.
|
inline |
Construct metadata.
Definition at line 111 of file qgsrendererv2registry.h.
|
inline |
Definition at line 125 of file qgsrendererv2registry.h.
|
virtual |
Definition at line 122 of file qgsrendererv2registry.cpp.
|
inlineoverridevirtual |
Returns flags indicating the types of layer the renderer is compatible with.
Reimplemented from QgsRendererV2AbstractMetadata.
Definition at line 157 of file qgsrendererv2registry.h.
|
inline |
Definition at line 152 of file qgsrendererv2registry.h.
|
inline |
Definition at line 148 of file qgsrendererv2registry.h.
|
inlineoverridevirtual |
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 141 of file qgsrendererv2registry.h.
|
inlineoverridevirtual |
Reimplemented from QgsRendererV2AbstractMetadata.
Definition at line 144 of file qgsrendererv2registry.h.
|
inlineoverridevirtual |
Return new instance of settings widget for the renderer.
Returns NULL on error.
The oldRenderer argument may refer to previously used renderer (or it is null). If not null, it may be used to initialize GUI of the widget from the previous settings. The old renderer does not have to be of the same type as returned by createRenderer(). When using oldRenderer make sure to make a copy of it - it will be deleted afterwards.
Reimplemented from QgsRendererV2AbstractMetadata.
Definition at line 142 of file qgsrendererv2registry.h.
|
inline |
Definition at line 155 of file qgsrendererv2registry.h.
|
inline |
Definition at line 150 of file qgsrendererv2registry.h.
|
protected |
pointer to function that creates an instance of the renderer from SLD
Definition at line 165 of file qgsrendererv2registry.h.
|
protected |
pointer to function that creates an instance of the renderer when loading project / style
Definition at line 161 of file qgsrendererv2registry.h.
|
protected |
pointer to function that creates a widget for configuration of renderer's params
Definition at line 163 of file qgsrendererv2registry.h.