29#ifndef OPENSWMM_RENDER_TEMPORALSPEC_H
30#define OPENSWMM_RENDER_TEMPORALSPEC_H
93 [[nodiscard]] QJsonObject
toJson()
const;
99 {
return !(*
this == other); }
double s
Scene px per model length unit.
Definition inletdrawingview.cpp:82
MaskMode m
Definition maskspec.cpp:18
Definition gisrasterlayer.h:40
TemporalMode
How the time axis is consumed at paint time.
Definition temporalspec.h:43
TemporalMode temporalModeFromString(const QString &s)
Definition temporalspec.cpp:43
QString temporalModeToString(TemporalMode m)
Definition temporalspec.cpp:36
Per-layer temporal-animation configuration.
Definition temporalspec.h:57
qreal frameRateFps
Playback frame rate in frames per second. Clamped to [0.1, 60.0] at write time to prevent pathologica...
Definition temporalspec.h:73
bool loop
Loop on reaching the end of the playback range.
Definition temporalspec.h:76
QJsonObject toJson() const
JSON round-trip. Empty fields are omitted to keep persistence diffs minimal.
Definition temporalspec.cpp:50
bool operator==(const TemporalSpec &other) const
Equality — for change detection in the tab UI.
Definition temporalspec.cpp:98
QDateTime startTime
Playback range — start and end times. Invalid (default- constructed) means "use the layer's full exte...
Definition temporalspec.h:84
bool enabled
Whether temporal driving is enabled on this layer. When false, the layer paints at a static reference...
Definition temporalspec.h:61
bool pingPong
Ping-pong (reverse on reaching ends) instead of jumping back to start. Implies loop=true when set.
Definition temporalspec.h:80
QDateTime endTime
Definition temporalspec.h:85
QString timeField
Datetime-typed attribute name for vector layers. For result layers the time axis is implicit (output ...
Definition temporalspec.h:66
TemporalMode mode
Playback mode.
Definition temporalspec.h:69
bool operator!=(const TemporalSpec &other) const
Definition temporalspec.h:98
static TemporalSpec fromJson(const QJsonObject &j)
Definition temporalspec.cpp:74
qreal rangeWindowSec
Range-mode window length in seconds (used only when mode == Range). Default 0 means a one-sample wind...
Definition temporalspec.h:89