QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Base class for storing raw data from point cloud nodes. More...
#include <qgspointcloudblock.h>
Public Member Functions | |
QgsPointCloudBlock (int count, const QgsPointCloudAttributeCollection &attributes, const QByteArray &data, const QgsVector3D &scale, const QgsVector3D &offset) | |
Ctor. More... | |
virtual | ~QgsPointCloudBlock ()=default |
Dtor. More... | |
QgsPointCloudAttributeCollection | attributes () const |
Returns the attributes that are stored in the data block, along with their size. More... | |
const char * | data () const |
Returns raw pointer to data. More... | |
QgsVector3D | offset () const |
Returns the custom offset of the block. More... | |
int | pointCount () const |
Returns number of points that are stored in the block. More... | |
int | pointRecordSize () const |
Returns the total size of each individual point record. More... | |
QgsVector3D | scale () const |
Returns the custom scale of the block. More... | |
void | setPointCount (int size) |
Changes the number of points in the block. More... | |
Base class for storing raw data from point cloud nodes.
Definition at line 38 of file qgspointcloudblock.h.
QgsPointCloudBlock::QgsPointCloudBlock | ( | int | count, |
const QgsPointCloudAttributeCollection & | attributes, | ||
const QByteArray & | data, | ||
const QgsVector3D & | scale, | ||
const QgsVector3D & | offset | ||
) |
Ctor.
Definition at line 23 of file qgspointcloudblock.cpp.
|
virtualdefault |
Dtor.
QgsPointCloudAttributeCollection QgsPointCloudBlock::attributes | ( | ) | const |
Returns the attributes that are stored in the data block, along with their size.
Definition at line 47 of file qgspointcloudblock.cpp.
const char * QgsPointCloudBlock::data | ( | ) | const |
Returns raw pointer to data.
Definition at line 37 of file qgspointcloudblock.cpp.
QgsVector3D QgsPointCloudBlock::offset | ( | ) | const |
Returns the custom offset of the block.
Definition at line 57 of file qgspointcloudblock.cpp.
int QgsPointCloudBlock::pointCount | ( | ) | const |
Returns number of points that are stored in the block.
Definition at line 42 of file qgspointcloudblock.cpp.
|
inline |
Returns the total size of each individual point record.
Definition at line 59 of file qgspointcloudblock.h.
QgsVector3D QgsPointCloudBlock::scale | ( | ) | const |
Returns the custom scale of the block.
Definition at line 52 of file qgspointcloudblock.cpp.
void QgsPointCloudBlock::setPointCount | ( | int | size | ) |
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
Definition at line 62 of file qgspointcloudblock.cpp.