Class: QgsPointCloudBlock

Base class for storing raw data from point cloud nodes.

Note

The API is considered EXPERIMENTAL and can be changed without a notice

Added in version 3.18.

class qgis.core.QgsPointCloudBlock[source]

Bases: object

__init__(count: int, attributes: QgsPointCloudAttributeCollection, data: QByteArray | bytes | bytearray, scale: QgsVector3D, offset: QgsVector3D)

Ctor

Parameters:
__init__(a0: QgsPointCloudBlock)
Parameters:

a0 (QgsPointCloudBlock)

attributes(self) QgsPointCloudAttributeCollection[source]

Returns the attributes that are stored in the data block, along with their size

Return type:

QgsPointCloudAttributeCollection

clone(self) QgsPointCloudBlock | None[source]

Clones the QgsPointCloudBlock returning a new copy. Caller takes ownership of the returned object.

Added in version 3.36.

Return type:

Optional[QgsPointCloudBlock]

data(self) str | None[source]

Returns raw pointer to data

Return type:

Optional[str]

offset(self) QgsVector3D[source]

Returns the custom offset of the block.

Return type:

QgsVector3D

pointCount(self) int[source]

Returns number of points that are stored in the block

Return type:

int

pointRecordSize(self) int[source]

Returns the total size of each individual point record.

Added in version 3.26.

Return type:

int

scale(self) QgsVector3D[source]

Returns the custom scale of the block.

Return type:

QgsVector3D

setPointCount(self, size: int)[source]

Changes the number of points in the block.

This is used in order to remove all points after point size.

If a size larger than pointCount() is used, data for the new points will be uninitialized.

Added in version 3.26.

Parameters:

size (int)