|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.animation.Skeleton
public class Skeleton
This class represents the skeleton of an animated object.
Constructor Summary | |
---|---|
Skeleton()
|
|
Skeleton(java.io.DataInputStream in)
Reconstruct a skeleton from its serialized representation. |
Method Summary | |
---|---|
void |
addAllJoints(Skeleton s)
Add every joint from another skeleton to this one. |
void |
addJoint(Joint j,
int parentID)
Add a joint to the skeleton. |
static void |
adjustMesh(Mesh oldMesh,
Mesh newMesh)
Update a mesh after its skeleton has moved. |
void |
blend(Skeleton average,
Skeleton[] s,
double[] weight)
Modify a Skeleton to be a weighted average of an arbitrary list of Skeletons, averaged about this one. |
void |
copy(Skeleton s)
Make this skeleton idenical to another one. |
void |
deleteJoint(int id)
Delete a joint from the skeleton. |
void |
draw(MeshViewer view,
boolean enabled)
Draw the skeleton onto a canvas. |
Skeleton |
duplicate()
Create an exact duplicate of this skeleton. |
boolean |
equals(java.lang.Object o)
Determine if this skeleton is identical to another one. |
int |
findJointIndex(int id)
Find the array index for a given joint ID. |
Joint |
getJoint(int id)
Get the joint with the specified ID, or null if there is none. |
Joint[] |
getJoints()
Get an array of all the joints. |
int |
getNextJointID()
Get the ID for the next joint to be added. |
int |
getNumJoints()
Get the number of joints in the skeleton. |
void |
scale(double x,
double y,
double z)
Scale the skeleton by the specified amount along each axis. |
void |
setJointParent(Joint j,
Joint parent)
Set the parent of a joint. |
void |
writeToStream(java.io.DataOutputStream out)
Write a serialized representation of this skeleton to a stream. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Skeleton()
public Skeleton(java.io.DataInputStream in) throws java.io.IOException, java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException
Method Detail |
---|
public Skeleton duplicate()
public void copy(Skeleton s)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void addJoint(Joint j, int parentID)
public void deleteJoint(int id)
public void addAllJoints(Skeleton s)
public void setJointParent(Joint j, Joint parent)
public int findJointIndex(int id)
public Joint getJoint(int id)
public Joint[] getJoints()
public int getNumJoints()
public int getNextJointID()
public void scale(double x, double y, double z)
public void blend(Skeleton average, Skeleton[] s, double[] weight)
average
- the Skeleton to modify to be an average of other Skeletonss
- the list of Skeletons to averageweight
- the weights for the different Skeletonspublic void draw(MeshViewer view, boolean enabled)
public static void adjustMesh(Mesh oldMesh, Mesh newMesh)
public void writeToStream(java.io.DataOutputStream out) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |