QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsidentifycontext.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsidentifycontext.h
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#ifndef QGSIDENTIFYCONTEXT_H
16#define QGSIDENTIFYCONTEXT_H
17
18#include "qgis_core.h"
19#include "qgis_sip.h"
20#include "qgsrange.h"
21
30class CORE_EXPORT QgsIdentifyContext
31{
32 public:
33
34 QgsIdentifyContext() = default;
35
42 void setTemporalRange( const QgsDateTimeRange &range );
43
50 const QgsDateTimeRange &temporalRange() const;
51
55 bool isTemporal() const;
56
64 QgsDoubleRange zRange() const;
65
74 void setZRange( const QgsDoubleRange &range );
75
76 private:
77
78 QgsDateTimeRange mTemporalRange;
79 QgsDoubleRange mZRange;
80
81};
82
83#endif // QGSEXPRESSIONCONTEXT_H
QgsRange which stores a range of double values.
Definition qgsrange.h:233
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.
QgsIdentifyContext()=default
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...
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.
Definition qgsrange.h:761