Class: QgsPointCloudRenderContext

class qgis.core.QgsPointCloudRenderContext(context: QgsRenderContext, scale: QgsVector3D, offset: QgsVector3D)

Bases: sip.wrapper

Constructor for QgsPointCloudRenderContext.

The scale and offset arguments specify the scale and offset of the layer’s int32 coordinates compared to CRS coordinates respectively.

Encapsulates the render context for a 2D point cloud rendering operation.

New in version 3.18.

Parameters
attributes(self)QgsPointCloudAttributeCollection

Returns the attributes associated with the rendered block.

See also

setAttributes()

Return type

QgsPointCloudAttributeCollection

incrementPointsRendered(self, count: int)

Increments the count of points rendered by the specified amount.

It is a point cloud renderer’s responsibility to correctly call this after rendering a block of points.

Parameters

count (int) –

offset(self)QgsVector3D

Returns the offset of the layer’s int32 coordinates compared to CRS coords.

Return type

QgsVector3D

pointRecordSize(self) → int

Returns the size of a single point record.

Return type

int

pointsRendered(self) → int

Returns the total number of points rendered.

Return type

int

renderContext(self)QgsRenderContext

Returns a reference to the context’s render context.

Return type

QgsRenderContext

scale(self)QgsVector3D

Returns the scale of the layer’s int32 coordinates compared to CRS coords.

Return type

QgsVector3D

setAttributes(self, attributes: QgsPointCloudAttributeCollection)

Sets the attributes associated with the rendered block.

See also

attributes()

Parameters

attributes (QgsPointCloudAttributeCollection) –

xOffset(self) → int

Returns the offset for the x value in a point record.

See also

yOffset()

See also

zOffset()

Return type

int

yOffset(self) → int

Returns the offset for the y value in a point record.

See also

xOffset()

See also

zOffset()

Return type

int

zOffset(self) → int

Returns the offset for the y value in a point record.

See also

xOffset()

See also

yOffset()

Return type

int