QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Stores metadata about one point cloud renderer class. More...
#include <qgspointcloudrendererregistry.h>
Public Member Functions | |
QgsPointCloudRendererAbstractMetadata (const QString &name, const QString &visibleName, const QIcon &icon=QIcon()) | |
Constructor for QgsPointCloudRendererAbstractMetadata, with the specified name. | |
virtual | ~QgsPointCloudRendererAbstractMetadata ()=default |
virtual QgsPointCloudRenderer * | createRenderer (QDomElement &elem, const QgsReadWriteContext &context)=0 |
Returns new instance of the renderer given the DOM element. | |
virtual QgsPointCloudRendererWidget * | createRendererWidget (QgsPointCloudLayer *layer, QgsStyle *style, QgsPointCloudRenderer *oldRenderer) |
Returns new instance of settings widget for the renderer. | |
QIcon | icon () const |
Returns an icon representing the renderer. | |
QString | name () const |
Returns the unique name of the renderer. | |
void | setIcon (const QIcon &icon) |
Sets an icon representing the renderer. | |
QString | visibleName () const |
Returns a friendly display name of the renderer. | |
Protected Attributes | |
QIcon | mIcon |
icon to be shown in the renderer properties dialog | |
QString | mName |
name used within QGIS for identification (the same what renderer's type() returns) | |
QString | mVisibleName |
name visible for users (translatable) | |
Stores metadata about one point cloud renderer class.
Definition at line 46 of file qgspointcloudrendererregistry.h.
|
inline |
Constructor for QgsPointCloudRendererAbstractMetadata, with the specified name.
The visibleName argument gives a translated, user friendly string identifying the renderer type.
The icon argument can be used to specify an icon representing the renderer.
Definition at line 57 of file qgspointcloudrendererregistry.h.
|
virtualdefault |
|
pure virtual |
Returns new instance of the renderer given the DOM element.
Returns nullptr
on error. Pure virtual function: must be implemented in derived classes.
Implemented in QgsPointCloudRendererMetadata.
|
inlinevirtual |
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 in QgsPointCloudRendererMetadata.
Definition at line 105 of file qgspointcloudrendererregistry.h.
|
inline |
Returns an icon representing the renderer.
Definition at line 80 of file qgspointcloudrendererregistry.h.
|
inline |
Returns the unique name of the renderer.
This value is not translated.
Definition at line 68 of file qgspointcloudrendererregistry.h.
|
inline |
Sets an icon representing the renderer.
Definition at line 86 of file qgspointcloudrendererregistry.h.
|
inline |
Returns a friendly display name of the renderer.
This value is translated.
Definition at line 74 of file qgspointcloudrendererregistry.h.
|
protected |
icon to be shown in the renderer properties dialog
Definition at line 115 of file qgspointcloudrendererregistry.h.
|
protected |
name used within QGIS for identification (the same what renderer's type() returns)
Definition at line 111 of file qgspointcloudrendererregistry.h.
|
protected |
name visible for users (translatable)
Definition at line 113 of file qgspointcloudrendererregistry.h.