QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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 QgsIdentifyContext() = default;
34
41 void setTemporalRange( const QgsDateTimeRange &range );
42
49 const QgsDateTimeRange &temporalRange() const;
50
54 bool isTemporal() const;
55
63 QgsDoubleRange zRange() const;
64
73 void setZRange( const QgsDoubleRange &range );
74
75 private:
76 QgsDateTimeRange mTemporalRange;
77 QgsDoubleRange mZRange;
78};
79
80#endif // QGSEXPRESSIONCONTEXT_H
QgsRange which stores a range of double values.
Definition qgsrange.h:217
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:705