QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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 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
49
50std::unique_ptr<QgsPointCloudBlock> QgsPointCloudBlockRequest::takeBlock()
51{
52 return std::move( mBlock );
53}
54
56{
57 return mErrorStr;
58}
59
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:33