QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
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}
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.
const QgsDateTimeRange & temporalRange() const
Returns the datetime range to be used with the identify action.
T begin() const
Returns the beginning of the range.
Definition qgsrange.h:390
T end() const
Returns the upper bound of the range.
Definition qgsrange.h:397