QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
pointcloud
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 "
qgspointcloudattribute.h
"
24
25
#include <QByteArray>
26
#include <QPair>
27
#include <QString>
28
#include <QVector>
29
38
class
CORE_EXPORT
QgsPointCloudBlock
39
{
40
public
:
42
QgsPointCloudBlock
(
int
count,
const
QgsPointCloudAttributeCollection
&
attributes
,
const
QByteArray &
data
,
const
QgsVector3D
&
scale
,
const
QgsVector3D
&
offset
);
43
44
virtual
~QgsPointCloudBlock
() =
default
;
45
51
QgsPointCloudBlock
*
clone
() const
SIP_FACTORY
;
52
54
const
char
*
data
() const;
55
57
int
pointCount
() const;
58
64
int
pointRecordSize
()
const
{
return
mRecordSize; }
65
67
QgsPointCloudAttributeCollection
attributes()
const
;
68
70
QgsVector3D
scale()
const
;
71
73
QgsVector3D
offset()
const
;
74
84
void
setPointCount(
int
size );
85
86
private
:
87
int
mPointCount = 0;
88
QgsPointCloudAttributeCollection
mAttributes;
89
int
mRecordSize = 0;
90
QByteArray mStorage;
91
QgsVector3D
mScale, mOffset;
92
};
93
94
95
#endif
// QGSPOINTCLOUDBLOCK_H
QgsPointCloudAttributeCollection
A collection of point cloud attributes.
Definition
qgspointcloudattribute.h:157
QgsPointCloudBlock::QgsPointCloudBlock
QgsPointCloudBlock(int count, const QgsPointCloudAttributeCollection &attributes, const QByteArray &data, const QgsVector3D &scale, const QgsVector3D &offset)
Ctor.
Definition
qgspointcloudblock.cpp:23
QgsPointCloudBlock::~QgsPointCloudBlock
virtual ~QgsPointCloudBlock()=default
QgsPointCloudBlock::scale
QgsVector3D scale() const
Returns the custom scale of the block.
Definition
qgspointcloudblock.cpp:52
QgsPointCloudBlock::data
const char * data() const
Returns raw pointer to data.
Definition
qgspointcloudblock.cpp:37
QgsPointCloudBlock::attributes
QgsPointCloudAttributeCollection attributes() const
Returns the attributes that are stored in the data block, along with their size.
Definition
qgspointcloudblock.cpp:47
QgsPointCloudBlock::pointCount
int pointCount() const
Returns number of points that are stored in the block.
Definition
qgspointcloudblock.cpp:42
QgsPointCloudBlock::pointRecordSize
int pointRecordSize() const
Returns the total size of each individual point record.
Definition
qgspointcloudblock.h:64
QgsPointCloudBlock::clone
QgsPointCloudBlock * clone() const
Clones the QgsPointCloudBlock returning a new copy.
Definition
qgspointcloudblock.cpp:32
QgsPointCloudBlock::offset
QgsVector3D offset() const
Returns the custom offset of the block.
Definition
qgspointcloudblock.cpp:57
QgsVector3D
A 3D vector (similar to QVector3D) with the difference that it uses double precision instead of singl...
Definition
qgsvector3d.h:33
qgis.h
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgspointcloudattribute.h
Generated on
for QGIS API Documentation by
1.17.0