15#ifndef QGSTILEDSCENERENDERERREGISTRY_H
16#define QGSTILEDSCENERENDERERREGISTRY_H
56 , mVisibleName( visibleName )
65 QString
name()
const {
return mName; }
77 QIcon
icon()
const {
return mIcon; }
83 void setIcon(
const QIcon &icon ) { mIcon = icon; }
103 { Q_UNUSED( layer ) Q_UNUSED( style ); Q_UNUSED( oldRenderer );
return nullptr; }
132 const QString &visibleName,
134 const QIcon &icon = QIcon(),
137 , mCreateFunc( pfCreate )
138 , mWidgetFunc( pfWidget )
142 {
return mCreateFunc ? mCreateFunc( elem, context ) :
nullptr; }
146 {
return mWidgetFunc ? mWidgetFunc( layer, style, renderer ) :
nullptr; }
207 bool removeRenderer(
const QString &rendererName );
218 QStringList renderersList()
const;
233 QMap<QString, QgsTiledSceneRendererAbstractMetadata *> mRenderers;
236 QStringList mRenderersOrder;
The class is used as a container of context for various read/write operations on other objects.
Represents a map layer supporting display of tiled scene objects.
Registry of 2D renderers for tiled scenes.
QgsTiledSceneRendererRegistry(const QgsTiledSceneRendererRegistry &rh)=delete
QgsTiledSceneRendererRegistry cannot be copied.
QgsTiledSceneRendererRegistry & operator=(const QgsTiledSceneRendererRegistry &rh)=delete
QgsTiledSceneRendererRegistry cannot be copied.
Abstract base class for 2d tiled scene renderers.
QgsTiledSceneRenderer *(* QgsTiledSceneRendererCreateFunc)(QDomElement &, const QgsReadWriteContext &)
QgsTiledSceneRendererWidget *(* QgsTiledSceneRendererWidgetFunc)(QgsTiledSceneLayer *, QgsStyle *, QgsTiledSceneRenderer *)