QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
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
21#include "qgsrange.h"
22
31class CORE_EXPORT QgsIdentifyContext
32{
33 public:
34
36 QgsIdentifyContext() = default;
37
44 void setTemporalRange( const QgsDateTimeRange &range );
45
52 const QgsDateTimeRange &temporalRange() const;
53
57 bool isTemporal() const;
58
66 QgsDoubleRange zRange() const;
67
76 void setZRange( const QgsDoubleRange &range );
77
78 private:
79
80 QgsDateTimeRange mTemporalRange;
81 QgsDoubleRange mZRange;
82
83};
84
85#endif // QGSEXPRESSIONCONTEXT_H
QgsRange which stores a range of double values.
Definition: qgsrange.h:231
Identify contexts are used to encapsulate the settings to be used to perform an identify action.
QgsIdentifyContext()=default
Constructor for QgsIdentifyContext.