|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcas.CASFrame
public class CASFrame
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 |
|---|
public CASFrame()
public CASFrame(CASTRSet[] bones,
CASMorph[] morphs)
public CASFrame(float time,
CASTRSet[] bones,
CASMorph[] morphs)
public CASFrame(float time,
float dur,
CASTRSet[] bones,
CASMorph[] morphs)
public CASFrame(CASFrame frame)
public CASFrame(JAInputStream jins)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void set(float time,
float dur,
CASTRSet[] bones,
CASMorph[] morphs)
public void copy(float time,
float dur,
CASTRSet[] bones,
CASMorph[] morphs)
public float getTime()
public float getDuration()
public CASTRSet[] getPRSets()
public CASMorph[] getMorphs()
public void setTime(float ts)
public void setDuration(float dur)
public void save(JAOutputStream jouts)
throws java.io.IOException
java.io.IOException
public void tmpDUMP(java.io.PrintWriter pw)
throws java.io.IOException
java.io.IOExceptionpublic void saveText(java.io.PrintWriter pwrtr)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||