QGIS API Documentation 3.99.0-Master (a8f284845db)
Loading...
Searching...
No Matches
qgspointcloudsubindex.h
Go to the documentation of this file.
1/***************************************************************************
2 qgspointcloudsubindex.h
3 -----------------------
4 begin : March 2023
5 copyright : (C) 2023 by Stefanos Natsis
6 email : uclaros 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 QGSPOINTCLOUDSUBINDEX_H
19#define QGSPOINTCLOUDSUBINDEX_H
20
21#include "qgsgeometry.h"
22#include "qgspointcloudindex.h"
23#include "qgsrange.h"
24#include "qgsrectangle.h"
25
26#include <QString>
27
29
30
38class CORE_EXPORT QgsPointCloudSubIndex
39{
40 public:
42 QgsPointCloudSubIndex( const QString &uri, const QgsGeometry &geometry, const QgsRectangle &extent, const QgsDoubleRange &zRange, qint64 count )
43 : mUri( uri )
44 , mExtent( extent )
45 , mGeometry( geometry )
46 , mPointCount( count )
47 , mZRange( zRange )
48 {
49 }
50
52 QgsPointCloudIndex index() const { return mIndex; }
53
55 void setIndex( QgsPointCloudIndex index ) { mIndex = index; }
56
58 QString uri() const { return mUri; }
59
61 QgsRectangle extent() const { return mExtent; }
62
64 QgsDoubleRange zRange() const { return mZRange; }
65
70 QgsGeometry polygonBounds() const { return mGeometry; }
71
73 qint64 pointCount() const { return mPointCount; }
74
75 private:
76 QgsPointCloudIndex mIndex = QgsPointCloudIndex( nullptr );
77 QString mUri;
78 QgsRectangle mExtent;
79 QgsGeometry mGeometry;
80 qint64 mPointCount = 0;
81 QgsDoubleRange mZRange;
82};
83
85#endif // QGSPOINTCLOUDSUBINDEX_H