15#ifndef QGSPOINTCLOUDRENDERERREGISTRY_H
16#define QGSPOINTCLOUDRENDERERREGISTRY_H
59 , mVisibleName( visibleName )
68 QString
name()
const {
return mName; }
80 QIcon
icon()
const {
return mIcon; }
86 void setIcon(
const QIcon &icon ) { mIcon = icon; }
106 { Q_UNUSED( layer ) Q_UNUSED( style ); Q_UNUSED( oldRenderer );
return nullptr; }
135 const QString &visibleName,
137 const QIcon &icon = QIcon(),
140 , mCreateFunc( pfCreate )
141 , mWidgetFunc( pfWidget )
145 {
return mCreateFunc ? mCreateFunc( elem, context ) :
nullptr; }
149 {
return mWidgetFunc ? mWidgetFunc( layer, style, renderer ) :
nullptr; }
208 bool removeRenderer(
const QString &rendererName );
219 QStringList renderersList()
const;
239 QMap<QString, QgsPointCloudRendererAbstractMetadata *> mRenderers;
242 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 & operator=(const QgsPointCloudRendererRegistry &rh)=delete
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.
QList< QgsPointCloudCategory > QgsPointCloudCategoryList
QgsPointCloudRendererWidget *(* QgsPointCloudRendererWidgetFunc)(QgsPointCloudLayer *, QgsStyle *, QgsPointCloudRenderer *)
QgsPointCloudRenderer *(* QgsPointCloudRendererCreateFunc)(QDomElement &, const QgsReadWriteContext &)