cas
Class CASFrame

java.lang.Object
  extended by cas.CASFrame

public class CASFrame
extends java.lang.Object

A CASFrame contains the bones-and-morphs data needed to render a single animation frame for an ARP avatar.


Constructor Summary
CASFrame()
          Default constructor.
CASFrame(CASFrame frame)
          Constructs a frame by copying all the data from the given one.
CASFrame(CASTRSet[] bones, CASMorph[] morphs)
          Constructs a frame using the given arrays.
CASFrame(float time, CASTRSet[] bones, CASMorph[] morphs)
          Constructs a frame using the given time-stamp and data arrays.
CASFrame(float time, float dur, CASTRSet[] bones, CASMorph[] morphs)
          Constructs a frame using the given time-stamp, duration, and data arrays.
CASFrame(JAInputStream jins)
          Constructs this CASFrame from the given stream.
 
Method Summary
 void copy(float time, float dur, CASTRSet[] bones, CASMorph[] morphs)
          Completely redefines this frame by creating its own copies of all the given data.
 float getDuration()
          Gets the time-stamp for this frame.
 CASMorph[] getMorphs()
          Gets the morph array for this frame.
 CASTRSet[] getPRSets()
          Gets the PR-Set (bones) array for this frame.
 float getTime()
          Gets the time-stamp for this frame.
 void save(JAOutputStream jouts)
          Writes this CASFrame to the given stream.
 void saveText(java.io.PrintWriter pwrtr)
          Writes a legible version of this Frame (actually, just its time-stamp) to the given writer.
 void set(float time, float dur, CASTRSet[] bones, CASMorph[] morphs)
          Completely redefines this frame by attaching the given data to it (that is, the array references are copied, not the arrays themselves).
 void setDuration(float dur)
          Sets the duration for this frame.
 void setTime(float ts)
          Sets the time-stamp for this frame.
 void tmpDUMP(java.io.PrintWriter pw)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CASFrame

public CASFrame()
Default constructor.


CASFrame

public CASFrame(CASTRSet[] bones,
                CASMorph[] morphs)
Constructs a frame using the given arrays.


CASFrame

public CASFrame(float time,
                CASTRSet[] bones,
                CASMorph[] morphs)
Constructs a frame using the given time-stamp and data arrays.


CASFrame

public CASFrame(float time,
                float dur,
                CASTRSet[] bones,
                CASMorph[] morphs)
Constructs a frame using the given time-stamp, duration, and data arrays.


CASFrame

public CASFrame(CASFrame frame)
Constructs a frame by copying all the data from the given one. [## CURRENTLY UNUSED ##]


CASFrame

public CASFrame(JAInputStream jins)
         throws java.io.IOException
Constructs this CASFrame from the given stream.

Throws:
java.io.IOException
Method Detail

set

public void set(float time,
                float dur,
                CASTRSet[] bones,
                CASMorph[] morphs)
Completely redefines this frame by attaching the given data to it (that is, the array references are copied, not the arrays themselves).


copy

public void copy(float time,
                 float dur,
                 CASTRSet[] bones,
                 CASMorph[] morphs)
Completely redefines this frame by creating its own copies of all the given data. [## CURRENTLY UNUSED ##]


getTime

public float getTime()
Gets the time-stamp for this frame.


getDuration

public float getDuration()
Gets the time-stamp for this frame.


getPRSets

public CASTRSet[] getPRSets()
Gets the PR-Set (bones) array for this frame.


getMorphs

public CASMorph[] getMorphs()
Gets the morph array for this frame.


setTime

public void setTime(float ts)
Sets the time-stamp for this frame.


setDuration

public void setDuration(float dur)
Sets the duration for this frame.


save

public void save(JAOutputStream jouts)
          throws java.io.IOException
Writes this CASFrame to the given stream.

Throws:
java.io.IOException

tmpDUMP

public void tmpDUMP(java.io.PrintWriter pw)
             throws java.io.IOException
Throws:
java.io.IOException

saveText

public void saveText(java.io.PrintWriter pwrtr)
Writes a legible version of this Frame (actually, just its time-stamp) to the given writer.