QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
19 #ifndef QGSRASTERLAYERTEMPORALPROPERTIES_H
20 #define QGSRASTERLAYERTEMPORALPROPERTIES_H
22 #include "qgis_core.h"
56 ModeFixedTemporalRange = 0,
57 ModeTemporalRangeFromDataProvider = 1,
65 TemporalMode mode()
const;
72 void setMode( TemporalMode mode );
77 QgsTemporalProperty::Flags
flags()
const override;
105 void setFixedTemporalRange(
const QgsDateTimeRange &range );
115 const QgsDateTimeRange &fixedTemporalRange()
const;
126 TemporalMode mMode = ModeFixedTemporalRange;
132 QgsDateTimeRange mFixedRange;
135 #endif // QGSRASTERLAYERTEMPORALPROPERTIES_H
virtual QgsTemporalProperty::Flags flags() const
Returns flags associated to the temporal property.
virtual QDomElement writeXml(QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context)=0
Writes the properties to a DOM element, to be used later with readXml().
TemporalMode
Mode of the raster temporal properties.
IntervalHandlingMethod
Method to use when resolving a temporal range to a data provider layer or band.
virtual QgsDateTimeRange calculateTemporalExtent(QgsMapLayer *layer) const
Attempts to calculate the overall temporal extent for the specified layer, using the settings defined...
@ MatchUsingWholeRange
Use an exact match to the whole temporal range.
virtual bool readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads temporal properties from a DOM element previously written by writeXml().
virtual bool isVisibleInTemporalRange(const QgsDateTimeRange &range) const
Returns true if the layer should be visible and rendered for the specified time range.
virtual void setDefaultsFromDataProviderTemporalCapabilities(const QgsDataProviderTemporalCapabilities *capabilities)=0
Sets the layers temporal settings to appropriate defaults based on a provider's temporal capabilities...