19#ifndef QGSMAPLAYERTEMPORALPROPERTIES_H
20#define QGSMAPLAYERTEMPORALPROPERTIES_H
53 if ( qobject_cast<QgsRasterLayerTemporalProperties *>( sipCpp ) )
55 sipType = sipType_QgsRasterLayerTemporalProperties;
57 else if ( qobject_cast<QgsMeshLayerTemporalProperties *>( sipCpp ) )
59 sipType = sipType_QgsMeshLayerTemporalProperties;
61 else if ( qobject_cast<QgsVectorLayerTemporalProperties *>( sipCpp ) )
63 sipType = sipType_QgsVectorLayerTemporalProperties;
Base class for handling properties relating to a data provider's temporal capabilities.
virtual QDomElement writeXml(QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context)=0
Writes the properties to a DOM element, to be used later with readXml().
virtual QgsDateTimeRange calculateTemporalExtent(QgsMapLayer *layer) const
Attempts to calculate the overall temporal extent for the specified layer, using the settings defined...
virtual void setDefaultsFromDataProviderTemporalCapabilities(const QgsDataProviderTemporalCapabilities *capabilities)=0
Sets the layers temporal settings to appropriate defaults based on a provider's temporal capabilities...
virtual QList< QgsDateTimeRange > allTemporalRanges(QgsMapLayer *layer) const
Attempts to calculate the overall list of all temporal extents which are contained in the specified l...
virtual bool isVisibleInTemporalRange(const QgsDateTimeRange &range) const
Returns true if the layer should be visible and rendered for the specified time range.
QgsMapLayerTemporalProperties(QObject *parent, bool enabled=false)
Constructor for QgsMapLayerTemporalProperties, with the specified parent object.
virtual bool readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads temporal properties from a DOM element previously written by writeXml().
Base class for all map layer types.
A container for the context for various read/write operations on objects.
QgsTemporalProperty(QObject *parent=nullptr, bool enabled=false)
Constructor for QgsTemporalProperty, with the specified parent object.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.