Class: QgsTiledSceneRendererWidget¶
Base class for tiled scene 2D renderer settings widgets.
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: renderer()
Class Hierarchy¶
Base classes¶
Base class for any widget that can be shown as an inline panel. |
|
Abstract Methods
Returns a new instance of a renderer as defined by the settings in the widget. |
Methods
Returns the context in which the renderer widget is shown, e.g., the associated map canvas and expression contexts. |
|
Returns the tiled scene layer associated with the widget. |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsTiledSceneRendererWidget. See the FAQ for more details.
Sets the context in which the renderer widget is shown, e.g., the associated map canvas and expression contexts. |
- class qgis.gui.QgsTiledSceneRendererWidget[source]¶
Bases:
QgsPanelWidget
- __init__(layer: QgsTiledSceneLayer | None, style: QgsStyle | None)
Constructor for QgsTiledSceneRendererWidget, associated with the specified
layer
andstyle
database.- Parameters:
layer (Optional[QgsTiledSceneLayer])
style (Optional[QgsStyle])
- context(self) QgsSymbolWidgetContext [source]¶
Returns the context in which the renderer widget is shown, e.g., the associated map canvas and expression contexts.
See also
- Return type:
- layer(self) QgsTiledSceneLayer | None [source]¶
Returns the tiled scene layer associated with the widget.
- Return type:
Optional[QgsTiledSceneLayer]
- abstract renderer(self) QgsTiledSceneRenderer | None [source]¶
Returns a new instance of a renderer as defined by the settings in the widget.
Caller takes ownership of the returned object.
- Return type:
Optional[QgsTiledSceneRenderer]
- virtual setContext(self, context: QgsSymbolWidgetContext)[source]¶
Sets the
context
in which the renderer widget is shown, e.g., the associated map canvas and expression contexts.See also
- Parameters:
context (QgsSymbolWidgetContext)