com.threerings.opengl.model.config
Class AnimationConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.config.ManagedConfig
          extended by com.threerings.config.ParameterizedConfig
              extended by com.threerings.opengl.model.config.AnimationConfig
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Exportable, com.threerings.resource.ResourceManager.ModificationObserver, Copyable, Cloneable

public class AnimationConfig
extends ParameterizedConfig

The configuration of an animation.


Nested Class Summary
static class AnimationConfig.ComponentAnimation
          Contains a component animation in a sequence.
static class AnimationConfig.Derived
          A derived implementation.
static class AnimationConfig.FrameAction
          An action to perform at a specific frame in the animation.
static class AnimationConfig.Implementation
          Contains the actual implementation of the animation.
static class AnimationConfig.Imported
          A frame-based animation imported from an export file.
static class AnimationConfig.Original
          Superclass of the original implementations.
static class AnimationConfig.Procedural
          A procedural animation.
static class AnimationConfig.Sequential
          Runs a series of animations in sequence.
static class AnimationConfig.TargetTransform
          Controls the transform of one or more nodes.
 
Field Summary
 AnimationConfig.Implementation implementation
          The actual animation implementation.
 
Fields inherited from class com.threerings.config.ParameterizedConfig
parameters
 
Constructor Summary
AnimationConfig()
           
 
Method Summary
 Animation.Implementation getAnimationImplementation(GlContext ctx, Scope scope, Animation.Implementation impl)
          Creates or updates an animation implementation for this configuration.
 void updateFromSource(EditorContext ctx, boolean force)
          Updates this configuration from its external source, if any.
 
Methods inherited from class com.threerings.config.ParameterizedConfig
getInstance, getParameter, getReference, validateOuters, validateReferences, wasUpdated
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, configUpdated, getConfigManager, getInstance, getInstance, getInstance, getInstance, getName, init, removeListener, resourceModified, setName
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

implementation

@Editable
public AnimationConfig.Implementation implementation
The actual animation implementation.

Constructor Detail

AnimationConfig

public AnimationConfig()
Method Detail

getAnimationImplementation

public Animation.Implementation getAnimationImplementation(GlContext ctx,
                                                           Scope scope,
                                                           Animation.Implementation impl)
Creates or updates an animation implementation for this configuration.

Parameters:
scope - the animation's expression scope.
impl - an existing implementation to reuse, if possible.
Returns:
either a reference to the existing implementation (if reused), a new implementation, or null if no implementation could be created.

updateFromSource

public void updateFromSource(EditorContext ctx,
                             boolean force)
Description copied from class: ManagedConfig
Updates this configuration from its external source, if any.

Overrides:
updateFromSource in class ManagedConfig
force - if true, reload the source data even if it has already been loaded.


Copyright © 2011. All Rights Reserved.