QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
qgstiledscenerequest.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstiledscenerequest.h
3 --------------------
4 begin : June 2023
5 copyright : (C) 2023 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ******************************************************************
8 ***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19#ifndef QGSTILEDSCENEREQUEST_H
20#define QGSTILEDSCENEREQUEST_H
21
22#include "qgis_core.h"
23#include "qgis.h"
26#include "qgsorientedbox3d.h"
27
28class QgsFeedback;
29
37class CORE_EXPORT QgsTiledSceneRequest
38{
39 public:
40
42
48 void setFlags( Qgis::TiledSceneRequestFlags flags ) { mFlags = flags; }
49
55 Qgis::TiledSceneRequestFlags flags() const { return mFlags; }
56
64 QgsOrientedBox3D filterBox() const { return mFilterBox; }
65
73 void setFilterBox( const QgsOrientedBox3D &box ) { mFilterBox = box; }
74
83 double requiredGeometricError() const { return mRequiredGeometricError; }
84
93 void setRequiredGeometricError( double error ) { mRequiredGeometricError = error; }
94
104 void setFeedback( QgsFeedback *feedback );
105
112 QgsFeedback *feedback() const;
113
121 long long parentTileId() const { return mParentTileId; }
122
130 void setParentTileId( long long id ) { mParentTileId = id; }
131
132 private:
133
135 QgsOrientedBox3D mFilterBox;
136
137 QgsFeedback *mFeedback = nullptr;
138 double mRequiredGeometricError = 0;
139 long long mParentTileId = -1;
140};
141
142
143#endif // QGSTILEDSCENEREQUEST_H
QFlags< TiledSceneRequestFlag > TiledSceneRequestFlags
Flags which control how tiled scene requests behave.
Definition qgis.h:5289
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Definition qgsfeedback.h:44
Represents a oriented (rotated) box in 3 dimensions.
Tiled scene data request.
QgsOrientedBox3D filterBox() const
Returns the box from which data will be taken.
void setParentTileId(long long id)
Sets the parent tile id, if filtering is to be limited to children of a specific tile.
void setFilterBox(const QgsOrientedBox3D &box)
Sets the box from which data will be taken.
void setFlags(Qgis::TiledSceneRequestFlags flags)
Sets flags that affect how tiles will be fetched.
long long parentTileId() const
Returns the parent tile ID, if filtering is limited to children of a specific tile.
double requiredGeometricError() const
Returns the required geometric error threshold for the returned tiles, in meters.
Qgis::TiledSceneRequestFlags flags() const
Returns the flags which affect how tiles are fetched.
void setRequiredGeometricError(double error)
Sets the required geometric error threshold for the returned tiles, in meters.