artofillusion.animation
Interface Gesture

All Superinterfaces:
Keyframe
All Known Implementing Classes:
Curve.CurveKeyframe, MeshGesture, SplineMesh.SplineMeshKeyframe, TriangleMesh.TriangleMeshKeyframe, Tube.TubeKeyframe

public interface Gesture
extends Keyframe

This interface represents an object which can be used to represent a predefined gesture for an Actor.


Method Summary
 Gesture blend(Gesture[] p, double[] weight)
          Return a new gesture which is the weighted average of an arbitrary list of gestures.
 Skeleton getSkeleton()
          Get the skeleton for this gesture (or null if it doesn't have one).
 ParameterValue getTextureParameter(TextureParameter param)
          Get the value of a per-vertex texture parameter.
 void setSkeleton(Skeleton s)
          Set the skeleton for this gesture.
 void setTextureParameter(TextureParameter param, ParameterValue value)
          Set the value of a per-vertex texture parameter.
 void textureChanged(TextureParameter[] oldParams, TextureParameter[] newParams)
          Update the texture parameter values when the texture is changed.
 
Methods inherited from interface artofillusion.animation.Keyframe
blend, blend, blend, duplicate, duplicate, equals, getGraphValues, setGraphValues, writeToStream
 

Method Detail

blend

Gesture blend(Gesture[] p,
              double[] weight)
Return a new gesture which is the weighted average of an arbitrary list of gestures. The gestures are averaged around this gesture. That is, the returned gesture is represented symbolically as

result = this + sum(weight[i]*(p[i]-this))


getSkeleton

Skeleton getSkeleton()
Get the skeleton for this gesture (or null if it doesn't have one).


setSkeleton

void setSkeleton(Skeleton s)
Set the skeleton for this gesture.


textureChanged

void textureChanged(TextureParameter[] oldParams,
                    TextureParameter[] newParams)
Update the texture parameter values when the texture is changed.


getTextureParameter

ParameterValue getTextureParameter(TextureParameter param)
Get the value of a per-vertex texture parameter.


setTextureParameter

void setTextureParameter(TextureParameter param,
                         ParameterValue value)
Set the value of a per-vertex texture parameter.



Copyright © 1999-2011 by Peter Eastman.