com.threerings.opengl.model
Class Animation.Procedural

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

public static class Animation.Procedural
extends Animation.Implementation

A procedural implementation.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
Animation.Procedural(GlContext ctx, Scope parentScope, AnimationConfig.Procedural config)
          Creates a new procedural implementation.
 
Method Summary
 void blendTransforms(int update)
          Blends in the influence of this animation.
 boolean hasCompleted()
          Checks whether this animation has completed.
 boolean isPlaying()
          Determines whether the animation is currently playing.
 void scopeUpdated(ScopeEvent event)
          Called when the scope has been updated.
 void setConfig(AnimationConfig.Procedural 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, stop, stop
 
Methods inherited from class com.threerings.expr.SimpleScope
addListener, dispose, get, getParentScope, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Animation.Procedural

public Animation.Procedural(GlContext ctx,
                            Scope parentScope,
                            AnimationConfig.Procedural config)
Creates a new procedural implementation.

Method Detail

setConfig

public void setConfig(AnimationConfig.Procedural config)
(Re)configures the implementation.


start

public void start()
Description copied from class: Animation.Implementation
Starts the animation.

Overrides:
start in class Animation.Implementation

isPlaying

public boolean isPlaying()
Description copied from class: Animation.Implementation
Determines whether the animation is currently playing.

Overrides:
isPlaying in class Animation.Implementation

tick

public boolean tick(float elapsed)
Description copied from class: Animation.Implementation
Updates this animation based on the elapsed time in seconds.

Overrides:
tick in class Animation.Implementation
Returns:
true if the animation has completed.

hasCompleted

public boolean hasCompleted()
Description copied from class: Animation.Implementation
Checks whether this animation has completed.

Overrides:
hasCompleted in class Animation.Implementation

updateTransforms

public void updateTransforms()
Description copied from class: Animation.Implementation
Updates the transforms directly from this animation.

Overrides:
updateTransforms in class Animation.Implementation

blendTransforms

public void blendTransforms(int update)
Description copied from class: Animation.Implementation
Blends in the influence of this animation.

Overrides:
blendTransforms in class Animation.Implementation
Parameters:
update - the current value of the update counter (used to determine which nodes have been touched on this update).

scopeUpdated

public void scopeUpdated(ScopeEvent event)
Description copied from interface: ScopeUpdateListener
Called when the scope has been updated.

Specified by:
scopeUpdated in interface ScopeUpdateListener
Overrides:
scopeUpdated in class SimpleScope


Copyright © 2011. All Rights Reserved.