|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used for accessing a Scene3DObjectAnimator.
Scene3DObjectAnimator is intended to animate a Scene3DObject.
Scene3DObjectAnimator enable time-based animation on Scene3DObject
IPoint3D
,
IScene3DObject
,
DzzD
Method Summary | |
int |
addKeyPosition(int keyTime,
IPoint3D position)
Add position key. |
int |
addKeyRotation(int keyTime,
IPoint3D rotation,
IPoint3D axis,
double angle)
Add rotation key. |
long |
getPauseTime()
Gets pause time for this Scene3DObjectAnimator. |
long |
getStartTime()
Gets start time for this Scene3DObjectAnimator. |
ITimer |
getTimer()
Gets current Timer for this this Scene3DObjectAnimator. |
void |
pause()
Pause this Scene3DObjectAnimator. |
void |
play()
Play position and rotation track using its Timer. |
void |
playAt(int time)
Play position and rotation track using the given time. |
void |
playPositionAt(int time)
Play position track using the given time. |
void |
playRotationAt(int time)
Play rotation track using the given time. |
void |
resume()
Resume this Scene3DObjectAnimator at the last pause time (start time may be updated). |
void |
setLoop(int loopTime)
Sets loop time for this Scene3DObjectAnimator. |
void |
setTimer(ITimer t)
Sets Timer to use for this Scene3DObjectAnimator. |
void |
start()
Start this Scene3DObjectAnimator . |
void |
start(long start)
Start this Scene3DObjectAnimator starting at the given time. |
void |
start(long start,
long end)
Start this Scene3DObjectAnimator and specify a time range to use. |
void |
stop()
Stop this Scene3DObjectAnimator. |
Method Detail |
public int addKeyPosition(int keyTime, IPoint3D position)
keyTime
- time of the new keyposition
- 3D position for the new keypublic int addKeyRotation(int keyTime, IPoint3D rotation, IPoint3D axis, double angle)
keyTime
- time of the new keyrotation
- 3D rotation for the new key (performed in order rx,rz,ry)axis
- 3D axis used to reach rotationangle
- angle to turn around the given axis given in radianpublic void playRotationAt(int time)
time
- time to play rotation trackpublic void playPositionAt(int time)
time
- time to play position trackpublic void playAt(int time)
time
- time to play position and rotation trackpublic ITimer getTimer()
public void setTimer(ITimer t)
public long getStartTime()
public long getPauseTime()
public void setLoop(int loopTime)
public void pause()
public void resume()
public void start()
public void start(long start)
start
- starting time to begin play in mspublic void start(long start, long end)
start
- starting time to begin play in msend
- maximum time to play in mspublic void play()
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |