QGIS API Documentation  3.18.1-Zürich (202f1bf7e5)
qgspointcloudblock.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgspointcloudblock.cpp
3  -----------------------
4  begin : October 2020
5  copyright : (C) 2020 by Peter Petrik
6  email : zilolv at gmail dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "qgis.h"
19 #include "qgspointcloudblock.h"
20 #include "qgspointcloudattribute.h"
21 
22 
24  int count,
25  const QgsPointCloudAttributeCollection &attributes,
26  const QByteArray &data
27 )
28  : mPointCount( count )
29  , mAttributes( attributes )
30  , mStorage( data )
31 {
32 }
33 
35 
36 const char *QgsPointCloudBlock::data() const
37 {
38  return mStorage.data();
39 }
40 
42 {
43  return mPointCount;
44 }
45 
47 {
48  return mAttributes;
49 }
Collection of point cloud attributes.
QgsPointCloudBlock(int count, const QgsPointCloudAttributeCollection &attributes, const QByteArray &data)
Ctor.
~QgsPointCloudBlock()
Dtor.
const char * data() const
Returns raw pointer to data.
QgsPointCloudAttributeCollection attributes() const
Returns the attributes that are stored in the data block, along with their size.
int pointCount() const
Returns number of points that are stored in the block.