cas
Class CASTRSet

java.lang.Object
  extended by cas.CASTRSet

public class CASTRSet
extends java.lang.Object

A CASTRSet contains the translation (i.e. position) and rotation data for a given bone, identified by its four-cc name.


Constructor Summary
CASTRSet(CASTRSet prs)
          Constructs a new PR-Set, copied from the given one.
CASTRSet(int name4cc, float[] rot, float[] trans)
          Constructs a new CASTRSet with the given (Four-CC) name, and using the given rotation and translation arrays (which are not copied).
CASTRSet(JAInputStream jins)
          Constructs this PR-Set from the given stream.
CASTRSet(java.lang.String name, float[] rot, float[] trans)
          Constructs a new CASTRSet with the given name, and using the given rotation and translation arrays (which are not copied).
 
Method Summary
 int getFourCC()
          Returns this PR-Set's name.
 float[] getRotation()
          Returns this PR-Set's rotation array [xyzw] (length 4).
 float[] getTranslation()
          Returns this PR-Set's translation array (length 3).
 void save(JAOutputStream jouts)
          Writes this PR-Set's data onto the given stream.
 void set(CASTRSet prs)
          Sets this PR-Set to be a copy the given one.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CASTRSet

public CASTRSet(java.lang.String name,
                float[] rot,
                float[] trans)
Constructs a new CASTRSet with the given name, and using the given rotation and translation arrays (which are not copied).


CASTRSet

public CASTRSet(int name4cc,
                float[] rot,
                float[] trans)
Constructs a new CASTRSet with the given (Four-CC) name, and using the given rotation and translation arrays (which are not copied).


CASTRSet

public CASTRSet(CASTRSet prs)
Constructs a new PR-Set, copied from the given one.


CASTRSet

public CASTRSet(JAInputStream jins)
         throws java.io.IOException
Constructs this PR-Set from the given stream.

Throws:
java.io.IOException
Method Detail

getFourCC

public int getFourCC()
Returns this PR-Set's name.


getTranslation

public float[] getTranslation()
Returns this PR-Set's translation array (length 3).


getRotation

public float[] getRotation()
Returns this PR-Set's rotation array [xyzw] (length 4).


set

public void set(CASTRSet prs)
Sets this PR-Set to be a copy the given one.


save

public void save(JAOutputStream jouts)
          throws java.io.IOException
Writes this PR-Set's data onto the given stream.

Throws:
java.io.IOException