QGIS API Documentation
4.3.0-Master (1c7cf7431bd)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgstemporalrangeobject.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgstemporalrangeobject.h
3
---------------
4
begin : January 2020
5
copyright : (C) 2020 by Samweli Mwakisambwe
6
email : samweli at kartoza dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
19
#ifndef QGSTEMPORALRANGEOBJECT_H
20
#define QGSTEMPORALRANGEOBJECT_H
21
22
#include "qgis_core.h"
23
#include "
qgis_sip.h
"
24
#include "
qgsrange.h
"
25
33
class
CORE_EXPORT
QgsTemporalRangeObject
34
{
35
public
:
41
QgsTemporalRangeObject
(
bool
enabled =
false
);
42
43
virtual
~QgsTemporalRangeObject
() =
default
;
44
51
void
setIsTemporal
(
bool
enabled );
52
60
bool
isTemporal
()
const
;
61
72
void
setTemporalRange
(
const
QgsDateTimeRange
&range );
73
81
const
QgsDateTimeRange
&
temporalRange
()
const
;
82
83
private
:
85
bool
mTemporal =
false
;
86
88
QgsDateTimeRange
mDateTimeRange;
89
};
90
91
#endif
// QGSTEMPORALRANGEOBJECT_H
QgsTemporalRangeObject::temporalRange
const QgsDateTimeRange & temporalRange() const
Returns the datetime range for the object.
Definition
qgstemporalrangeobject.cpp:42
QgsTemporalRangeObject::QgsTemporalRangeObject
QgsTemporalRangeObject(bool enabled=false)
Constructor QgsTemporalRangeObject.
Definition
qgstemporalrangeobject.cpp:20
QgsTemporalRangeObject::isTemporal
bool isTemporal() const
Returns true if the object's temporal range is enabled, and the object will be filtered when renderin...
Definition
qgstemporalrangeobject.cpp:29
QgsTemporalRangeObject::setIsTemporal
void setIsTemporal(bool enabled)
Sets whether the temporal range is enabled (i.e.
Definition
qgstemporalrangeobject.cpp:24
QgsTemporalRangeObject::~QgsTemporalRangeObject
virtual ~QgsTemporalRangeObject()=default
QgsTemporalRangeObject::setTemporalRange
void setTemporalRange(const QgsDateTimeRange &range)
Sets the temporal range for the object.
Definition
qgstemporalrangeobject.cpp:34
qgis_sip.h
qgsrange.h
QgsDateTimeRange
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.
Definition
qgsrange.h:764
Generated on
for QGIS API Documentation by
1.17.0