QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
Loading...
Searching...
No Matches
qgspointcloudblockrequest.h
Go to the documentation of this file.
1/***************************************************************************
2 qgspointcloudblockrequest.h
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#ifndef QGSPOINTCLOUDBLOCKREQUEST_H
19#define QGSPOINTCLOUDBLOCKREQUEST_H
20
21#include "qgspointcloudindex.h"
23
24#include <QObject>
25
26#define SIP_NO_FILE
27
36class CORE_EXPORT QgsPointCloudBlockRequest : public QObject
37{
38 Q_OBJECT
39 public:
45 const QgsPointCloudNodeId &node,
46 const QString &Uri,
47 const QgsPointCloudAttributeCollection &attributes,
48 const QgsPointCloudAttributeCollection &requestedAttributes,
49 const QgsVector3D &scale,
50 const QgsVector3D &offset,
51 const QgsPointCloudExpression &filterExpression,
52 const QgsRectangle &filterRect
53 );
54
55
57
61 std::unique_ptr<QgsPointCloudBlock> takeBlock();
62
64 QString errorStr() const;
65
66 signals:
68 void finished();
69
70 protected:
72 QString mUri;
75 std::unique_ptr<QgsTileDownloadManagerReply> mTileDownloadManagerReply = nullptr;
76 std::unique_ptr<QgsPointCloudBlock> mBlock;
77 QString mErrorStr;
79 QgsPointCloudExpression mFilterExpression;
81};
82
83#endif // QGSPOINTCLOUDBLOCKREQUEST_H
A collection of point cloud attributes.
QgsPointCloudAttributeCollection mRequestedAttributes
std::unique_ptr< QgsTileDownloadManagerReply > mTileDownloadManagerReply
QgsPointCloudAttributeCollection mAttributes
std::unique_ptr< QgsPointCloudBlock > mBlock
QgsPointCloudExpression mFilterExpression
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
void finished()
Emitted when the request processing has finished.
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