QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgsidentifycontext.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsidentifycontext.h
3
--------------------
4
Date : November 2020
5
Copyright : (C) 2020 by Mathieu Pellerin
6
Email : nirvn dot asia at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
#ifndef QGSIDENTIFYCONTEXT_H
16
#define QGSIDENTIFYCONTEXT_H
17
18
#include "qgis_core.h"
19
#include "
qgis_sip.h
"
20
#include "
qgsrange.h
"
21
30
class
CORE_EXPORT
QgsIdentifyContext
31
{
32
public
:
33
QgsIdentifyContext
() =
default
;
34
41
void
setTemporalRange
(
const
QgsDateTimeRange
&range );
42
49
const
QgsDateTimeRange
&
temporalRange
()
const
;
50
54
bool
isTemporal
()
const
;
55
63
QgsDoubleRange
zRange
()
const
;
64
73
void
setZRange
(
const
QgsDoubleRange
&range );
74
75
private
:
76
QgsDateTimeRange
mTemporalRange;
77
QgsDoubleRange
mZRange;
78
};
79
80
#endif
// QGSEXPRESSIONCONTEXT_H
QgsDoubleRange
QgsRange which stores a range of double values.
Definition
qgsrange.h:217
QgsIdentifyContext::isTemporal
bool isTemporal() const
Returns true if the temporal range setting is enabled.
Definition
qgsidentifycontext.cpp:28
QgsIdentifyContext::setTemporalRange
void setTemporalRange(const QgsDateTimeRange &range)
Set datetime range to be used with the identify action.
Definition
qgsidentifycontext.cpp:18
QgsIdentifyContext::setZRange
void setZRange(const QgsDoubleRange &range)
Sets the range of z-values to identify within.
Definition
qgsidentifycontext.cpp:38
QgsIdentifyContext::QgsIdentifyContext
QgsIdentifyContext()=default
QgsIdentifyContext::temporalRange
const QgsDateTimeRange & temporalRange() const
Returns the datetime range to be used with the identify action.
Definition
qgsidentifycontext.cpp:23
QgsIdentifyContext::zRange
QgsDoubleRange zRange() const
Returns the range of z-values to identify within, or an infinite range if no filtering by z should be...
Definition
qgsidentifycontext.cpp:33
qgis_sip.h
qgsrange.h
QgsDateTimeRange
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.
Definition
qgsrange.h:764
Generated on
for QGIS API Documentation by
1.17.0