|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsigmlgen.GSiGMLSign
sigmlanim.AnimatedSign
public class AnimatedSign
This class extends a GSiGMLSign
by attaching
the corresponding seqence of animation frames to it.
Constructor Summary | |
---|---|
AnimatedSign(sigmlgen.GSiGMLSign sign)
Constructs a new sign object for the given GSiGMLSign ,
initially with no associated animation frames. |
|
AnimatedSign(java.lang.String gloss,
int base,
CASFrame[] frms)
Constructs a new sign object with the given frames at the given frame base; the inherited GSiGMLSign will have no data
apart from the given gloss name. |
|
AnimatedSign(java.lang.String gsigml,
java.lang.String gloss,
sigmlgen.playerctrl.PlayerSettings ps)
Constructs a new sign object with the given gestural SiGML, gloss and player settings, and with no associated animation frames. |
Method Summary | |
---|---|
int |
compareFrames(int f)
Returns an index comparison value for the frames of this sign with the given frame: the result is: negative if this sign is before the given frame; zero if it contains the frame; positive if it is after the frame. |
void |
ensureBaseIndex(int lo)
Ensures that this sign's base frame index has the given value, achieved by adjusting its base and limit values if necessary. |
void |
ensureStartTime(float t)
Ensures that this sign's start time has the given value, achieved in the case where the given start time differs significantly from the current start time by adjusting each frame's timestamp by the amount of that difference. |
CASFrame |
getFrame(int f)
Returns frame f, assuming this.hasFrame(f). |
CASFrame[] |
getFrames()
Returns the animation frames for this sign. |
int |
getFramesBase()
Returns the lower limit for this sign's frame range. |
int |
getFramesLimit()
Returns the upper limit for this sign's frame range. |
float |
getLimitTime(float ltdefault)
Returns this sign's limit time, that is, the natural timestamp for the next frame following this sign's final frame, or the given default value in the case where this sign's frame list is empty. |
float |
getStartTime(float stdefault)
Returns the timestamp of this sign's initial frame, or the given default value in the case where this sign's frame list is empty. |
boolean |
hasFrame(int f)
Tests whether this frame index is in the range associated with this sign. |
void |
setFrames(CASFrame[] frms,
int base)
Attaches the given sequence of animation frames to this sign, with the given base frame index. |
Methods inherited from class sigmlgen.GSiGMLSign |
---|
getAmbientMotionFlags, getAvatarSettings, getCameraSettings, getGloss, getSiGMLForSign, hasPlayerSettings, setAvatarSettings, setCameraSettings, setPlayerSettings, supplementPlayerSettings |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnimatedSign(sigmlgen.GSiGMLSign sign)
GSiGMLSign
,
initially with no associated animation frames.
public AnimatedSign(java.lang.String gsigml, java.lang.String gloss, sigmlgen.playerctrl.PlayerSettings ps)
public AnimatedSign(java.lang.String gloss, int base, CASFrame[] frms)
GSiGMLSign
will have no data
apart from the given gloss name.
Method Detail |
---|
public CASFrame[] getFrames()
public CASFrame getFrame(int f)
public int getFramesBase()
public int getFramesLimit()
public boolean hasFrame(int f)
public int compareFrames(int f)
public float getStartTime(float stdefault)
public float getLimitTime(float ltdefault)
public void setFrames(CASFrame[] frms, int base)
public void ensureBaseIndex(int lo)
public void ensureStartTime(float t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |