18#ifndef QGSMESHLAYERTEMPORALPROPERTIES_H
19#define QGSMESHLAYERTEMPORALPROPERTIES_H
75 QgsDateTimeRange timeExtent()
const;
80 QDateTime referenceTime()
const;
108 bool isValid()
const;
117 void setIsValid(
bool isValid );
124 bool alwaysLoadReferenceTimeFromSource()
const;
133 void setAlwaysLoadReferenceTimeFromSource(
bool autoReloadFromProvider );
136 QDateTime mReferenceTime;
137 QgsDateTimeRange mTimeExtent;
140 bool mIsValid =
false;
141 bool mAlwaysLoadReferenceTimeFromSource =
false;
Base class for handling properties relating to a data provider's temporal capabilities.
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 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.
MatchingTemporalDatasetMethod
Method for selection of temporal mesh dataset from a range time.
@ FindClosestDatasetBeforeStartRangeTime
Implementation of map layer temporal properties for mesh layers.
The class is used as a container of context for various read/write operations on other objects.