Animation Namespace

Qt3DAnimation::Animation

Functions

ComponentIndices channelComponentsToIndices(const Channel &channel, int dataType, qsizetype expectedComponentCount, qsizetype offset)

Function Documentation

ComponentIndices Animation::channelComponentsToIndices(const Channel &channel, int dataType, qsizetype expectedComponentCount, qsizetype offset)

\internal

Calculates the indices required to map from the component ordering within the provided channel, into the standard channel orderings expected by Qt types.

For example, given a channel representing a rotation with the components ordered as X, Y, Z, Y, this function will return the indices [3, 0, 1, 2] which can then later be used as part of the format vector in the formatClipResults() function to remap the channels into the standard W, X, Y, Z order required by QQuaternion.