QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 
19 void QgsIdentifyContext::setTemporalRange( const QgsDateTimeRange &range )
20 {
21  mTemporalRange = range;
22 }
23 
24 const QgsDateTimeRange &QgsIdentifyContext::temporalRange() const
25 {
26  return mTemporalRange;
27 }
28 
30 {
31  return mTemporalRange.begin().isValid() || mTemporalRange.end().isValid();
32 }
QgsIdentifyContext::isTemporal
bool isTemporal() const
Returns true if the temporal range setting is enabled.
Definition: qgsidentifycontext.cpp:29
QgsIdentifyContext::temporalRange
const QgsDateTimeRange & temporalRange() const
Returns the datetime range to be used with the identify action.
Definition: qgsidentifycontext.cpp:24
qgsidentifycontext.h
QgsIdentifyContext::setTemporalRange
void setTemporalRange(const QgsDateTimeRange &range)
Set datetime range to be used with the identify action.
Definition: qgsidentifycontext.cpp:19