|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.animation.Actor.ActorKeyframe
public static class Actor.ActorKeyframe
Inner class representing a pose for an Actor. It consists of a list of gestures, and a weight for each one.
Constructor Summary | |
---|---|
Actor.ActorKeyframe()
|
|
Actor.ActorKeyframe(java.io.DataInputStream in,
java.lang.Object parent)
Reconstructs the keyframe from its serialized representation. |
|
Actor.ActorKeyframe(int[] id,
double[] weight)
|
Method Summary | |
---|---|
void |
addGesture(int addID,
double addWeight)
Add a gesture to an ActorKeyframe. |
Keyframe |
blend(Keyframe o2,
double weight1,
double weight2)
These methods return a new Keyframe which is a weighted average of this one and one, two, or three others. |
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. |
void |
copy(Actor.ActorKeyframe key)
Make this keyframe identical to another one. |
Keyframe |
createObjectKeyframe(Actor actor)
Create a keyframe for the Actor's "inner" object, based on this keyframes list of poses. |
void |
deleteGesture(int which)
Delete a gesture from an ActorKeyframe. |
Keyframe |
duplicate()
Create a duplicate of this keyframe. |
Keyframe |
duplicate(java.lang.Object owner)
Create a duplicate of this keyframe. |
boolean |
equals(Keyframe k)
Determine whether this keyframe is identical to another one. |
int |
getGestureID(int index)
Get the ID of a gesture in this keyframe. |
double |
getGestureWeight(int index)
Get the weight for a gesture in this keyframe. |
double[] |
getGraphValues()
Get the list of graphable values for this keyframe. |
int |
getNumGestures()
Get the number of gestures in 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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Actor.ActorKeyframe()
public Actor.ActorKeyframe(int[] id, double[] weight)
public Actor.ActorKeyframe(java.io.DataInputStream in, java.lang.Object parent) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public int getNumGestures()
public int getGestureID(int index)
public double getGestureWeight(int index)
public void addGesture(int addID, double addWeight)
public void deleteGesture(int which)
public Keyframe duplicate(java.lang.Object owner)
duplicate
in interface Keyframe
public Keyframe duplicate()
Keyframe
duplicate
in interface Keyframe
public void copy(Actor.ActorKeyframe key)
public double[] getGraphValues()
getGraphValues
in interface Keyframe
public void setGraphValues(double[] values)
setGraphValues
in interface Keyframe
public Keyframe blend(Keyframe o2, double weight1, double weight2)
blend
in interface Keyframe
public Keyframe blend(Keyframe o2, Keyframe o3, double weight1, double weight2, double weight3)
Keyframe
blend
in interface Keyframe
public Keyframe blend(Keyframe o2, Keyframe o3, Keyframe o4, double weight1, double weight2, double weight3, double weight4)
Keyframe
blend
in interface Keyframe
public boolean equals(Keyframe k)
equals
in interface Keyframe
public Keyframe createObjectKeyframe(Actor actor)
public void writeToStream(java.io.DataOutputStream out) throws java.io.IOException
writeToStream
in interface Keyframe
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |