QGIS API Documentation
4.3.0-Master (9dce731a7a1)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
tiledscene
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"
24
#include "
qgscoordinatereferencesystem.h
"
25
#include "
qgscoordinatetransformcontext.h
"
26
#include "
qgsorientedbox3d.h
"
27
28
class
QgsFeedback
;
29
37
class
CORE_EXPORT
QgsTiledSceneRequest
38
{
39
public
:
40
QgsTiledSceneRequest
();
41
47
void
setFlags
(
Qgis::TiledSceneRequestFlags
flags
) { mFlags =
flags
; }
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
:
132
Qgis::TiledSceneRequestFlags
mFlags;
133
QgsOrientedBox3D
mFilterBox;
134
135
QgsFeedback
*mFeedback =
nullptr
;
136
double
mRequiredGeometricError = 0;
137
long
long
mParentTileId = -1;
138
};
139
140
141
#endif
// QGSTILEDSCENEREQUEST_H
Qgis::TiledSceneRequestFlags
QFlags< TiledSceneRequestFlag > TiledSceneRequestFlags
Flags which control how tiled scene requests behave.
Definition
qgis.h:6523
QgsFeedback
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Definition
qgsfeedback.h:44
QgsOrientedBox3D
Represents a oriented (rotated) box in 3 dimensions.
Definition
qgsorientedbox3d.h:48
QgsTiledSceneRequest::filterBox
QgsOrientedBox3D filterBox() const
Returns the box from which data will be taken.
Definition
qgstiledscenerequest.h:63
QgsTiledSceneRequest::setParentTileId
void setParentTileId(long long id)
Sets the parent tile id, if filtering is to be limited to children of a specific tile.
Definition
qgstiledscenerequest.h:129
QgsTiledSceneRequest::setFilterBox
void setFilterBox(const QgsOrientedBox3D &box)
Sets the box from which data will be taken.
Definition
qgstiledscenerequest.h:72
QgsTiledSceneRequest::setFlags
void setFlags(Qgis::TiledSceneRequestFlags flags)
Sets flags that affect how tiles will be fetched.
Definition
qgstiledscenerequest.h:47
QgsTiledSceneRequest::parentTileId
long long parentTileId() const
Returns the parent tile ID, if filtering is limited to children of a specific tile.
Definition
qgstiledscenerequest.h:120
QgsTiledSceneRequest::QgsTiledSceneRequest
QgsTiledSceneRequest()
QgsTiledSceneRequest::requiredGeometricError
double requiredGeometricError() const
Returns the required geometric error threshold for the returned tiles, in meters.
Definition
qgstiledscenerequest.h:82
QgsTiledSceneRequest::flags
Qgis::TiledSceneRequestFlags flags() const
Returns the flags which affect how tiles are fetched.
Definition
qgstiledscenerequest.h:54
QgsTiledSceneRequest::setRequiredGeometricError
void setRequiredGeometricError(double error)
Sets the required geometric error threshold for the returned tiles, in meters.
Definition
qgstiledscenerequest.h:92
qgis.h
qgscoordinatereferencesystem.h
qgscoordinatetransformcontext.h
qgsorientedbox3d.h
Generated on
for QGIS API Documentation by
1.17.0