16 #ifndef QGSTEMPORALUTILS_H
17 #define QGSTEMPORALUTILS_H
19 #include "qgis_core.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 );
131 static QgsDateTimeRange calculateTemporalRangeForProject(
QgsProject *project );
144 static QList< QgsDateTimeRange > usedTemporalRangesForProject(
QgsProject *project );
212 static QDateTime calculateFrameTime(
const QDateTime &start,
const long long frame,
const QgsInterval &interval );
225 static QList< QDateTime > calculateDateTimesUsingDuration(
const QDateTime &start,
const QDateTime &end,
const QString &duration,
bool &ok
SIP_OUT,
bool &maxValuesExceeded
SIP_OUT,
int maxValues = -1 );
240 static QList< QDateTime > calculateDateTimesUsingDuration(
const QDateTime &start,
const QDateTime &end,
const QgsTimeDuration &duration,
bool &maxValuesExceeded
SIP_OUT,
int maxValues = -1 );
252 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.
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.