Maven module :un.api : api-display :
Class : un.api.anim.KeyFrameTimeSerie
Extends/Implements : un.api.anim.TimeSerie
Subclasses : -

Serie of key frames.
Time serie are often associated to a single object in the scene.
author  Johann Sorel


Variables : frames
Functions : getFrames, getFrame, getNearest, interpolate, getLength


protected OrderedSet frames



Modifiable ordered set of key frames.
return  frames, never null.
public OrderedSet getFrames ()


Get frame at exact given time.
param  time
return
public KeyFrame getFrame (double time)


Find nearest above and under frames.
if time matches exactly a frame then this frame is used both as under and above frames.
param  time
param  buffer
return
public KeyFrame[] getNearest (double time, KeyFrame[] buffer)


Get a keyframe at the given time or if it doesn't exist create a key frame
result of the interpolation.
param  time
param  buffer
return
public KeyFrame interpolate (double time, KeyFrame buffer)


Find the last frame time end.
Time in milliseconds.
return
public double getLength ()