com.threerings.opengl.model
Class Animation.Implementation

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.opengl.model.Animation.Implementation
All Implemented Interfaces:
Scope, ScopeUpdateListener
Direct Known Subclasses:
Animation.Imported, Animation.Procedural, Animation.Sequential
Enclosing class:
Animation

public abstract static class Animation.Implementation
extends SimpleScope

The actual animation implementation.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
Animation.Implementation(GlContext ctx, Scope parentScope)
          Creates a new implementation.
 
Method Summary
 void blendTransforms(int update)
          Blends in the influence of this animation.
 int getPriority()
          Returns the priority of this animation.
 String getScopeName()
          Returns the name of this scope for purposes of qualification.
 boolean hasCompleted()
          Checks whether this animation has completed.
 boolean isPlaying()
          Determines whether the animation is currently playing.
 void start()
          Starts the animation.
 void stop()
          Stops the animation.
 void stop(float blendOut)
          Stops the animation, blending out over the specified interval.
 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.expr.SimpleScope
addListener, dispose, get, getParentScope, removeListener, scopeUpdated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Animation.Implementation

public Animation.Implementation(GlContext ctx,
                                Scope parentScope)
Creates a new implementation.

Method Detail

start

public void start()
Starts the animation.


stop

public void stop()
Stops the animation.


stop

public void stop(float blendOut)
Stops the animation, blending out over the specified interval.


isPlaying

public boolean isPlaying()
Determines whether the animation is currently playing.


getPriority

public int getPriority()
Returns the priority of this animation.


tick

public boolean tick(float elapsed)
Updates this animation based on the elapsed time in seconds.

Returns:
true if the animation has completed.

hasCompleted

public boolean hasCompleted()
Checks whether this animation has completed.


updateTransforms

public void updateTransforms()
Updates the transforms directly from this animation.


blendTransforms

public void blendTransforms(int update)
Blends in the influence of this animation.

Parameters:
update - the current value of the update counter (used to determine which nodes have been touched on this update).

getScopeName

public String getScopeName()
Description copied from interface: Scope
Returns the name of this scope for purposes of qualification. Can return null if qualified symbols cannot specifically address this scope.

Specified by:
getScopeName in interface Scope
Overrides:
getScopeName in class SimpleScope


Copyright © 2011. All Rights Reserved.