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.
Methods
Returns the attributes that are stored in the data block, along with their size |
|
Clones the |
|
Returns raw pointer to data |
|
Returns the custom offset of the block. |
|
Returns number of points that are stored in the block |
|
Returns the total size of each individual point record. |
|
Returns the custom scale of the block. |
|
Changes the number of points in the block. |
- class qgis.core.QgsPointCloudBlock[source]¶
Bases:
object
- __init__(count: int, attributes: QgsPointCloudAttributeCollection, data: QByteArray | bytes | bytearray, scale: QgsVector3D, offset: QgsVector3D)
Ctor
- Parameters:
count (int)
attributes (QgsPointCloudAttributeCollection)
data (Union[QByteArray, bytes, bytearray])
scale (QgsVector3D)
offset (QgsVector3D)
- __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:
- 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]
- offset(self) QgsVector3D [source]¶
Returns the custom offset of the block.
- Return type:
- 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:
- 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 thanpointCount()
is used, data for the new points will be uninitialized.Added in version 3.26.
- Parameters:
size (int)