QGIS API Documentation 3.39.0-Master (d85f3c2a281)
|
Convenience metadata class that uses static functions to create tiled scene renderer and its widget. More...
#include <qgstiledscenerendererregistry.h>
Public Member Functions | |
QgsTiledSceneRendererMetadata (const QString &name, const QString &visibleName, QgsTiledSceneRendererCreateFunc pfCreate, const QIcon &icon=QIcon(), QgsTiledSceneRendererWidgetFunc pfWidget=nullptr) | |
Construct metadata. | |
QgsTiledSceneRendererCreateFunc | createFunction () const |
QgsTiledSceneRenderer * | createRenderer (QDomElement &elem, const QgsReadWriteContext &context) override |
Returns new instance of the renderer given the DOM element. | |
QgsTiledSceneRendererWidget * | createRendererWidget (QgsTiledSceneLayer *layer, QgsStyle *style, QgsTiledSceneRenderer *renderer) override |
Returns new instance of settings widget for the renderer. | |
void | setWidgetFunction (QgsTiledSceneRendererWidgetFunc f) |
QgsTiledSceneRendererWidgetFunc | widgetFunction () const |
![]() | |
QgsTiledSceneRendererAbstractMetadata (const QString &name, const QString &visibleName, const QIcon &icon=QIcon()) | |
Constructor for QgsTiledSceneRendererAbstractMetadata, with the specified name. | |
virtual | ~QgsTiledSceneRendererAbstractMetadata ()=default |
QIcon | icon () const |
Returns an icon representing the renderer. | |
QString | name () const |
Returns the unique name of the renderer. | |
void | setIcon (const QIcon &icon) |
Sets an icon representing the renderer. | |
QString | visibleName () const |
Returns a friendly display name of the renderer. | |
Protected Attributes | |
QgsTiledSceneRendererCreateFunc | mCreateFunc |
pointer to function that creates an instance of the renderer when loading project / style | |
QgsTiledSceneRendererWidgetFunc | mWidgetFunc |
pointer to function that creates a widget for configuration of renderer's params | |
![]() | |
QIcon | mIcon |
icon to be shown in the renderer properties dialog | |
QString | mName |
name used within QGIS for identification (the same what renderer's type() returns) | |
QString | mVisibleName |
name visible for users (translatable) | |
Convenience metadata class that uses static functions to create tiled scene renderer and its widget.
Definition at line 123 of file qgstiledscenerendererregistry.h.
|
inline |
Construct metadata.
Definition at line 131 of file qgstiledscenerendererregistry.h.
|
inline |
Definition at line 150 of file qgstiledscenerendererregistry.h.
|
inlineoverridevirtual |
Returns new instance of the renderer given the DOM element.
Returns nullptr
on error. Pure virtual function: must be implemented in derived classes.
Implements QgsTiledSceneRendererAbstractMetadata.
Definition at line 141 of file qgstiledscenerendererregistry.h.
|
inlineoverridevirtual |
Returns new instance of settings widget for the renderer.
Returns nullptr
on error.
The oldRenderer argument may refer to previously used renderer (or it is nullptr
). If not nullptr
, 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().
Reimplemented from QgsTiledSceneRendererAbstractMetadata.
Definition at line 145 of file qgstiledscenerendererregistry.h.
|
inline |
Definition at line 155 of file qgstiledscenerendererregistry.h.
|
inline |
Definition at line 152 of file qgstiledscenerendererregistry.h.
|
protected |
pointer to function that creates an instance of the renderer when loading project / style
Definition at line 159 of file qgstiledscenerendererregistry.h.
|
protected |
pointer to function that creates a widget for configuration of renderer's params
Definition at line 161 of file qgstiledscenerendererregistry.h.