15 #ifndef QGSPOINTCLOUDRENDERERREGISTRY_H
16 #define QGSPOINTCLOUDRENDERERREGISTRY_H
18 #include "qgis_core.h"
22 #include <QStringList>
23 #include <QDomElement>
58 , mVisibleName( visibleName )
67 QString
name()
const {
return mName; }
79 QIcon
icon()
const {
return mIcon; }
85 void setIcon(
const QIcon &icon ) { mIcon = icon; }
105 { Q_UNUSED( layer ) Q_UNUSED( style ); Q_UNUSED( oldRenderer );
return nullptr; }
134 const QString &visibleName,
136 const QIcon &icon = QIcon(),
139 , mCreateFunc( pfCreate )
140 , mWidgetFunc( pfWidget )
144 {
return mCreateFunc ? mCreateFunc( elem, context ) :
nullptr; }
148 {
return mWidgetFunc ? mWidgetFunc( layer, style, renderer ) :
nullptr; }
209 bool removeRenderer(
const QString &rendererName );
220 QStringList renderersList()
const;
235 QMap<QString, QgsPointCloudRendererAbstractMetadata *> mRenderers;
238 QStringList mRenderersOrder;
Collection of point cloud attributes.
Base class for providing data for QgsPointCloudLayer.
Represents a map layer supporting display of point clouds.
Registry of 2D renderers for point clouds.
QgsPointCloudRendererRegistry(const QgsPointCloudRendererRegistry &rh)=delete
QgsPointCloudRendererRegistry cannot be copied.
QgsPointCloudRendererRegistry & operator=(const QgsPointCloudRendererRegistry &rh)=delete
QgsPointCloudRendererRegistry cannot be copied.
Abstract base class for 2d point cloud renderers.
The class is used as a container of context for various read/write operations on other objects.
QgsPointCloudRendererWidget *(* QgsPointCloudRendererWidgetFunc)(QgsPointCloudLayer *, QgsStyle *, QgsPointCloudRenderer *)
QgsPointCloudRenderer *(* QgsPointCloudRendererCreateFunc)(QDomElement &, const QgsReadWriteContext &)