QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
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
19
20#include "moc_qgspointcloudblockrequest.cpp"
21
22//
23// QgsPointCloudBlockRequest
24//
25
27
29 const QgsPointCloudAttributeCollection &attributes, const QgsPointCloudAttributeCollection &requestedAttributes,
30 const QgsVector3D &scale, const QgsVector3D &offset, const QgsPointCloudExpression &filterExpression, const QgsRectangle &filterRect )
31 : mNode( node )
32 , mUri( uri )
33 , mAttributes( attributes )
34 , mRequestedAttributes( requestedAttributes )
35 , mScale( scale )
36 , mOffset( offset )
37 , mFilterExpression( filterExpression )
38 , mFilterRect( filterRect )
39{
40}
41
43
44std::unique_ptr<QgsPointCloudBlock> QgsPointCloudBlockRequest::takeBlock()
45{
46 return std::move( mBlock );
47}
48
50{
51 return mErrorStr;
52}
53
A collection of point cloud attributes.
std::unique_ptr< QgsPointCloudBlock > mBlock
QString errorStr() const
Returns the error message string of the request.
QgsPointCloudBlockRequest(const 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() override=0
std::unique_ptr< QgsPointCloudBlock > takeBlock()
Returns the requested block.
Represents an indexed point cloud node's position in octree.
A rectangle specified with double values.
A 3D vector (similar to QVector3D) with the difference that it uses double precision instead of singl...
Definition qgsvector3d.h:30