QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
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
20{
21 mTemporalRange = range;
22}
23
25{
26 return mTemporalRange;
27}
28
30{
31 return mTemporalRange.begin().isValid() || mTemporalRange.end().isValid();
32}
33
35{
36 return mZRange;
37}
38
40{
41 mZRange = range;
42}
QgsRange which stores a range of double values.
Definition qgsrange.h:231
bool isTemporal() const
Returns true if the temporal range setting is enabled.
void setTemporalRange(const QgsDateTimeRange &range)
Set datetime range to be used with the identify action.
void setZRange(const QgsDoubleRange &range)
Sets the range of z-values to identify within.
const QgsDateTimeRange & temporalRange() const
Returns the datetime range to be used with the identify action.
QgsDoubleRange zRange() const
Returns the range of z-values to identify within, or an infinite range if no filtering by z should be...
T begin() const
Returns the beginning of the range.
Definition qgsrange.h:444
T end() const
Returns the upper bound of the range.
Definition qgsrange.h:451