16 #ifndef QGSTEMPORALUTILS_H 
   17 #define QGSTEMPORALUTILS_H 
   19 #include "qgis_core.h" 
   64       return !years && !months && !days &&
 
   65              !hours && !minutes && !seconds;
 
   70       return years == other.
years && months == other.
months &&
 
   71              days == other.
days && hours == other.
hours &&
 
   77       return !( *
this == other );
 
   88     QString toString() 
const;
 
   96     long long toSeconds() 
const;
 
  101     QDateTime addToDateTime( 
const QDateTime &dateTime );
 
  130     static QgsDateTimeRange calculateTemporalRangeForProject( 
QgsProject *project );
 
  143     static QList< QgsDateTimeRange > usedTemporalRangesForProject( 
QgsProject *project );
 
  211     static QDateTime calculateFrameTime( 
const QDateTime &start, 
const long long frame, 
const QgsInterval &interval );
 
  224     static QList< QDateTime > calculateDateTimesUsingDuration( 
const QDateTime &start, 
const QDateTime &end, 
const QString &duration, 
bool &ok 
SIP_OUT, 
bool &maxValuesExceeded 
SIP_OUT, 
int maxValues = -1 );
 
  239     static QList< QDateTime > calculateDateTimesUsingDuration( 
const QDateTime &start, 
const QDateTime &end, 
const QgsTimeDuration &duration, 
bool &maxValuesExceeded 
SIP_OUT, 
int maxValues = -1 );
 
  251     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.