com.threerings.opengl.model.config
Class AnimationConfig.Implementation

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.model.config.AnimationConfig.Implementation
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
AnimationConfig.Derived, AnimationConfig.Original
Enclosing class:
AnimationConfig

@EditorTypes(value={AnimationConfig.Imported.class,AnimationConfig.Procedural.class,AnimationConfig.Sequential.class,AnimationConfig.Derived.class})
public abstract static class AnimationConfig.Implementation
extends DeepObject
implements Exportable

Contains the actual implementation of the animation.


Constructor Summary
AnimationConfig.Implementation()
           
 
Method Summary
abstract  Animation.Implementation getAnimationImplementation(GlContext ctx, Scope scope, Animation.Implementation impl)
          Creates or updates an animation implementation for this configuration.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 void invalidate()
          Invalidates any cached data.
 void updateFromSource(EditorContext ctx, boolean force)
          Updates this implementation from its external source, if any.
 
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
 

Constructor Detail

AnimationConfig.Implementation

public AnimationConfig.Implementation()
Method Detail

updateFromSource

public void updateFromSource(EditorContext ctx,
                             boolean force)
Updates this implementation from its external source, if any.

Parameters:
force - if true, reload the source data even if it has already been loaded.

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Adds the implementation's update references to the provided set.


getAnimationImplementation

public abstract 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.

invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.