artofillusion.animation
Class Joint

java.lang.Object
  extended by artofillusion.animation.Joint

public class Joint
extends java.lang.Object

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

coords

public CoordinateSystem coords

name

public java.lang.String name

angle1

public Joint.DOF angle1

angle2

public Joint.DOF angle2

twist

public Joint.DOF twist

length

public Joint.DOF length

parent

public Joint parent

children

public Joint[] children

id

public int id
Constructor Detail

Joint

public Joint(CoordinateSystem coords,
             Joint parentJoint,
             java.lang.String name)
Method Detail

duplicate

public Joint duplicate()
Create an exact duplicate of this joint (except for the parent and children).


copy

public void copy(Joint j)
Make this joint identical to another one (except for the parent and children).


equals

public boolean equals(Joint j)
Determine if this joint is identical to another one.


recalcCoords

public void recalcCoords(boolean recursive)
Recalculate the coordinate system for this joint after its parent joint has moved.


getTransform

public Mat4 getTransform()
Get the matrix which transforms direction vectors from the parent joint's coordinate system to this one.


getInverseTransform

public Mat4 getInverseTransform()
Get the matrix which transforms direction vectors from this joint's coordinate system to its parent's.


calcAnglesFromCoords

public void calcAnglesFromCoords(boolean recursive)
Recalculate the angles based on the coordinate system.



Copyright © 1999-2011 by Peter Eastman.