|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.animation.Joint
public class Joint
This class represents a joint in the skeleton of an animated object.
Nested Class Summary | |
---|---|
class |
Joint.DOF
This is an inner class for storing information about the properties of a particular degree of freedom. |
Field Summary | |
---|---|
Joint.DOF |
angle1
|
Joint.DOF |
angle2
|
Joint[] |
children
|
CoordinateSystem |
coords
|
int |
id
|
Joint.DOF |
length
|
java.lang.String |
name
|
Joint |
parent
|
Joint.DOF |
twist
|
Constructor Summary | |
---|---|
Joint(CoordinateSystem coords,
Joint parentJoint,
java.lang.String name)
|
Method Summary | |
---|---|
void |
calcAnglesFromCoords(boolean recursive)
Recalculate the angles based on the coordinate system. |
void |
copy(Joint j)
Make this joint identical to another one (except for the parent and children). |
Joint |
duplicate()
Create an exact duplicate of this joint (except for the parent and children). |
boolean |
equals(Joint j)
Determine if this joint is identical to another one. |
Mat4 |
getInverseTransform()
Get the matrix which transforms direction vectors from this joint's coordinate system to its parent's. |
Mat4 |
getTransform()
Get the matrix which transforms direction vectors from the parent joint's coordinate system to this one. |
void |
recalcCoords(boolean recursive)
Recalculate the coordinate system for this joint after its parent joint has moved. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public CoordinateSystem coords
public java.lang.String name
public Joint.DOF angle1
public Joint.DOF angle2
public Joint.DOF twist
public Joint.DOF length
public Joint parent
public Joint[] children
public int id
Constructor Detail |
---|
public Joint(CoordinateSystem coords, Joint parentJoint, java.lang.String name)
Method Detail |
---|
public Joint duplicate()
public void copy(Joint j)
public boolean equals(Joint j)
public void recalcCoords(boolean recursive)
public Mat4 getTransform()
public Mat4 getInverseTransform()
public void calcAnglesFromCoords(boolean recursive)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |