Class: QgsPointCloudExtentRenderer

class qgis.core.QgsPointCloudExtentRenderer

Bases: QgsPointCloudRenderer

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

New in version 3.18.

QgsPointCloudExtentRenderer(symbol: QgsFillSymbol = 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.

Methods

clone

rtype

QgsPointCloudRenderer

create

Creates an extent renderer from an XML element.

createLegendNodes

param nodeLayer

defaultFillSymbol

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

fillSymbol

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

renderBlock

param block

renderExtent

Renders a polygon extent geometry to the specified render context.

save

param doc

setFillSymbol

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

startRender

param context

stopRender

param context

type

rtype

str

clone(self) QgsPointCloudRenderer
Return type

QgsPointCloudRenderer

create(element: QDomElement, context: QgsReadWriteContext) QgsPointCloudRenderer

Creates an extent renderer from an XML element.

Parameters
Return type

QgsPointCloudRenderer

createLegendNodes(self, nodeLayer: QgsLayerTreeLayer) List[QgsLayerTreeModelLegendNode]
Parameters

nodeLayer (QgsLayerTreeLayer) –

Return type

List[QgsLayerTreeModelLegendNode]

defaultFillSymbol() QgsFillSymbol

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

Return type

QgsFillSymbol

fillSymbol(self) QgsFillSymbol

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

See also

setFillSymbol()

Return type

QgsFillSymbol

renderBlock(self, block: QgsPointCloudBlock, context: QgsPointCloudRenderContext)
Parameters
renderExtent(self, extent: QgsGeometry, context: QgsPointCloudRenderContext)

Renders a polygon extent geometry to the specified render context.

Parameters
save(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement
Parameters
Return type

QDomElement

setFillSymbol(self, symbol: QgsFillSymbol)

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

Ownership of symbol is transferred to the renderer.

See also

fillSymbol()

Parameters

symbol (QgsFillSymbol) –

startRender(self, context: QgsPointCloudRenderContext)
Parameters

context (QgsPointCloudRenderContext) –

stopRender(self, context: QgsPointCloudRenderContext)
Parameters

context (QgsPointCloudRenderContext) –

type(self) str
Return type

str