QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
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
19void QgsIdentifyContext::setTemporalRange( const QgsDateTimeRange &range )
20{
21 mTemporalRange = range;
22}
23
24const QgsDateTimeRange &QgsIdentifyContext::temporalRange() const
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.