|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.opengl.model.Animation.Implementation
com.threerings.opengl.model.Animation.Imported
public static class Animation.Imported
An imported implementation.
| Field Summary | |
|---|---|
protected float |
_accum
The progress towards the next frame. |
protected boolean |
_completed
Set when the animation has completed. |
protected AnimationConfig.Imported |
_config
The implementation configuration. |
protected float |
_countdown
The time remaining until we have to start blending the animation out. |
protected boolean |
_counting
Whether we are counting down until we must blend out. |
protected int |
_eidx
The index of the next executor. |
protected Animation.FrameExecutor[] |
_executors
Executors for frame actions. |
protected int |
_fidx
The index of the current animation frame. |
protected Transform3D[] |
_snapshot
A snapshot of the original transforms of the targets, for transitioning. |
protected Articulated.Node[] |
_targets
The targets of the animation. |
protected boolean |
_transitioning
Whether we are currently transitioning into the first frame. |
protected Transform3D |
_xform
A temporary transform for interpolation. |
| Fields inherited from class com.threerings.opengl.model.Animation.Implementation |
|---|
_ctx, _targetWeight, _weight, _weightRate |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
Animation.Imported(GlContext ctx,
Scope parentScope,
AnimationConfig.Imported config)
Creates a new imported implementation. |
|
| Method Summary | |
|---|---|
protected void |
blendToWeight(float weight,
float interval)
Blends to a target weight over an interval specified in seconds. |
void |
blendTransforms(int update)
Blends in the influence of this animation. |
protected void |
executeActions()
Executes all actions scheduled before or at the current frame. |
protected float |
getFrameRate()
Returns the animation's frame rate. |
boolean |
hasCompleted()
Checks whether this animation has completed. |
boolean |
isPlaying()
Determines whether the animation is currently playing. |
void |
setConfig(AnimationConfig.Imported config)
(Re)configures the implementation. |
void |
start()
Starts the animation. |
boolean |
tick(float elapsed)
Updates this animation based on the elapsed time in seconds. |
void |
updateTransforms()
Updates the transforms directly from this animation. |
| Methods inherited from class com.threerings.opengl.model.Animation.Implementation |
|---|
getPriority, getScopeName, setConfig, stop, stop |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, dispose, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AnimationConfig.Imported _config
protected Articulated.Node[] _targets
protected Transform3D[] _snapshot
protected Animation.FrameExecutor[] _executors
protected boolean _transitioning
protected boolean _counting
protected float _countdown
protected int _fidx
protected float _accum
protected int _eidx
protected boolean _completed
protected Transform3D _xform
| Constructor Detail |
|---|
public Animation.Imported(GlContext ctx,
Scope parentScope,
AnimationConfig.Imported config)
| Method Detail |
|---|
public void setConfig(AnimationConfig.Imported config)
public void start()
Animation.Implementation
start in class Animation.Implementationpublic boolean isPlaying()
Animation.Implementation
isPlaying in class Animation.Implementationpublic boolean tick(float elapsed)
Animation.Implementation
tick in class Animation.Implementationpublic boolean hasCompleted()
Animation.Implementation
hasCompleted in class Animation.Implementationpublic void updateTransforms()
Animation.Implementation
updateTransforms in class Animation.Implementationpublic void blendTransforms(int update)
Animation.Implementation
blendTransforms in class Animation.Implementationupdate - the current value of the update counter (used to determine which nodes
have been touched on this update).
protected void blendToWeight(float weight,
float interval)
Animation.Implementation
blendToWeight in class Animation.Implementationprotected float getFrameRate()
protected void executeActions()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||