Bewerken

Delen via


InputAnimation Class

Definition

Contains a set of animation curves that describe motion of camera and hands.

public ref class InputAnimation
[System.Serializable]
public class InputAnimation
[<System.Serializable>]
type InputAnimation = class
Public Class InputAnimation
Inheritance
InputAnimation
Attributes

Constructors

InputAnimation()

Default constructor

Fields

jointCount

Properties

CameraCurves
Duration

Maximum duration of all animations curves.

HasCameraPose

Whether the animation has camera pose curves

HasEyeGaze

Whether the animation has eye gaze curves

HasHandData

Whether the animation has hand state and joint curves

markerCount

Number of markers in the animation.

Methods

AddCameraPoseKey(Single, MixedRealityPose, Single, Single)
Obsolete.

Add a keyframe for the camera transform.

AddHandJointKey(Single, Handedness, TrackedHandJoint, MixedRealityPose, Single, Single)
Obsolete.

Add a keyframe for one hand joint.

AddHandStateKey(Single, Handedness, Boolean, Boolean)
Obsolete.

Add a keyframe for the tracking state of a hand.

AddMarker(InputAnimationMarker)

Add a user-defined marker.

Clear()

Remove all keyframes from all animation curves.

CreateHandJointCurves(Handedness, TrackedHandJoint)

Make sure the pose animation curves for the given hand joint exist.

CutoffBeforeTime(Single)
Obsolete.

Remove all keyframes from all animation curves with time values before the given cutoff time.

EvaluateCameraPose(Single)

Evaluate the camera transform at the given time.

EvaluateEyeGaze(Single)

Evaluate the eye gaze ray at the given time.

EvaluateHandJoint(Single, Handedness, TrackedHandJoint)

Evaluate joint pose at the given time.

EvaluateHandState(Single, Handedness, Boolean, Boolean)

Evaluate hand tracking state at the given time.

FindMarkerInterval(Single)

Find an index i in the sorted events list, such that events[i].time <= time < events[i+1].time.

FromRecordingBuffer(InputRecordingBuffer, MixedRealityInputRecordingProfile)

Generates an input animation from the contents of a recording buffer.

FromStream(Stream)

Deserializes animation data from a stream.

FromStreamAsync(Stream, Action)

Deserialize animation data from a stream asynchronously.

GetMarker(Int32)

Get the marker at the given index.

RemoveMarker(Int32)

Remove the user-defined marker at the given index.

SetMarkerTime(Int32, Single)

Change the time of the marker at the given index.

ToStream(Stream, Single)

Serialize animation data into a stream.

ToStreamAsync(Stream, Single, Action)

Serialize animation data into a stream asynchronously.

TryGetHandJointCurves(Handedness, TrackedHandJoint, InputAnimation+PoseCurves)

Get animation curves for the pose of the given hand joint, if they exist.

Applies to