shout3d.core
Class Transform
java.lang.Object
|
+--shout3d.core.Node
|
+--shout3d.core.Group
|
+--shout3d.core.Transform
- Direct Known Subclasses:
- Humanoid, Joint, Site
- public class Transform
- extends Group
- implements FieldObserver
A Transform.
Method Summary |
float[] |
getInverseMatrix()
Get the matrix equal to the inverse of this Transform. |
float[] |
getMatrix()
Gets the 4x4 matrix that transforms from local to parent space,
based on current field values |
void |
onFieldChange(Field theField,
java.lang.Object userData)
Subclasses must call this within their own onFieldChange() methods. |
Methods inherited from class shout3d.core.Node |
cleanUp,
getDEFName,
getField,
getFieldByIndex,
getFieldName,
getNumFields,
getTypeName,
getViewer,
isOfType,
setDEFName,
setViewer |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
center
public final FloatArrayField center
rotation
public final FloatArrayField rotation
scale
public final FloatArrayField scale
scaleOrientation
public final FloatArrayField scaleOrientation
translation
public final FloatArrayField translation
Transform
public Transform()
- Constructs a default Transform
Transform
public Transform(Shout3DViewer viewer)
- Constructor that takes a viewer as an argument
getMatrix
public float[] getMatrix()
- Gets the 4x4 matrix that transforms from local to parent space,
based on current field values
- Returns:
- the matrix
- Overrides:
- getMatrix in class Group
getInverseMatrix
public float[] getInverseMatrix()
- Get the matrix equal to the inverse of this Transform.
Transforms vectors from this node's parent space into
its local space.
- Returns:
- the inverse matrix for this transform.
- Overrides:
- getInverseMatrix in class Group
onFieldChange
public void onFieldChange(Field theField,
java.lang.Object userData)
- Subclasses must call this within their own onFieldChange() methods.
- Specified by:
- onFieldChange in interface FieldObserver