|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAnimationTrack
| Nested Class Summary | |
|---|---|
static interface |
IAnimationTrack.IKeyFrameIndexMap
|
static interface |
IAnimationTrack.IKeyFrameList
|
static interface |
IAnimationTrack.IListener
|
| Method Summary | |
|---|---|
void |
_buildKeyFrameIndexMap(Ivector<java.lang.Float> keyFrameTimes)
Internal method to build keyframe time index map to translate global lower bound index to local lower bound index. |
void |
_collectKeyFrameTimes(Ivector<java.lang.Float> keyFrameTimes)
Internal method to collect keyframe times, in unique, ordered format. |
void |
_keyFrameDataChanged()
Internal method used to tell the track that keyframe data has been changed, which may cause it to rebuild some internal data. |
void |
apply(ITimeIndex timeIndex,
float weight,
float scale)
Applies an animation track to the designated target. |
IKeyFrame |
createKeyFrame(float timePos)
Creates a new and adds it to this animation at the given time index. |
int |
getHandle()
Get the handle associated with this track. |
void |
getInterpolatedKeyFrame(ITimeIndex timeIndex,
IKeyFrame kf)
Gets a object which contains the interpolated transforms at the time index specified. |
IKeyFrame |
getKeyFrame(int index)
Returns the at the specified index. |
float |
getKeyFramesAtTime(ITimeIndex timeIndex,
NativeObjectPointer<IKeyFrame> keyFrame1,
NativeObjectPointer<IKeyFrame> keyFrame2,
IntegerPointer firstKeyIndex)
Gets the 2 objects which are active at the time given, and the blend value between them. |
int |
getNumKeyFrames()
Returns the number of keyframes in this animation. |
IAnimation |
getParent()
Returns the parent object for this track. |
boolean |
hasNonZeroKeyFrames()
Method to determine if this track has any KeyFrames which are doing anything useful - can be used to determine if this track can be optimised out. |
void |
optimise()
Optimise the current track by removing any duplicate keyframes. |
void |
removeAllKeyFrames()
Removes all the KeyFrames from this track. |
void |
removeKeyFrame(int index)
Removes a by it's index. |
void |
setListener(IAnimationTrack.IListener l)
Set a listener for this track. |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
int getHandle()
int getNumKeyFrames()
IKeyFrame getKeyFrame(int index)
float getKeyFramesAtTime(ITimeIndex timeIndex,
NativeObjectPointer<IKeyFrame> keyFrame1,
NativeObjectPointer<IKeyFrame> keyFrame2,
IntegerPointer firstKeyIndex)
IKeyFrame createKeyFrame(float timePos)
void removeKeyFrame(int index)
void removeAllKeyFrames()
void getInterpolatedKeyFrame(ITimeIndex timeIndex,
IKeyFrame kf)
void apply(ITimeIndex timeIndex,
float weight,
float scale)
void _keyFrameDataChanged()
boolean hasNonZeroKeyFrames()
void optimise()
void _collectKeyFrameTimes(Ivector<java.lang.Float> keyFrameTimes)
void _buildKeyFrameIndexMap(Ivector<java.lang.Float> keyFrameTimes)
void setListener(IAnimationTrack.IListener l)
IAnimation getParent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||