public class SiGMLAnimation extends java.lang.Object implements SiGMLAnimationBuildHandler
AnimatedSign
;CASFrame
.SignsArrayAccess
via getSignsArray()
.
The SignsArrayAccess
returned by this
method may grow dynamically after it has been supplied.Constructor and Description |
---|
SiGMLAnimation(float fps)
Constructs a new animation which is initially empty and which
is expected to be built dynamically via a suitable sequence of calls
on this animation's
SiGMLAnimationBuildHandler implementation. |
SiGMLAnimation(float fps,
AnimatedSign[] asigns)
Constructs a new animation from the given sequence of signs,
which are assumed already to have had animation frames attached
to them: the animation's frame sequence is constructed from
these individual sequences (before this constructor execution
completes).
|
SiGMLAnimation(float fps,
SiGMLAnimationLoadEventHandler saleh)
Constructs a new animation which is initially empty and which
is expected to be built dynamically via a suitable sequence of calls
on this animation's
SiGMLAnimationBuildHandler implementation,
reporting sign load events via the given handler. |
Modifier and Type | Method and Description |
---|---|
float |
animFPS()
Returns the frame-rate for this animation.
|
void |
asynchWriteCAS(java.lang.String AV,
java.io.File CAS_PATH)
Using a separate thread, writes this animation as CAS data for
the given avatar to the given local filesystem path.
|
void |
beginSignSequence()
Accepts notificatation that input of the sign sequence is starting.
|
void |
endSignSequence()
Accetps notification that no further signs are to be added to the
sequence for this animation.
|
SignsArrayAccess |
getSignsArray()
Returns a signs-array-access implementatation for this animation.
|
void |
nextSignAnimationIsDone()
Accepts notification that animation has now been generated for
one more of this animation's signs.
|
void |
setNextSign(AnimatedSign as)
Accepts the given sign (not yet animated) as the next one in
this animation.
|
void |
waitForAnimationComplete()
Delays the calling thread if necessary until this animation
is complete.
2010-03: Currently unused. |
public SiGMLAnimation(float fps)
SiGMLAnimationBuildHandler
implementation.public SiGMLAnimation(float fps, SiGMLAnimationLoadEventHandler saleh)
SiGMLAnimationBuildHandler
implementation,
reporting sign load events via the given handler.public SiGMLAnimation(float fps, AnimatedSign[] asigns)
aSigns!=null
.public float animFPS()
public SignsArrayAccess getSignsArray()
public void waitForAnimationComplete() throws java.lang.InterruptedException
java.lang.InterruptedException
public void beginSignSequence()
beginSignSequence
in interface SiGMLAnimationBuildHandler
public void setNextSign(AnimatedSign as)
setNextSign
in interface SiGMLAnimationBuildHandler
public void nextSignAnimationIsDone()
nextSignAnimationIsDone
in interface SiGMLAnimationBuildHandler
public void endSignSequence()
endSignSequence
in interface SiGMLAnimationBuildHandler
public void asynchWriteCAS(java.lang.String AV, java.io.File CAS_PATH)