Skip to content

TimeStepBasedAnimationHandler ​

Introduction ​

Drives a scene through a discrete list of time steps: each time step carries camera, background and per-scene-item settings that are applied when that step becomes current.

Methods ​

addRenderer ​

Registers a renderer, if not already registered.

ArgumentTypeRequiredDescription
rendererYesthe renderer

getOriginalMetada ​

Gets the metadata passed at construction.

setBackground ​

Sets the background of every registered renderer.

ArgumentTypeRequiredDescription
colorYesthe background color

setCameraParameters ​

Applies camera parameters to every registered renderer's active camera.

ArgumentTypeRequiredDescription
paramsYesthe camera parameters

setCurrentTimeStep ​

Snaps to the last time step lower than or equal to time and applies it. Does nothing when no time step is known.

ArgumentTypeRequiredDescription
timeYesthe requested time

setData ​

Sets the animation data and refreshes the time steps, time range and current time step from it.

ArgumentTypeRequiredDescription
dataYesthe animation data

setScene ​

Sets what the handler animates.

ArgumentTypeRequiredDescription
sceneYesthe scene items
originalMetadataYesmetadata holding the base camera parameters
applySettingsYescallback applying settings to a scene item
rendererYesthe renderer

update ​

Applies the scene settings of the current time step.