Central coordinator for result-layer time-stepping and playback.
More...
#include <animationcontroller.h>
Central coordinator for result-layer time-stepping and playback.
◆ AnimationController()
| AnimationController::AnimationController |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~AnimationController()
| AnimationController::~AnimationController |
( |
| ) |
|
|
override |
◆ addSecondaryLayer()
◆ allLayers()
Returns primary first, then secondary layers in insertion order.
◆ clearSecondaryLayers()
| void AnimationController::clearSecondaryLayers |
( |
| ) |
|
◆ currentDateTime()
| QDateTime AnimationController::currentDateTime |
( |
| ) |
const |
Current cursor time of the active driver. Invalid when no driver.
◆ currentPeriodChanged
| void AnimationController::currentPeriodChanged |
( |
int |
period | ) |
|
|
signal |
◆ currentTimeChanged
| void AnimationController::currentTimeChanged |
( |
const QDateTime & |
dt | ) |
|
|
signal |
◆ driverEndTime()
| QDateTime AnimationController::driverEndTime |
( |
| ) |
const |
◆ driverStartTime()
| QDateTime AnimationController::driverStartTime |
( |
| ) |
const |
Run time span of the active driver (1D primary, else 2D fallback), used to normalise the range slider. Invalid when no driver.
◆ fallback2DLayer()
◆ isPlaying()
| bool AnimationController::isPlaying |
( |
| ) |
const |
|
inline |
◆ looping()
| bool AnimationController::looping |
( |
| ) |
const |
|
inline |
◆ pause
| void AnimationController::pause |
( |
| ) |
|
|
slot |
◆ play
| void AnimationController::play |
( |
| ) |
|
|
slot |
◆ playStateChanged
| void AnimationController::playStateChanged |
( |
bool |
playing | ) |
|
|
signal |
◆ primaryLayer()
◆ primaryLayerChanged
◆ removeSecondaryLayer()
◆ seekToFirst
| void AnimationController::seekToFirst |
( |
| ) |
|
|
slot |
◆ seekToLast
| void AnimationController::seekToLast |
( |
| ) |
|
|
slot |
◆ seekToPeriod
| void AnimationController::seekToPeriod |
( |
int |
period | ) |
|
|
slot |
◆ seekToTime
| void AnimationController::seekToTime |
( |
const QDateTime & |
dt | ) |
|
|
slot |
Seek the driver to dt (1D primary: nearest report step; 2D fallback: nearest frame). Used by the range-slider cursor handle.
◆ setFallback2DLayer()
◆ setLooping()
| void AnimationController::setLooping |
( |
bool |
on | ) |
|
|
inline |
When on (the default), playback wraps to the start of the range on reaching the end instead of pausing. Composes with the primary's TemporalSpec: spec loop/pingPong still apply when this is off.
◆ setPrimaryLayer()
Set the primary (authoritative) results layer.
Stops playback first. Passing nullptr detaches all layers. Does NOT automatically demote the old primary to secondary — call addSecondaryLayer() explicitly if synchronised playback of the old layer is still desired.
◆ setSpeed()
| void AnimationController::setSpeed |
( |
double |
speed | ) |
|
Set playback speed multiplier (0.25 / 0.5 / 1 / 2 / 4 / 8).
Restarts the timer at the new interval if currently playing.
◆ setWindowMs()
| void AnimationController::setWindowMs |
( |
qint64 |
ms | ) |
|
Set the look-back window. ms < 0 is clamped to 0. Emits windowChanged when the value moves.
◆ setWindowSec()
| void AnimationController::setWindowSec |
( |
double |
sec | ) |
|
|
inline |
◆ speed()
| double AnimationController::speed |
( |
| ) |
const |
|
inline |
◆ stepBackward
| void AnimationController::stepBackward |
( |
| ) |
|
|
slot |
◆ stepForward
| void AnimationController::stepForward |
( |
| ) |
|
|
slot |
◆ stop
| void AnimationController::stop |
( |
| ) |
|
|
slot |
◆ totalPeriodsChanged
| void AnimationController::totalPeriodsChanged |
( |
int |
total | ) |
|
|
signal |
◆ windowChanged
| void AnimationController::windowChanged |
( |
qint64 |
windowMs | ) |
|
|
signal |
◆ windowMs()
| qint64 AnimationController::windowMs |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: