public class VgAnimation extends VgReferenced
Constructor and Description |
---|
VgAnimation() |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
float |
getCursor()
This method return the current cursor position in the animation's
timeline.
|
float |
getDuration()
This method returns the duration of the animation (in seconds).
|
boolean |
isPlaying()
This method retruns a boolean value that tells whether the animation
is currently playing.
|
void |
pause()
This method pauses the animation at it's current time value.
|
void |
seek(float pTime)
This method sets the animation's current time and forces an injection of the animation values.
|
void |
start() |
void |
start(float pDelay) |
void |
start(float pDelay,
float pStart) |
void |
start(float pDelay,
float pStart,
float pEnd) |
void |
start(float pDelay,
float pStart,
float pEnd,
float pDuration)
This method starts the animation.
|
void |
stop()
This method stops the animation and sets back the time value to 0.
|
getNbReferences, ref, unref
public void delete()
delete
in class VgReferenced
public void start(float pDelay, float pStart, float pEnd, float pDuration)
pDelay
- The delay to apply before effectively playing the animation in seconds. Default is 0.0.pStart
- The start time in the animation in seconds (if negative, the animation starts at it's current poisition). Default is -1.0.pEnd
- The targeted position in the animation (if negative, the animation ends when it's timeline ends). Default is -1.0.pDuration
- The time in seconds the animation will take to go from start to end (not including delay). If negative, means abs(end-start). Default is -1.0.public void start(float pDelay, float pStart, float pEnd)
public void start(float pDelay, float pStart)
public void start(float pDelay)
public void start()
public void stop()
public void pause()
public void seek(float pTime)
pTime
- The time value to set (will be clamped between 0 and duration)public boolean isPlaying()
public float getDuration()
public float getCursor()