16#ifndef QGSTEMPORALUTILS_H
17#define QGSTEMPORALUTILS_H
64 return !years && !months && !days &&
65 !hours && !minutes && !seconds;
71 return years == other.
years && months == other.
months && weeks == other.
weeks &&
72 days == other.
days && hours == other.
hours &&
78 return !( *
this == other );
89 QString toString()
const;
97 long long toSeconds()
const;
102 QDateTime addToDateTime(
const QDateTime &dateTime );
144 static QList< QgsDateTimeRange > usedTemporalRangesForProject(
QgsProject *project );
188 double frameRate = 30;
232 static QDateTime calculateFrameTime(
const QDateTime &start,
const long long frame,
const QgsInterval &interval );
245 static QList< QDateTime > calculateDateTimesUsingDuration(
const QDateTime &start,
const QDateTime &end,
const QString &duration,
bool &ok
SIP_OUT,
bool &maxValuesExceeded
SIP_OUT,
int maxValues = -1 );
260 static QList< QDateTime > calculateDateTimesUsingDuration(
const QDateTime &start,
const QDateTime &end,
const QgsTimeDuration &duration,
bool &maxValuesExceeded
SIP_OUT,
int maxValues = -1 );
272 static QList< QDateTime > calculateDateTimesFromISO8601(
const QString &
string,
bool &ok
SIP_OUT,
bool &maxValuesExceeded
SIP_OUT,
int maxValues = -1 );
Base class for feedback objects to be used for cancellation of something running in a worker thread.
A representation of the interval between two datetime values.
Interface for map decorations.
The QgsMapSettings class contains configuration for rendering of the map.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Contains utility methods for working with temporal layers and projects.
Contains utility methods for working with temporal layers and projects.
bool operator!=(const QgsTimeDuration &other) const
bool operator==(const QgsTimeDuration &other) const
bool isNull() const
Returns true if the duration is null, i.e.
Contains settings relating to exporting animations.
QgsDateTimeRange animationRange
Dictates the overall temporal range of the animation.
QList< QgsDateTimeRange > availableTemporalRanges
Contains the list of all available temporal ranges which have data available.
QgsInterval frameDuration
Duration of individual export frames.
QString fileNameTemplate
The filename template for exporting the frames.
QString outputDirectory
Destination directory for created image files.
QList< QgsMapDecoration * > decorations
List of decorations to draw onto exported frames.