QGIS API Documentation 3.41.0-Master (cea29feecf2)
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#include "moc_qgspointcloudblockrequest.cpp"
20
21//
22// QgsPointCloudBlockRequest
23//
24
26
28 const QgsPointCloudAttributeCollection &attributes, const QgsPointCloudAttributeCollection &requestedAttributes,
29 const QgsVector3D &scale, const QgsVector3D &offset, const QgsPointCloudExpression &filterExpression, const QgsRectangle &filterRect )
30 : mNode( node )
31 , mUri( uri )
32 , mAttributes( attributes )
33 , mRequestedAttributes( requestedAttributes )
34 , mScale( scale )
35 , mOffset( offset )
36 , mFilterExpression( filterExpression )
37 , mFilterRect( filterRect )
38{
39}
40
42
43std::unique_ptr<QgsPointCloudBlock> QgsPointCloudBlockRequest::takeBlock()
44{
45 return std::move( mBlock );
46}
47
49{
50 return mErrorStr;
51}
52
Collection of point cloud attributes.
std::unique_ptr< QgsPointCloudBlock > mBlock
QString errorStr()
Returns the error message string of the request.
virtual ~QgsPointCloudBlockRequest()=0
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...
std::unique_ptr< QgsPointCloudBlock > takeBlock()
Returns the requested block.
Represents a indexed point cloud node's position in octree.
A rectangle specified with double values.
Class for storage of 3D vectors similar to QVector3D, with the difference that it uses double precisi...
Definition qgsvector3d.h:31