org.ogre4j
Interface IAnimationTrack

All Superinterfaces:
IAllocatedObject<IAnimationAllocPolicy>, IAnimationAllocatedObject, INativeObject
All Known Subinterfaces:
INodeAnimationTrack, INumericAnimationTrack, IVertexAnimationTrack
All Known Implementing Classes:
AnimationTrack, NodeAnimationTrack, NumericAnimationTrack, VertexAnimationTrack

public interface IAnimationTrack
extends INativeObject, IAnimationAllocatedObject


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

getHandle

int getHandle()
Get the handle associated with this track.


getNumKeyFrames

int getNumKeyFrames()
Returns the number of keyframes in this animation.


getKeyFrame

IKeyFrame getKeyFrame(int index)
Returns the at the specified index.


getKeyFramesAtTime

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.


createKeyFrame

IKeyFrame createKeyFrame(float timePos)
Creates a new and adds it to this animation at the given time index.


removeKeyFrame

void removeKeyFrame(int index)
Removes a by it's index.


removeAllKeyFrames

void removeAllKeyFrames()
Removes all the KeyFrames from this track.


getInterpolatedKeyFrame

void getInterpolatedKeyFrame(ITimeIndex timeIndex,
                             IKeyFrame kf)
Gets a object which contains the interpolated transforms at the time index specified.


apply

void apply(ITimeIndex timeIndex,
           float weight,
           float scale)
Applies an animation track to the designated target.


_keyFrameDataChanged

void _keyFrameDataChanged()
Internal method used to tell the track that keyframe data has been changed, which may cause it to rebuild some internal data.


hasNonZeroKeyFrames

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.


optimise

void optimise()
Optimise the current track by removing any duplicate keyframes.


_collectKeyFrameTimes

void _collectKeyFrameTimes(Ivector<java.lang.Float> keyFrameTimes)
Internal method to collect keyframe times, in unique, ordered format.


_buildKeyFrameIndexMap

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.


setListener

void setListener(IAnimationTrack.IListener l)
Set a listener for this track.


getParent

IAnimation getParent()
Returns the parent object for this track.



Copyright © 2007 netAllied GmbH. All Rights Reserved.