Class: QgsPointCloudRendererAbstractMetadata

class qgis.core.QgsPointCloudRendererAbstractMetadata(name: str, visibleName: str, icon: QIcon = QIcon())

Bases: sip.wrapper

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)

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.

Parameters
  • name (str) –

  • visibleName (str) –

  • icon

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