QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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.h"
23#include "qgis_core.h"
26#include "qgsorientedbox3d.h"
27
28class QgsFeedback;
29
37class CORE_EXPORT QgsTiledSceneRequest
38{
39 public:
41
48
54 Qgis::TiledSceneRequestFlags flags() const { return mFlags; }
55
63 QgsOrientedBox3D filterBox() const { return mFilterBox; }
64
72 void setFilterBox( const QgsOrientedBox3D &box ) { mFilterBox = box; }
73
82 double requiredGeometricError() const { return mRequiredGeometricError; }
83
92 void setRequiredGeometricError( double error ) { mRequiredGeometricError = error; }
93
103 void setFeedback( QgsFeedback *feedback );
104
111 QgsFeedback *feedback() const;
112
120 long long parentTileId() const { return mParentTileId; }
121
129 void setParentTileId( long long id ) { mParentTileId = id; }
130
131 private:
133 QgsOrientedBox3D mFilterBox;
134
135 QgsFeedback *mFeedback = nullptr;
136 double mRequiredGeometricError = 0;
137 long long mParentTileId = -1;
138};
139
140
141#endif // QGSTILEDSCENEREQUEST_H
QFlags< TiledSceneRequestFlag > TiledSceneRequestFlags
Flags which control how tiled scene requests behave.
Definition qgis.h:6047
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.
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.