QGIS API Documentation  3.24.2-Tisler (13c1a02865)
qgspointcloudblock.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgspointcloudblock.h
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 #ifndef QGSPOINTCLOUDBLOCK_H
19 #define QGSPOINTCLOUDBLOCK_H
20 
21 #include "qgis.h"
22 #include "qgis_core.h"
23 #include <QPair>
24 #include <QString>
25 #include <QVector>
26 #include <QByteArray>
27 
28 #include "qgspointcloudattribute.h"
29 
38 class CORE_EXPORT QgsPointCloudBlock
39 {
40  public:
42  QgsPointCloudBlock( int count,
43  const QgsPointCloudAttributeCollection &attributes,
44  const QByteArray &data, const QgsVector3D &scale, const QgsVector3D &offset );
46  virtual ~QgsPointCloudBlock() = default;
47 
49  const char *data() const;
50 
52  int pointCount() const;
53 
55  QgsPointCloudAttributeCollection attributes() const;
56 
58  QgsVector3D scale() const;
59 
61  QgsVector3D offset() const;
62  private:
63  int mPointCount;
65  QByteArray mStorage;
66  QgsVector3D mScale, mOffset;
67 };
68 
69 
70 #endif // QGSPOINTCLOUDBLOCK_H
Collection of point cloud attributes.
Base class for storing raw data from point cloud nodes.
virtual ~QgsPointCloudBlock()=default
Dtor.