QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
Represents a mesh time settings for mesh datasets. More...
#include <qgsmeshtimesettings.h>
Public Types | |
enum | TimeUnit { seconds = 0 , minutes , hours , days } |
Time units used to display time. More... | |
Public Member Functions | |
QgsMeshTimeSettings () | |
QString | absoluteTimeFormat () const |
Returns format used for absolute time. | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) |
Reads configuration from the given DOM element. | |
QString | relativeTimeFormat () const |
Returns format used for relative time. | |
void | setAbsoluteTimeFormat (const QString &absoluteTimeFormat) |
Sets format used for absolute time. | |
void | setRelativeTimeFormat (const QString &relativeTimeFormat) |
Sets format used for relative time. | |
QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context) const |
Writes configuration to a new DOM element. | |
Represents a mesh time settings for mesh datasets.
Definition at line 35 of file qgsmeshtimesettings.h.
Time units used to display time.
Enumerator | |
---|---|
seconds | second unit |
minutes | minute unit |
hours | hour unit |
days | day unit |
Definition at line 43 of file qgsmeshtimesettings.h.
|
default |
QString QgsMeshTimeSettings::absoluteTimeFormat | ( | ) | const |
Returns format used for absolute time.
Definition at line 49 of file qgsmeshtimesettings.cpp.
void QgsMeshTimeSettings::readXml | ( | const QDomElement & | elem, |
const QgsReadWriteContext & | context | ||
) |
Reads configuration from the given DOM element.
Definition at line 32 of file qgsmeshtimesettings.cpp.
QString QgsMeshTimeSettings::relativeTimeFormat | ( | ) | const |
Returns format used for relative time.
Definition at line 39 of file qgsmeshtimesettings.cpp.
void QgsMeshTimeSettings::setAbsoluteTimeFormat | ( | const QString & | absoluteTimeFormat | ) |
Sets format used for absolute time.
Definition at line 54 of file qgsmeshtimesettings.cpp.
void QgsMeshTimeSettings::setRelativeTimeFormat | ( | const QString & | relativeTimeFormat | ) |
Sets format used for relative time.
Definition at line 44 of file qgsmeshtimesettings.cpp.
QDomElement QgsMeshTimeSettings::writeXml | ( | QDomDocument & | doc, |
const QgsReadWriteContext & | context | ||
) | const |
Writes configuration to a new DOM element.
Definition at line 23 of file qgsmeshtimesettings.cpp.