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 useQgsPointCloudRendererMetadata
convenience class.New in version 3.18.
QgsPointCloudRendererAbstractMetadata(name: str, visibleName: str, icon: QIcon = QIcon()) Constructor for
QgsPointCloudRendererAbstractMetadata
, with the specifiedname
.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
Returns new instance of the renderer given the DOM element.
Returns an icon representing the renderer.
Returns the unique name of the renderer.
Sets an
icon
representing the renderer.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
elem (QDomElement) –
context (QgsReadWriteContext) –
- Return type
- name(self) str ¶
Returns the unique name of the renderer. This value is not translated.
See also
- Return type
str
- setIcon(self, icon: QIcon)¶
Sets an
icon
representing the renderer.See also
- Parameters
icon (QIcon) –