QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
|
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 |
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 125 of file qgspointcloudrendererregistry.h.
|
inline |
Construct metadata.
Definition at line 133 of file qgspointcloudrendererregistry.h.
|
inline |
Definition at line 152 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 143 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 147 of file qgspointcloudrendererregistry.h.
|
inline |
Definition at line 157 of file qgspointcloudrendererregistry.h.
|
inline |
Definition at line 154 of file qgspointcloudrendererregistry.h.
|
protected |
pointer to function that creates an instance of the renderer when loading project / style
Definition at line 161 of file qgspointcloudrendererregistry.h.
|
protected |
pointer to function that creates a widget for configuration of renderer's params
Definition at line 163 of file qgspointcloudrendererregistry.h.