template<class K>
Magnum::Animation::TrackViewStorage class

Type-erased track view storage.

Cast to TrackView of correct type to get access to all members.

Derived classes

template<class K, class V, class R = ResultOf<V>>
class TrackView
Animation track view.

Public types

using KeyType = K
Key type.

Public functions

auto interpolation() const -> Interpolation
Interpolation behavior.
auto before() const -> Extrapolation
Extrapolation behavior before first keyframe.
auto after() const -> Extrapolation
Extrapolation behavior after last keyframe.
auto duration() const -> Math::Range1D<K>
Duration of the track.
auto size() const -> std::size_t
Keyframe count.
auto keys() const -> Containers::StridedArrayView<const K>
Key data.

Function documentation

template<class K>
Interpolation Magnum::Animation::TrackViewStorage<K>::interpolation() const

Interpolation behavior.

Acts as a behavior hint to users that might want to supply their own interpolator function to TrackView::at() or TrackView::atStrict().

template<class K>
Extrapolation Magnum::Animation::TrackViewStorage<K>::before() const

Extrapolation behavior before first keyframe.

template<class K>
Extrapolation Magnum::Animation::TrackViewStorage<K>::after() const

Extrapolation behavior after last keyframe.

template<class K>
Math::Range1D<K> Magnum::Animation::TrackViewStorage<K>::duration() const

Duration of the track.

Calculated from first and last keyframe. If there are no keyframes, a default-constructed value is returned. Use Math::join() to calculate combined duration for a set of tracks.

template<class K>
Containers::StridedArrayView<const K> Magnum::Animation::TrackViewStorage<K>::keys() const

Key data.