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

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

public static class AnimationConfig.Procedural
extends AnimationConfig.Original

A procedural animation.


Field Summary
 float duration
          The duration of the animation, or zero for unlimited.
 FloatVariable offset
          A (possibly random) offset to apply when the animation starts.
 AnimationConfig.TargetTransform[] transforms
          The list of target transforms.
 
Fields inherited from class com.threerings.opengl.model.config.AnimationConfig.Original
blendIn, blendOut, override, priority, weight
 
Constructor Summary
AnimationConfig.Procedural()
           
 
Method Summary
 Animation.Implementation getAnimationImplementation(GlContext ctx, Scope scope, Animation.Implementation impl)
          Creates or updates an animation implementation for this configuration.
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.opengl.model.config.AnimationConfig.Implementation
getUpdateReferences, updateFromSource
 
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

duration

@Editable(min=0.0,
          step=0.01)
public float duration
The duration of the animation, or zero for unlimited.


offset

@Editable(min=0.0,
          step=0.01)
public FloatVariable offset
A (possibly random) offset to apply when the animation starts.


transforms

@Editable
public AnimationConfig.TargetTransform[] transforms
The list of target transforms.

Constructor Detail

AnimationConfig.Procedural

public AnimationConfig.Procedural()
Method Detail

getAnimationImplementation

public Animation.Implementation getAnimationImplementation(GlContext ctx,
                                                           Scope scope,
                                                           Animation.Implementation impl)
Description copied from class: AnimationConfig.Implementation
Creates or updates an animation implementation for this configuration.

Specified by:
getAnimationImplementation in class AnimationConfig.Implementation
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()
Description copied from class: AnimationConfig.Implementation
Invalidates any cached data.

Overrides:
invalidate in class AnimationConfig.Implementation


Copyright © 2011. All Rights Reserved.