Class: 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.

Added in version 3.18.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: createRenderer()

Class Hierarchy

Inheritance diagram of qgis.core.QgsPointCloudRendererAbstractMetadata

Subclasses

QgsPointCloudRendererMetadata

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

class qgis.core.QgsPointCloudRendererAbstractMetadata[source]

Bases: object

__init__(name: str | None, visibleName: str | None, 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.

Parameters:
  • name (Optional[str])

  • visibleName (Optional[str])

  • icon (QIcon = QIcon())

__init__(a0: QgsPointCloudRendererAbstractMetadata)
Parameters:

a0 (QgsPointCloudRendererAbstractMetadata)

abstract createRenderer(self, elem: QDomElement, context: QgsReadWriteContext) QgsPointCloudRenderer | None[source]

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:

Optional[QgsPointCloudRenderer]

icon(self) QIcon[source]

Returns an icon representing the renderer.

See also

setIcon()

Return type:

QIcon

name(self) str[source]

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

See also

visibleName()

Return type:

str

setIcon(self, icon: QIcon)[source]

Sets an icon representing the renderer.

See also

icon()

Parameters:

icon (QIcon)

visibleName(self) str[source]

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

See also

name()

Return type:

str