Class: QgsPointCloudLayer3DRenderer

class qgis._3d.QgsPointCloudLayer3DRenderer

Bases: QgsAbstractPointCloud3DRenderer

3D renderer that renders all points from a point cloud layer

Added in version 3.18.

QgsPointCloudLayer3DRenderer() Takes ownership of the symbol object

Methods

clone

rtype:

Optional[QgsPointCloudLayer3DRenderer]

convertFrom2DRenderer

param renderer:

layer

Returns point cloud layer associated with the renderer

maximumScreenError

Returns the maximum screen error allowed when rendering the point cloud.

pointRenderingBudget

Returns the maximum number of points that will be rendered to the scene

readXml

param elem:

resolveReferences

param project:

setLayer

Sets point cloud layer associated with the renderer

setMaximumScreenError

Sets the maximum screen error allowed when rendering the point cloud.

setPointRenderingBudget

Sets the maximum number of points to be rendered in the scene

setShowBoundingBoxes

Sets whether bounding boxes will be visible when rendering the point cloud.

setSymbol

Sets the 3D symbol associated with the renderer.

showBoundingBoxes

Returns whether bounding boxes will be visible when rendering the point cloud.

symbol

Returns 3D symbol associated with the renderer

type

rtype:

str

writeXml

param elem:

clone(self) QgsPointCloudLayer3DRenderer | None
Return type:

Optional[QgsPointCloudLayer3DRenderer]

convertFrom2DRenderer(self, renderer: QgsPointCloudRenderer | None) bool
Parameters:

renderer (Optional[QgsPointCloudRenderer])

Return type:

bool

layer(self) QgsPointCloudLayer | None

Returns point cloud layer associated with the renderer

Return type:

Optional[QgsPointCloudLayer]

maximumScreenError(self) float

Returns the maximum screen error allowed when rendering the point cloud.

Larger values result in a faster render with less points rendered.

Return type:

float

pointRenderingBudget(self) int

Returns the maximum number of points that will be rendered to the scene

Return type:

int

readXml(self, elem: QDomElement, context: QgsReadWriteContext)
Parameters:
resolveReferences(self, project: QgsProject)
Parameters:

project (QgsProject)

setLayer(self, layer: QgsPointCloudLayer | None)

Sets point cloud layer associated with the renderer

Parameters:

layer (Optional[QgsPointCloudLayer])

setMaximumScreenError(self, error: float)

Sets the maximum screen error allowed when rendering the point cloud.

Larger values result in a faster render with less points rendered.

Parameters:

error (float)

setPointRenderingBudget(self, budget: int)

Sets the maximum number of points to be rendered in the scene

Parameters:

budget (int)

setShowBoundingBoxes(self, showBoundingBoxes: bool)

Sets whether bounding boxes will be visible when rendering the point cloud.

Parameters:

showBoundingBoxes (bool)

setSymbol(self, symbol: QgsPointCloud3DSymbol | None)

Sets the 3D symbol associated with the renderer. Ownership of symbol is transferred to the renderer.

See also

symbol()

Parameters:

symbol (Optional[QgsPointCloud3DSymbol])

showBoundingBoxes(self) bool

Returns whether bounding boxes will be visible when rendering the point cloud.

Return type:

bool

symbol(self) QgsPointCloud3DSymbol | None

Returns 3D symbol associated with the renderer

Return type:

Optional[QgsPointCloud3DSymbol]

type(self) str
Return type:

str

writeXml(self, elem: QDomElement, context: QgsReadWriteContext)
Parameters: