19#ifndef QGSRASTERLAYERTEMPORALPROPERTIES_H
20#define QGSRASTERLAYERTEMPORALPROPERTIES_H
119 QMap<int, QgsDateTimeRange> fixedRangePerBand()
const;
129 void setFixedRangePerBand(
const QMap<int, QgsDateTimeRange> &ranges );
155 int bandNumber()
const;
164 void setBandNumber(
int number );
174 QDateTime temporalRepresentationOffset()
const;
184 void setTemporalRepresentationOffset(
const QDateTime &offset );
194 const QgsInterval &temporalRepresentationScale()
const;
204 void setTemporalRepresentationScale(
const QgsInterval &scale );
223 QMap< int, QgsDateTimeRange > mRangePerBand;
227 QDateTime mTemporalRepresentationOffset;
TemporalIntervalMatchMethod
Method to use when resolving a temporal range to a data provider layer or band.
@ MatchUsingWholeRange
Use an exact match to the whole temporal range.
RasterTemporalMode
Raster layer temporal modes.
@ FixedTemporalRange
Mode when temporal properties have fixed start and end datetimes.
Base class for handling properties relating to a data provider's temporal capabilities.
A representation of the interval between two datetime values.
Base class for storage of map layer temporal properties.
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.
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.
Implementation of map layer temporal properties for raster layers.
Represents a raster layer.
The class is used as a container of context for various read/write operations on other objects.
virtual QgsTemporalProperty::Flags flags() const
Returns flags associated to the temporal property.