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; }
210 bool removeRenderer(
const QString &rendererName );
221 QStringList renderersList()
const;
241 QMap<QString, QgsPointCloudRendererAbstractMetadata *> mRenderers;
244 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.
QList< QgsPointCloudCategory > QgsPointCloudCategoryList
QgsPointCloudRendererWidget *(* QgsPointCloudRendererWidgetFunc)(QgsPointCloudLayer *, QgsStyle *, QgsPointCloudRenderer *)
QgsPointCloudRenderer *(* QgsPointCloudRendererCreateFunc)(QDomElement &, const QgsReadWriteContext &)