QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgsidentifycontext.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsidentifycontext.cpp
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
16
#include "
qgsidentifycontext.h
"
17
18
void
QgsIdentifyContext::setTemporalRange
(
const
QgsDateTimeRange
&range )
19
{
20
mTemporalRange = range;
21
}
22
23
const
QgsDateTimeRange
&
QgsIdentifyContext::temporalRange
()
const
24
{
25
return
mTemporalRange;
26
}
27
28
bool
QgsIdentifyContext::isTemporal
()
const
29
{
30
return
mTemporalRange.
begin
().isValid() || mTemporalRange.end().isValid();
31
}
32
33
QgsDoubleRange
QgsIdentifyContext::zRange
()
const
34
{
35
return
mZRange;
36
}
37
38
void
QgsIdentifyContext::setZRange
(
const
QgsDoubleRange
&range )
39
{
40
mZRange = range;
41
}
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::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
QgsTemporalRange::begin
T begin() const
Returns the beginning of the range.
Definition
qgsrange.h:408
qgsidentifycontext.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