template class MAGES::Recorder::ContinuousPlaybackObject

Overview

A group of continuous playback objects. More…

template 
class ContinuousPlaybackObject
{
public:
    // structs

    struct Sample;

    // methods

    ContinuousPlaybackObject(System.Func interpolate);
    void AddSampleInTime(T value, double time);
    T Update(double nowTime);
    static ContinuousPlaybackObject CreateVector3();
    static ContinuousPlaybackObject CreateQuaternion();
};

Detailed Documentation

A group of continuous playback objects.

Parameters:

T

The value type that will be played back.

Methods

ContinuousPlaybackObject(System.Func interpolate)

Initializes a new instance of the ContinuousPlaybackObject<T> class.

Parameters:

interpolate

The function used to interpolate between two values given a 0-1 double.

void AddSampleInTime(T value, double time)

Adds a sample in time.

Parameters:

value

The value.

time

The time at which this value has to match the calculated value.

T Update(double nowTime)

Updates the playback object.

Parameters:

nowTime

The position of the play cursor.

Returns:

The updated value of the object.

static ContinuousPlaybackObject CreateVector3()

Creates a new continuous playback object for Vector3 values.

Returns:

The new instatnce of the object.

static ContinuousPlaybackObject CreateQuaternion()

Creates a new continuous playback object for Quaternion values.

Returns:

The new instance of the object.