Class: QgsPointCloudExtentRenderer

A renderer for 2d visualisation of point clouds which shows the dataset’s extents using a fill symbol.

Added in version 3.18.

Class Hierarchy

Inheritance diagram of qgis.core.QgsPointCloudExtentRenderer

Base classes

QgsPointCloudRenderer

Abstract base class for 2d point cloud renderers.

class qgis.core.QgsPointCloudExtentRenderer[source]

Bases: QgsPointCloudRenderer

__init__(symbol: QgsFillSymbol | None = None)

Constructor for QgsPointCloudExtentRenderer.

Optionally the symbol to use for showing the extent can be specified. If specified, ownership is transferred to the renderer. If no symbol is specified a default one will be created instead.

Parameters:

symbol (Optional[QgsFillSymbol] = None)

static create(element: QDomElement, context: QgsReadWriteContext) QgsPointCloudRenderer | None[source]

Creates an extent renderer from an XML element.

Parameters:
Return type:

Optional[QgsPointCloudRenderer]

static defaultFillSymbol() QgsFillSymbol | None[source]

Returns a new instance of the default fill symbol to use for showing point cloud extents.

Return type:

Optional[QgsFillSymbol]

fillSymbol(self) QgsFillSymbol | None[source]

Returns the symbol used to render the cloud’s extent.

See also

setFillSymbol()

Return type:

Optional[QgsFillSymbol]

renderExtent(self, extent: QgsGeometry, context: QgsPointCloudRenderContext)[source]

Renders a polygon extent geometry to the specified render context.

Parameters:
setFillSymbol(self, symbol: QgsFillSymbol | None)[source]

Sets the symbol used to render the cloud’s extent.

Ownership of symbol is transferred to the renderer.

See also

fillSymbol()

Parameters:

symbol (Optional[QgsFillSymbol])