|
||||||||||
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,
float t,
float dur)
Constructs a new frame with the given timing values and the morphs and bones data taken from the given stream. |
Method Summary | |
---|---|
void |
adjustTime(float tadj)
Adjusts this frame's timestamp by the given amount. |
void |
copy(float time,
float dur,
CASTRSet[] bones,
CASMorph[] morphvec)
Completely redefines this frame by creating its own copies of all the given data. |
float |
getDuration()
Gets the timestamp for this frame. |
CASMorph |
getMorph(int morph4cc)
Returns this frame's morph of the given name if it has one, or null otherwise. |
CASMorph[] |
getMorphs()
Gets the morph array for this frame. |
float |
getTime()
Gets the timestamp for this frame. |
CASTRSet |
getTRSet(int bone4cc)
Returns this frame's TR-set of the given name, if it has one, or null otherwise. |
CASTRSet[] |
getTRSets()
Gets the TR-Set (bones) array 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 timestamp for this frame. |
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, float t, float dur) 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[] morphvec)
public float getTime()
public float getDuration()
public CASTRSet[] getTRSets()
public CASMorph[] getMorphs()
public CASTRSet getTRSet(int bone4cc)
null
otherwise.
public CASMorph getMorph(int morph4cc)
null
otherwise.
public void setTime(float ts)
public void adjustTime(float tadj)
public void setDuration(float dur)
public void save(JAOutputStream jouts) throws java.io.IOException
java.io.IOException
public void saveText(java.io.PrintWriter pwrtr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |