NumberKeyframeTrack class

A Track of numeric keyframe values.

Inheritance

Constructors

NumberKeyframeTrack(String name, List<num> times, List<num> values, [int? interpolation])
name - identifier for the KeyframeTrack.

Properties

createInterpolant ↔ Function?
getter/setter pairinherited
defaultInterpolation ↔ int
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
name ↔ String
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeBufferType ↔ String
getter/setter pairinherited
times ↔ List<num>
getter/setter pairinherited
valueBufferType ↔ String
getter/setter pairinherited
values ↔ List<num>
getter/setter pairinherited
valueTypeName ↔ String
getter/setter pairinherited

Methods

clone() → NumberKeyframeTrack
Returns a copy of this track.
override
getInterpolation() → int?
Returns the interpolation type.
inherited
getValueSize() → int
Returns the size of each value (that is the length of the values array divided by the length of the times array).
inherited
interpolantFactoryMethodDiscrete(dynamic result) → Interpolant?
Creates a new DiscreteInterpolant from the times and values. A Float32Array can be passed which will receive the results. Otherwise a new array with the appropriate size will be created automatically.
inherited
interpolantFactoryMethodLinear(dynamic result) → Interpolant?
Creates a new LinearInterpolant from the times and values. A Float32Array can be passed which will receive the results. Otherwise a new array with the appropriate size will be created automatically.
inherited
interpolantFactoryMethodSmooth(dynamic result) → Interpolant?
Create a new CubicInterpolant from the times and values. A Float32Array can be passed which will receive the results. Otherwise a new array with the appropriate size will be created automatically.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optimize() → KeyframeTrack
Removes equivalent sequential keys, which are common in morph target sequences.
inherited
scale(double timeScale) → KeyframeTrack
Scales all keyframe times by a factor
inherited
setInterpolation(int interpolation) → KeyframeTrack
inherited
shift(dynamic timeOffset) → KeyframeTrack
Moves all keyframes either forward or backward in time.
inherited
toString() → String
A string representation of this object.
inherited
trim(dynamic startTime, dynamic endTime) → KeyframeTrack
Removes keyframes before startTime and after endTime, without changing any values within the range `startTime`, `endTime`.
inherited
validate() → bool
Performs minimal validation on the tracks. Returns true if valid.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited