QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
Convenience metadata class that uses static functions to create point cloud renderer and its widget. More...
#include <qgspointcloudrendererregistry.h>
Public Member Functions | |
QgsPointCloudRendererMetadata (const QString &name, const QString &visibleName, QgsPointCloudRendererCreateFunc pfCreate, const QIcon &icon=QIcon(), QgsPointCloudRendererWidgetFunc pfWidget=nullptr) | |
Construct metadata. More... | |
QgsPointCloudRendererCreateFunc | createFunction () const |
QgsPointCloudRenderer * | createRenderer (QDomElement &elem, const QgsReadWriteContext &context) override |
Returns new instance of the renderer given the DOM element. More... | |
QgsPointCloudRendererWidget * | createRendererWidget (QgsPointCloudLayer *layer, QgsStyle *style, QgsPointCloudRenderer *renderer) override |
Returns new instance of settings widget for the renderer. More... | |
void | setWidgetFunction (QgsPointCloudRendererWidgetFunc f) |
QgsPointCloudRendererWidgetFunc | widgetFunction () const |
Public Member Functions inherited from QgsPointCloudRendererAbstractMetadata | |
QgsPointCloudRendererAbstractMetadata (const QString &name, const QString &visibleName, const QIcon &icon=QIcon()) | |
Constructor for QgsPointCloudRendererAbstractMetadata, with the specified name. More... | |
virtual | ~QgsPointCloudRendererAbstractMetadata ()=default |
virtual QgsPointCloudRenderer * | createRenderer (QDomElement &elem, const QgsReadWriteContext &context)=0 |
Returns new instance of the renderer given the DOM element. More... | |
virtual QgsPointCloudRendererWidget * | createRendererWidget (QgsPointCloudLayer *layer, QgsStyle *style, QgsPointCloudRenderer *oldRenderer) |
Returns new instance of settings widget for the renderer. More... | |
QIcon | icon () const |
Returns an icon representing the renderer. More... | |
QString | name () const |
Returns the unique name of the renderer. More... | |
void | setIcon (const QIcon &icon) |
Sets an icon representing the renderer. More... | |
QString | visibleName () const |
Returns a friendly display name of the renderer. More... | |
Protected Attributes | |
QgsPointCloudRendererCreateFunc | mCreateFunc |
pointer to function that creates an instance of the renderer when loading project / style More... | |
QgsPointCloudRendererWidgetFunc | mWidgetFunc |
pointer to function that creates a widget for configuration of renderer's params More... | |
Protected Attributes inherited from QgsPointCloudRendererAbstractMetadata | |
QIcon | mIcon |
icon to be shown in the renderer properties dialog More... | |
QString | mName |
name used within QGIS for identification (the same what renderer's type() returns) More... | |
QString | mVisibleName |
name visible for users (translatable) More... | |
Convenience metadata class that uses static functions to create point cloud renderer and its widget.
Definition at line 126 of file qgspointcloudrendererregistry.h.
|
inline |
Construct metadata.
Definition at line 134 of file qgspointcloudrendererregistry.h.
|
inline |
Definition at line 153 of file qgspointcloudrendererregistry.h.
|
inlineoverridevirtual |
Returns new instance of the renderer given the DOM element.
Returns nullptr
on error. Pure virtual function: must be implemented in derived classes.
Implements QgsPointCloudRendererAbstractMetadata.
Definition at line 144 of file qgspointcloudrendererregistry.h.
|
inlineoverridevirtual |
Returns new instance of settings widget for the renderer.
Returns nullptr
on error.
The oldRenderer argument may refer to previously used renderer (or it is nullptr
). If not nullptr
, it may be used to initialize GUI of the widget from the previous settings. The old renderer does not have to be of the same type as returned by createRenderer().
Reimplemented from QgsPointCloudRendererAbstractMetadata.
Definition at line 148 of file qgspointcloudrendererregistry.h.
|
inline |
Definition at line 158 of file qgspointcloudrendererregistry.h.
|
inline |
Definition at line 155 of file qgspointcloudrendererregistry.h.
|
protected |
pointer to function that creates an instance of the renderer when loading project / style
Definition at line 162 of file qgspointcloudrendererregistry.h.
|
protected |
pointer to function that creates a widget for configuration of renderer's params
Definition at line 164 of file qgspointcloudrendererregistry.h.