QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
19 #ifndef QGSVECTORLAYERTEMPORALPROPERTIES_H
20 #define QGSVECTORLAYERTEMPORALPROPERTIES_H
22 #include "qgis_core.h"
119 QgsTemporalProperty::Flags
flags()
const override;
131 void setFixedTemporalRange(
const QgsDateTimeRange &range );
141 const QgsDateTimeRange &fixedTemporalRange()
const;
153 QString startField()
const;
165 void setStartField(
const QString &
field );
174 QString endField()
const;
183 void setEndField(
const QString &
field );
194 QString startExpression()
const;
205 void setStartExpression(
const QString &expression );
216 QString endExpression()
const;
227 void setEndExpression(
const QString &endExpression );
241 QString durationField()
const;
255 void setDurationField(
const QString &
field );
282 double fixedDuration()
const;
295 void setFixedDuration(
double duration );
306 bool accumulateFeatures()
const;
317 void setAccumulateFeatures(
bool accumulate );
337 void guessDefaultsFromFields(
const QgsFields &fields );
352 QgsDateTimeRange mFixedRange;
354 QString mStartFieldName;
355 QString mEndFieldName;
356 QString mDurationFieldName;
359 double mFixedDuration = 0;
361 bool mAccumulateFeatures =
false;
363 QString mStartExpression;
364 QString mEndExpression;
368 #endif // QGSVECTORLAYERTEMPORALPROPERTIES_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().
The class is used as a container of context for various read/write operations on other objects.
Container of fields for a vector layer.
VectorTemporalMode
Vector layer temporal feature modes.
virtual QgsDateTimeRange calculateTemporalExtent(QgsMapLayer *layer) const
Attempts to calculate the overall temporal extent for the specified layer, using the settings defined...
TemporalUnit
Temporal units.
virtual bool readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads temporal properties from a DOM element previously written by writeXml().
Base class for handling properties relating to a data provider's temporal capabilities.
virtual bool isVisibleInTemporalRange(const QgsDateTimeRange &range) const
Returns true if the layer should be visible and rendered for the specified time range.
Implementation of map layer temporal properties for vector layers.
Base class for storage of map layer temporal properties.
Encapsulates the context in which a QgsVectorLayer's temporal capabilities will be applied.
@ IncludeBeginExcludeEnd
Default mode: include the Begin limit, but exclude the End limit.
@ TemporalMinutes
Minutes.
Represents a vector layer which manages a vector based data sets.
Base class for all map layer types. This is the base class for all map layer types (vector,...
virtual void setDefaultsFromDataProviderTemporalCapabilities(const QgsDataProviderTemporalCapabilities *capabilities)=0
Sets the layers temporal settings to appropriate defaults based on a provider's temporal capabilities...
VectorTemporalLimitMode
Mode for the handling of the limits of the filtering timeframe for vector features.