QGIS API Documentation
4.3.0-Master (8c22baaae17)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgstemporalrangeobject.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgstemporalrangeobject.cpp
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
#include "
qgstemporalrangeobject.h
"
19
20
QgsTemporalRangeObject::QgsTemporalRangeObject
(
bool
enabled )
21
: mTemporal( enabled )
22
{}
23
24
void
QgsTemporalRangeObject::setIsTemporal
(
bool
enabled )
25
{
26
mTemporal = enabled;
27
}
28
29
bool
QgsTemporalRangeObject::isTemporal
()
const
30
{
31
return
mTemporal;
32
}
33
34
void
QgsTemporalRangeObject::setTemporalRange
(
const
QgsDateTimeRange
&dateTimeRange )
35
{
36
if
( !
isTemporal
() )
37
setIsTemporal
(
true
);
38
39
mDateTimeRange = dateTimeRange;
40
}
41
42
const
QgsDateTimeRange
&
QgsTemporalRangeObject::temporalRange
()
const
43
{
44
return
mDateTimeRange;
45
}
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::setTemporalRange
void setTemporalRange(const QgsDateTimeRange &range)
Sets the temporal range for the object.
Definition
qgstemporalrangeobject.cpp:34
QgsDateTimeRange
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.
Definition
qgsrange.h:764
qgstemporalrangeobject.h
Generated on
for QGIS API Documentation by
1.17.0