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; }
205 bool removeRenderer(
const QString &rendererName );
216 QStringList renderersList()
const;
231 QMap<QString, QgsTiledSceneRendererAbstractMetadata *> mRenderers;
234 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 & operator=(const QgsTiledSceneRendererRegistry &rh)=delete
Abstract base class for 2d tiled scene renderers.
QgsTiledSceneRenderer *(* QgsTiledSceneRendererCreateFunc)(QDomElement &, const QgsReadWriteContext &)
QgsTiledSceneRendererWidget *(* QgsTiledSceneRendererWidgetFunc)(QgsTiledSceneLayer *, QgsStyle *, QgsTiledSceneRenderer *)