![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Issue 1 — single-thumb animation scrubber with a look-back window band. More...
#include <QWidget>Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::CursorWindowSlider |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Issue 1 — single-thumb animation scrubber with a look-back window band.
Replaces the two-thumb RangeSliderWidget on the animation toolbar. The scrubber has ONE draggable thumb (the current time / cursor); the look-back window is a read-only span set programmatically (from the "Window:" spin box) and painted as a highlighted band ENDING at the cursor — "the range rendered around the slider". Dragging the thumb (or clicking the track) moves only the cursor and emits cursorChanged(); it never mutates the window, so there is no two-handle feedback round-trip — the source of the old lag.
Values are normalised to [0..1]; the host (the SWMMVis animation toolbar) maps the cursor to a QDateTime and the window-norm to milliseconds.
NB: the cursor accessor/mutator are named cursorNorm()/setCursorNorm() — NOT cursor()/setCursor() — to avoid hiding QWidget::setCursor(const QCursor&).