|
||||||||||
| 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
public class Animation
An animation for an Articulated model.
| Nested Class Summary | |
|---|---|
static class |
Animation.Implementation
The actual animation implementation. |
static class |
Animation.Imported
An imported implementation. |
static class |
Animation.Procedural
A procedural implementation. |
static class |
Animation.Sequential
A sequential implementation. |
| Field Summary | |
|---|---|
static Animation[] |
EMPTY_ARRAY
An empty array of animations. |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
Animation(GlContext ctx,
Scope parentScope)
Creates a new animation. |
|
| Method Summary | |
|---|---|
void |
addObserver(AnimationObserver observer)
Adds an observer to this animation. |
void |
blendTransforms(int update)
Blends in the influence of this animation. |
void |
configUpdated(ConfigEvent<AnimationConfig> event)
Called when a configuration has been updated. |
void |
dispose()
Releases the resources associated with this scope. |
String |
getName()
Returns the name of the animation. |
int |
getPriority()
Returns the priority of this animation. |
String |
getScopeName()
Returns the name of this scope for purposes of qualification. |
float |
getSpeed()
Returns the speed at which the animation is being played. |
boolean |
hasCompleted()
Checks whether the animation has just completed, and thus should be removed from the playing list after a final update has been performed. |
boolean |
isPlaying()
Determines whether this animation is playing. |
void |
removeObserver(AnimationObserver observer)
Removes an observer from this animation. |
void |
scopeUpdated(ScopeEvent event)
Called when the scope has been updated. |
void |
setConfig(String name,
AnimationConfig config)
Sets the configuration of this animation. |
void |
setConfig(String name,
ConfigReference<AnimationConfig> ref)
Sets the configuration of this animation. |
void |
setConfig(String name,
String config)
Sets the configuration of this animation. |
void |
setConfig(String name,
String config,
String firstKey,
Object firstValue,
Object... otherArgs)
Sets the configuration of this animation. |
void |
setSpeed(float speed)
Sets the speed at which to play the animation. |
void |
start()
Starts playing this animation. |
void |
stop()
Stops playing this animation. |
void |
stop(float blendOut)
Stops playing this animation, blending it out over the specified interval (as opposed to its default interval). |
boolean |
tick(float elapsed)
Updates this animation based on the elapsed time in seconds. |
String |
toString()
|
void |
updateTransforms()
Updates the transforms directly from this animation. |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, get, getParentScope, removeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Animation[] EMPTY_ARRAY
| Constructor Detail |
|---|
public Animation(GlContext ctx,
Scope parentScope)
| Method Detail |
|---|
public void setConfig(String name,
String config)
public void setConfig(String name,
ConfigReference<AnimationConfig> ref)
public void setConfig(String name,
String config,
String firstKey,
Object firstValue,
Object... otherArgs)
public void setConfig(String name,
AnimationConfig config)
public String getName()
public void setSpeed(float speed)
public float getSpeed()
public void start()
public void stop()
public void stop(float blendOut)
public boolean isPlaying()
public void addObserver(AnimationObserver observer)
public void removeObserver(AnimationObserver observer)
public int getPriority()
public boolean tick(float elapsed)
public boolean hasCompleted()
public void updateTransforms()
public void blendTransforms(int update)
update - the current value of the update counter (used to determine which nodes have
been touched on this update).public void configUpdated(ConfigEvent<AnimationConfig> event)
ConfigUpdateListener
configUpdated in interface ConfigUpdateListener<AnimationConfig>public String getScopeName()
Scopenull
if qualified symbols cannot specifically address this scope.
getScopeName in interface ScopegetScopeName in class SimpleScopepublic void scopeUpdated(ScopeEvent event)
ScopeUpdateListener
scopeUpdated in interface ScopeUpdateListenerscopeUpdated in class SimpleScopepublic void dispose()
SimpleScope
dispose in class SimpleScopepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||