Class: QgsPointCloudBlock

class qgis.core.QgsPointCloudBlock

Bases: sip.wrapper

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.

QgsPointCloudBlock(count: int, attributes: QgsPointCloudAttributeCollection, data: Union[QByteArray, bytes, bytearray], scale: QgsVector3D, offset: QgsVector3D) Ctor

QgsPointCloudBlock(QgsPointCloudBlock)

Methods

attributes

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

clone

Clones the QgsPointCloudBlock returning a new copy.

data

Returns raw pointer to data

offset

Returns the custom offset of the block.

pointCount

Returns number of points that are stored in the block

pointRecordSize

Returns the total size of each individual point record.

scale

Returns the custom scale of the block.

setPointCount

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.

attributes(self) QgsPointCloudAttributeCollection

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

Return type:

QgsPointCloudAttributeCollection

clone(self) QgsPointCloudBlock

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

Added in version 3.36.

Return type:

QgsPointCloudBlock

data(self) str

Returns raw pointer to data

Return type:

str

offset(self) QgsVector3D

Returns the custom offset of the block.

Return type:

QgsVector3D

pointCount(self) int

Returns number of points that are stored in the block

Return type:

int

pointRecordSize(self) int

Returns the total size of each individual point record.

Added in version 3.26.

Return type:

int

scale(self) QgsVector3D

Returns the custom scale of the block.

Return type:

QgsVector3D

setPointCount(self, size: int)

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)