|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.m3g.Object3D
javax.microedition.m3g.KeyframeSequence
Encapsulates animation data as a sequence of time-stamped, vector-valued keyframes. Each keyframe represents the value of an animated quantity at a specific time instant.
Field Summary | |
static int |
CONSTANT
A parameter to setRepeatMode, specifying that this sequence is to be played back just once and not repeated. |
static int |
LINEAR
A constructor parameter that specifies linear interpolation between keyframes. |
static int |
LOOP
A parameter to setRepeatMode, specifying that this sequence is to be repeated indefinitely. |
static int |
SLERP
A constructor parameter that specifies spherical linear interpolation of quaternions. |
static int |
SPLINE
A constructor parameter that specifies spline interpolation between keyframes. |
static int |
SQUAD
A constructor parameter that specifies spline interpolation of quaternions. |
static int |
STEP
A constructor parameter that specifies stepping from one keyframe value to the next. |
Constructor Summary | |
KeyframeSequence(int numKeyframes,
int numComponents,
int interpolation)
Constructs a new keyframe sequence with specified interpolation method, number of components per keyframe, and number of keyframes. |
Method Summary | |
int |
getDuration()
Gets the duration of this sequence. |
int |
getRepeatMode()
Retrieves the current repeat mode of this KeyframeSequence. |
void |
setDuration(int duration)
Sets the duration of this sequence in sequence time units. |
void |
setKeyframe(int index,
int time,
float[] value)
Sets the time position and value of the specified keyframe. |
void |
setRepeatMode(int mode)
Sets the repeat mode of this KeyframeSequence. |
void |
setValidRange(int first,
int last)
Selects the range of keyframes that are included in the animation. |
Methods inherited from class javax.microedition.m3g.Object3D |
addAnimationTrack, animate, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LINEAR
public static final int SLERP
public static final int SPLINE
public static final int SQUAD
public static final int STEP
public static final int CONSTANT
public static final int LOOP
Constructor Detail |
public KeyframeSequence(int numKeyframes, int numComponents, int interpolation)
Method Detail |
public void setKeyframe(int index, int time, float[] value)
public void setValidRange(int first, int last)
public void setDuration(int duration)
public int getDuration()
public void setRepeatMode(int mode)
public int getRepeatMode()
|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner. All Rights Reserved. BenQ Corp. is a trademark licensee of Siemens AG. |
For further information about Mobility Toolkit (MTK) visit our Developer Portal. |