QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
pointcloud
qgspointcloudblockrequest.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgspointcloudblockrequest.cpp
3
--------------------
4
begin : March 2021
5
copyright : (C) 2021 by Belgacem Nedjima
6
email : belgacem dot nedjima 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 "
qgspointcloudblockrequest.h
"
19
20
#include "moc_qgspointcloudblockrequest.cpp"
21
22
//
23
// QgsPointCloudBlockRequest
24
//
25
27
28
QgsPointCloudBlockRequest::QgsPointCloudBlockRequest
(
29
QgsPointCloudNodeId
node,
30
const
QString &uri,
31
const
QgsPointCloudAttributeCollection
&attributes,
32
const
QgsPointCloudAttributeCollection
&requestedAttributes,
33
const
QgsVector3D
&scale,
34
const
QgsVector3D
&offset,
35
const
QgsPointCloudExpression &filterExpression,
36
const
QgsRectangle
&filterRect
37
)
38
: mNode( node )
39
, mUri( uri )
40
, mAttributes( attributes )
41
, mRequestedAttributes( requestedAttributes )
42
, mScale( scale )
43
, mOffset( offset )
44
, mFilterExpression( filterExpression )
45
, mFilterRect( filterRect )
46
{}
47
48
QgsPointCloudBlockRequest::~QgsPointCloudBlockRequest
() =
default
;
49
50
std::unique_ptr<QgsPointCloudBlock>
QgsPointCloudBlockRequest::takeBlock
()
51
{
52
return
std::move(
mBlock
);
53
}
54
55
QString
QgsPointCloudBlockRequest::errorStr
()
const
56
{
57
return
mErrorStr
;
58
}
59
QgsPointCloudAttributeCollection
A collection of point cloud attributes.
Definition
qgspointcloudattribute.h:157
QgsPointCloudBlockRequest::QgsPointCloudBlockRequest
QgsPointCloudBlockRequest(QgsPointCloudNodeId node, const QString &Uri, const QgsPointCloudAttributeCollection &attributes, const QgsPointCloudAttributeCollection &requestedAttributes, const QgsVector3D &scale, const QgsVector3D &offset, const QgsPointCloudExpression &filterExpression, const QgsRectangle &filterRect)
QgsPointCloudBlockRequest constructor Note: It is the responsablitiy of the caller to delete the bloc...
QgsPointCloudBlockRequest::mBlock
std::unique_ptr< QgsPointCloudBlock > mBlock
Definition
qgspointcloudblockrequest.h:76
QgsPointCloudBlockRequest::mErrorStr
QString mErrorStr
Definition
qgspointcloudblockrequest.h:77
QgsPointCloudBlockRequest::errorStr
QString errorStr() const
Returns the error message string of the request.
QgsPointCloudBlockRequest::~QgsPointCloudBlockRequest
~QgsPointCloudBlockRequest() override=0
QgsPointCloudBlockRequest::takeBlock
std::unique_ptr< QgsPointCloudBlock > takeBlock()
Returns the requested block.
QgsPointCloudNodeId
Represents an indexed point cloud node's position in octree.
Definition
qgspointcloudindex.h:56
QgsRectangle
A rectangle specified with double values.
Definition
qgsrectangle.h:47
QgsVector3D
A 3D vector (similar to QVector3D) with the difference that it uses double precision instead of singl...
Definition
qgsvector3d.h:33
qgspointcloudblockrequest.h
Generated on
for QGIS API Documentation by
1.17.0