QGIS API Documentation
4.3.0-Master (8c22baaae17)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgsmaplayertemporalproperties.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaplayertemporalproperties.cpp
3
---------------
4
begin : February 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 "
qgsmaplayertemporalproperties.h
"
19
20
#include "moc_qgsmaplayertemporalproperties.cpp"
21
22
QgsMapLayerTemporalProperties::QgsMapLayerTemporalProperties
( QObject *parent,
bool
enabled )
23
:
QgsTemporalProperty
( parent, enabled )
24
{}
25
26
bool
QgsMapLayerTemporalProperties::isVisibleInTemporalRange
(
const
QgsDateTimeRange
& )
const
27
{
28
return
true
;
29
}
30
31
QgsDateTimeRange
QgsMapLayerTemporalProperties::calculateTemporalExtent
(
QgsMapLayer
* )
const
32
{
33
return
QgsDateTimeRange
();
34
}
35
36
QList<QgsDateTimeRange>
QgsMapLayerTemporalProperties::allTemporalRanges
(
QgsMapLayer
* )
const
37
{
38
return
{};
39
}
QgsMapLayerTemporalProperties::calculateTemporalExtent
virtual QgsDateTimeRange calculateTemporalExtent(QgsMapLayer *layer) const
Attempts to calculate the overall temporal extent for the specified layer, using the settings defined...
Definition
qgsmaplayertemporalproperties.cpp:31
QgsMapLayerTemporalProperties::allTemporalRanges
virtual QList< QgsDateTimeRange > allTemporalRanges(QgsMapLayer *layer) const
Attempts to calculate the overall list of all temporal extents which are contained in the specified l...
Definition
qgsmaplayertemporalproperties.cpp:36
QgsMapLayerTemporalProperties::isVisibleInTemporalRange
virtual bool isVisibleInTemporalRange(const QgsDateTimeRange &range) const
Returns true if the layer should be visible and rendered for the specified time range.
Definition
qgsmaplayertemporalproperties.cpp:26
QgsMapLayerTemporalProperties::QgsMapLayerTemporalProperties
QgsMapLayerTemporalProperties(QObject *parent, bool enabled=false)
Constructor for QgsMapLayerTemporalProperties, with the specified parent object.
Definition
qgsmaplayertemporalproperties.cpp:22
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsTemporalProperty::QgsTemporalProperty
QgsTemporalProperty(QObject *parent=nullptr, bool enabled=false)
Constructor for QgsTemporalProperty, with the specified parent object.
Definition
qgstemporalproperty.cpp:23
qgsmaplayertemporalproperties.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