com.threerings.opengl.model
Class Animation.Procedural.TargetTransform

java.lang.Object
  extended by com.threerings.opengl.model.Animation.Procedural.TargetTransform
Enclosing class:
Animation.Procedural

protected static class Animation.Procedural.TargetTransform
extends Object

Pairs a node with its transform evaluator.


Field Summary
 ObjectExpression.Evaluator<Transform3D> evaluator
          The expression evaluator for the transform.
 Articulated.Node[] targets
          The nodes to update.
 
Constructor Summary
Animation.Procedural.TargetTransform(Articulated.Node[] targets, ObjectExpression.Evaluator<Transform3D> evaluator)
           
 
Method Summary
 void blend(int update, float weight)
          Blends in the influence of this target.
 void update()
          Updates the transforms directly from this target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targets

public Articulated.Node[] targets
The nodes to update.


evaluator

public ObjectExpression.Evaluator<Transform3D> evaluator
The expression evaluator for the transform.

Constructor Detail

Animation.Procedural.TargetTransform

public Animation.Procedural.TargetTransform(Articulated.Node[] targets,
                                            ObjectExpression.Evaluator<Transform3D> evaluator)
Method Detail

update

public void update()
Updates the transforms directly from this target.


blend

public void blend(int update,
                  float weight)
Blends in the influence of this target.

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