Class: QgsTiledSceneRendererAbstractMetadata¶
Stores metadata about one tiled scene renderer class.
Note
It’s necessary to implement createRenderer() function.
In C++ you can use QgsTiledSceneRendererMetadata convenience class.
Added in version 3.34.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: createRenderer()
Class Hierarchy¶
Subclasses¶
Convenience metadata class that uses static functions to create tiled scene renderer and its widget. |
Abstract Methods
Returns new instance of the renderer given the DOM element. |
Methods
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. |
- class qgis.core.QgsTiledSceneRendererAbstractMetadata[source]¶
Bases:
object- __init__(name: str | None, visibleName: str | None, icon: QIcon = QIcon())
Constructor for QgsTiledSceneRendererAbstractMetadata, with the specified
name.The
visibleNameargument gives a translated, user friendly string identifying the renderer type.The
iconargument can be used to specify an icon representing the renderer.- Parameters:
name (Optional[str])
visibleName (Optional[str])
icon (QIcon = QIcon())
- __init__(a0: QgsTiledSceneRendererAbstractMetadata)
- Parameters:
- abstract createRenderer(self, elem: QDomElement, context: QgsReadWriteContext) QgsTiledSceneRenderer | None[source]¶
Returns new instance of the renderer given the DOM element. Returns
Noneon error. Pure virtual function: must be implemented in derived classes.- Parameters:
elem (QDomElement)
context (QgsReadWriteContext)
- Return type:
Optional[QgsTiledSceneRenderer]
- name(self) str[source]¶
Returns the unique name of the renderer. This value is not translated.
See also
- Return type:
str