QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
QgsPointCloudRendererMetadata Class Reference

Convenience metadata class that uses static functions to create point cloud renderer and its widget. More...

#include <qgspointcloudrendererregistry.h>

Inheritance diagram for QgsPointCloudRendererMetadata:
Inheritance graph
[legend]

Public Member Functions

 QgsPointCloudRendererMetadata (const QString &name, const QString &visibleName, QgsPointCloudRendererCreateFunc pfCreate, const QIcon &icon=QIcon(), QgsPointCloudRendererWidgetFunc pfWidget=nullptr)
 Construct metadata.
 
QgsPointCloudRendererCreateFunc createFunction () const
 
QgsPointCloudRenderercreateRenderer (QDomElement &elem, const QgsReadWriteContext &context) override
 Returns new instance of the renderer given the DOM element.
 
QgsPointCloudRendererWidgetcreateRendererWidget (QgsPointCloudLayer *layer, QgsStyle *style, QgsPointCloudRenderer *renderer) override
 Returns new instance of settings widget for the renderer.
 
void setWidgetFunction (QgsPointCloudRendererWidgetFunc f)
 
QgsPointCloudRendererWidgetFunc widgetFunction () const
 

Protected Attributes

QgsPointCloudRendererCreateFunc mCreateFunc
 pointer to function that creates an instance of the renderer when loading project / style
 
QgsPointCloudRendererWidgetFunc mWidgetFunc
 pointer to function that creates a widget for configuration of renderer's params
 

Detailed Description

Convenience metadata class that uses static functions to create point cloud renderer and its widget.

Since
QGIS 3.18

Definition at line 126 of file qgspointcloudrendererregistry.h.

Constructor & Destructor Documentation

◆ QgsPointCloudRendererMetadata()

QgsPointCloudRendererMetadata::QgsPointCloudRendererMetadata ( const QString &  name,
const QString &  visibleName,
QgsPointCloudRendererCreateFunc  pfCreate,
const QIcon &  icon = QIcon(),
QgsPointCloudRendererWidgetFunc  pfWidget = nullptr 
)
inline

Construct metadata.

Note
not available in Python bindings

Definition at line 134 of file qgspointcloudrendererregistry.h.

Member Function Documentation

◆ createFunction()

QgsPointCloudRendererCreateFunc QgsPointCloudRendererMetadata::createFunction ( ) const
inline
Note
not available in Python bindings

Definition at line 153 of file qgspointcloudrendererregistry.h.

◆ createRenderer()

QgsPointCloudRenderer * QgsPointCloudRendererMetadata::createRenderer ( QDomElement &  elem,
const QgsReadWriteContext context 
)
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.

◆ createRendererWidget()

QgsPointCloudRendererWidget * QgsPointCloudRendererMetadata::createRendererWidget ( QgsPointCloudLayer layer,
QgsStyle style,
QgsPointCloudRenderer oldRenderer 
)
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().

Note
Not available in Python bindings

Reimplemented from QgsPointCloudRendererAbstractMetadata.

Definition at line 148 of file qgspointcloudrendererregistry.h.

◆ setWidgetFunction()

void QgsPointCloudRendererMetadata::setWidgetFunction ( QgsPointCloudRendererWidgetFunc  f)
inline
Note
not available in Python bindings

Definition at line 158 of file qgspointcloudrendererregistry.h.

◆ widgetFunction()

QgsPointCloudRendererWidgetFunc QgsPointCloudRendererMetadata::widgetFunction ( ) const
inline
Note
not available in Python bindings

Definition at line 155 of file qgspointcloudrendererregistry.h.

Member Data Documentation

◆ mCreateFunc

QgsPointCloudRendererCreateFunc QgsPointCloudRendererMetadata::mCreateFunc
protected

pointer to function that creates an instance of the renderer when loading project / style

Definition at line 162 of file qgspointcloudrendererregistry.h.

◆ mWidgetFunc

QgsPointCloudRendererWidgetFunc QgsPointCloudRendererMetadata::mWidgetFunc
protected

pointer to function that creates a widget for configuration of renderer's params

Definition at line 164 of file qgspointcloudrendererregistry.h.


The documentation for this class was generated from the following file: