artofillusion.animation
Interface Keyframe

All Known Subinterfaces:
Gesture
All Known Implementing Classes:
Actor.ActorKeyframe, ArrayKeyframe, BooleanKeyframe, CompoundImplicitObject.CompoundImplicitKeyframe, CSGObject.CSGKeyframe, Curve.CurveKeyframe, Cylinder.CylinderKeyframe, DirectionalLight.DirectionalLightKeyframe, ImplicitSphere.ImplicitSphereKeyframe, MeshGesture, NullKeyframe, PointLight.PointLightKeyframe, ProceduralDirectionalLight.ProceduralLightKeyframe, ProceduralPointLight.ProceduralLightKeyframe, RotationKeyframe, ScalarKeyframe, SceneCamera.CameraKeyframe, ScriptedObject.ScriptedObjectKeyframe, SkeletonShapeKeyframe, SplineMesh.SplineMeshKeyframe, SpotLight.SpotLightKeyframe, TriangleMesh.TriangleMeshKeyframe, Tube.TubeKeyframe, VectorKeyframe

public interface Keyframe

This interface represents any object which can be used to represent a keyframe on an animation track.

Every Keyframe class should also provide a constructor of the following form, which reconstructs the keyframe from its serialized representation. public KeyframeClass(DataInputStream in, Object parent) throws IOException, InvalidObjectException


Method Summary
 Keyframe blend(Keyframe o2, double weight1, double weight2)
          Return a new Keyframe which is a weighted average of this one and one other.
 Keyframe blend(Keyframe o2, Keyframe o3, double weight1, double weight2, double weight3)
          Return a new Keyframe which is a weighted average of this one and two others.
 Keyframe blend(Keyframe o2, Keyframe o3, Keyframe o4, double weight1, double weight2, double weight3, double weight4)
          Return a new Keyframe which is a weighted average of this one and three others.
 Keyframe duplicate()
          Create a duplicate of this keyframe.
 Keyframe duplicate(java.lang.Object owner)
          Create a duplicate of this keyframe for a (possibly different) object.
 boolean equals(Keyframe k)
          Determine whether this keyframe is identical to another one.
 double[] getGraphValues()
          Get the list of graphable values for this keyframe.
 void setGraphValues(double[] values)
          Set the list of graphable values for this keyframe.
 void writeToStream(java.io.DataOutputStream out)
          Write out a representation of this keyframe to a stream.
 

Method Detail

duplicate

Keyframe duplicate()
Create a duplicate of this keyframe.


duplicate

Keyframe duplicate(java.lang.Object owner)
Create a duplicate of this keyframe for a (possibly different) object.


getGraphValues

double[] getGraphValues()
Get the list of graphable values for this keyframe.


setGraphValues

void setGraphValues(double[] values)
Set the list of graphable values for this keyframe.


blend

Keyframe blend(Keyframe o2,
               double weight1,
               double weight2)
Return a new Keyframe which is a weighted average of this one and one other.


blend

Keyframe blend(Keyframe o2,
               Keyframe o3,
               double weight1,
               double weight2,
               double weight3)
Return a new Keyframe which is a weighted average of this one and two others.


blend

Keyframe blend(Keyframe o2,
               Keyframe o3,
               Keyframe o4,
               double weight1,
               double weight2,
               double weight3,
               double weight4)
Return a new Keyframe which is a weighted average of this one and three others.


equals

boolean equals(Keyframe k)
Determine whether this keyframe is identical to another one.


writeToStream

void writeToStream(java.io.DataOutputStream out)
                   throws java.io.IOException
Write out a representation of this keyframe to a stream.

Throws:
java.io.IOException


Copyright © 1999-2011 by Peter Eastman.