QGIS API Documentation 3.99.0-Master (21b3aa880ba)
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 <memory>
22
23#include "qgsgeometry.h"
24#include "qgspointcloudindex.h"
25#include "qgsrange.h"
26
27#include <QString>
28
30#define SIP_NO_FILE
31
32
40class QgsPointCloudSubIndex
41{
42 public:
44 QgsPointCloudSubIndex( const QString &uri, const QgsGeometry &geometry, const QgsRectangle &extent, const QgsDoubleRange &zRange, qint64 count )
45 : mUri( uri )
46 , mExtent( extent )
47 , mGeometry( geometry )
48 , mPointCount( count )
49 , mZRange( zRange )
50 {
51 }
52
54 QgsPointCloudIndex index() const { return mIndex; }
55
57 void setIndex( QgsPointCloudIndex index ) { mIndex = index; }
58
60 QString uri() const { return mUri; }
61
63 QgsRectangle extent() const { return mExtent; }
64
66 QgsDoubleRange zRange() const { return mZRange; }
67
72 QgsGeometry polygonBounds() const { return mGeometry; }
73
75 qint64 pointCount() const { return mPointCount; }
76
77 private:
78 QgsPointCloudIndex mIndex = QgsPointCloudIndex( nullptr );
79 QString mUri;
80 QgsRectangle mExtent;
81 QgsGeometry mGeometry;
82 qint64 mPointCount = 0;
83 QgsDoubleRange mZRange;
84};
85
87#endif // QGSPOINTCLOUDSUBINDEX_H