Class: QgsPointCloudRendererAbstractMetadata

class qgis.core.QgsPointCloudRendererAbstractMetadata

Bases: sip.wrapper

Stores metadata about one point cloud renderer class.

Note

It’s necessary to implement createRenderer() function. In C++ you can use QgsPointCloudRendererMetadata convenience class.

New in version 3.18.

QgsPointCloudRendererAbstractMetadata(name: str, visibleName: str, icon: QIcon = QIcon()) 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.

QgsPointCloudRendererAbstractMetadata(QgsPointCloudRendererAbstractMetadata)

Methods

createRenderer

Returns new instance of the renderer given the DOM element.

icon

Returns an icon representing the renderer.

name

Returns the unique name of the renderer.

setIcon

Sets an icon representing the renderer.

visibleName

Returns a friendly display name of the renderer.

createRenderer(self, elem: QDomElement, context: QgsReadWriteContext)QgsPointCloudRenderer

Returns new instance of the renderer given the DOM element. Returns None on error. Pure virtual function: must be implemented in derived classes.

Parameters
Return type

QgsPointCloudRenderer

icon(self)QIcon

Returns an icon representing the renderer.

See also

setIcon()

Return type

QIcon

name(self)str

Returns the unique name of the renderer. This value is not translated.

See also

visibleName()

Return type

str

setIcon(self, icon: QIcon)

Sets an icon representing the renderer.

See also

icon()

Parameters

icon (QIcon) –

visibleName(self)str

Returns a friendly display name of the renderer. This value is translated.

See also

name()

Return type

str