QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsPointCloudBlock Class Reference

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.
 
virtual ~QgsPointCloudBlock ()=default
 
QgsPointCloudAttributeCollection attributes () const
 Returns the attributes that are stored in the data block, along with their size.
 
QgsPointCloudBlockclone () const
 Clones the QgsPointCloudBlock returning a new copy.
 
const char * data () const
 Returns raw pointer to data.
 
QgsVector3D offset () const
 Returns the custom offset of the block.
 
int pointCount () const
 Returns number of points that are stored in the block.
 
int pointRecordSize () const
 Returns the total size of each individual point record.
 
QgsVector3D scale () const
 Returns the custom scale of the block.
 
void setPointCount (int size)
 Changes the number of points in the block.
 

Detailed Description

Base class for storing raw data from point cloud nodes.

Note
The API is considered EXPERIMENTAL and can be changed without a notice
Since
QGIS 3.18

Definition at line 38 of file qgspointcloudblock.h.

Constructor & Destructor Documentation

◆ QgsPointCloudBlock()

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.

◆ ~QgsPointCloudBlock()

virtual QgsPointCloudBlock::~QgsPointCloudBlock ( )
virtualdefault

Member Function Documentation

◆ attributes()

QgsPointCloudAttributeCollection QgsPointCloudBlock::attributes ( ) const

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

Definition at line 52 of file qgspointcloudblock.cpp.

◆ clone()

QgsPointCloudBlock * QgsPointCloudBlock::clone ( ) const

Clones the QgsPointCloudBlock returning a new copy.

Caller takes ownership of the returned object.

Since
QGIS 3.36

Definition at line 37 of file qgspointcloudblock.cpp.

◆ data()

const char * QgsPointCloudBlock::data ( ) const

Returns raw pointer to data.

Definition at line 42 of file qgspointcloudblock.cpp.

◆ offset()

QgsVector3D QgsPointCloudBlock::offset ( ) const

Returns the custom offset of the block.

Definition at line 62 of file qgspointcloudblock.cpp.

◆ pointCount()

int QgsPointCloudBlock::pointCount ( ) const

Returns number of points that are stored in the block.

Definition at line 47 of file qgspointcloudblock.cpp.

◆ pointRecordSize()

int QgsPointCloudBlock::pointRecordSize ( ) const
inline

Returns the total size of each individual point record.

Since
QGIS 3.26

Definition at line 66 of file qgspointcloudblock.h.

◆ scale()

QgsVector3D QgsPointCloudBlock::scale ( ) const

Returns the custom scale of the block.

Definition at line 57 of file qgspointcloudblock.cpp.

◆ setPointCount()

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.

Since
QGIS 3.26

Definition at line 67 of file qgspointcloudblock.cpp.


The documentation for this class was generated from the following files: