QGIS API Documentation
3.14.0-Pi (9f7028fd23)
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
QgsMapLayerTemporalProperties::QgsMapLayerTemporalProperties
( QObject *parent,
bool
enabled )
21
:
QgsTemporalProperty
( parent, enabled )
22
{
23
}
24
25
bool
QgsMapLayerTemporalProperties::isVisibleInTemporalRange
(
const
QgsDateTimeRange & )
const
26
{
27
return
true
;
28
}
29
30
QgsDateTimeRange
QgsMapLayerTemporalProperties::calculateTemporalExtent
(
QgsMapLayer
* )
const
31
{
32
return
QgsDateTimeRange();
33
}
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:30
QgsMapLayerTemporalProperties::QgsMapLayerTemporalProperties
QgsMapLayerTemporalProperties(QObject *parent, bool enabled=false)
Constructor for QgsMapLayerTemporalProperties, with the specified parent object.
Definition:
qgsmaplayertemporalproperties.cpp:20
qgsmaplayertemporalproperties.h
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:25
QgsTemporalProperty
Definition:
qgstemporalproperty.h:35
QgsMapLayer
Definition:
qgsmaplayer.h:81
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17