org.ogre4j
Interface IVertexAnimationTrack

All Superinterfaces:
IAllocatedObject<IAnimationAllocPolicy>, IAnimationAllocatedObject, IAnimationTrack, INativeObject
All Known Implementing Classes:
VertexAnimationTrack

public interface IVertexAnimationTrack
extends INativeObject, IAnimationTrack


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ogre4j.IAnimationTrack
IAnimationTrack.IKeyFrameIndexMap, IAnimationTrack.IKeyFrameList, IAnimationTrack.IListener
 
Method Summary
 IVertexAnimationTrack _clone(IAnimation newParent)
          Clone this track (internal use only)
 void apply(ITimeIndex timeIndex, float weight, float scale)
          Applies an animation track to the designated target.
 void applyToVertexData(IVertexData data, ITimeIndex timeIndex, float weight, IPoseList poseList)
          As the 'apply' method but applies to specified instead of associated data.
 IVertexMorphKeyFrame createVertexMorphKeyFrame(float timePos)
          Creates a new morph and adds it to this animation at the given time index.
 IVertexPoseKeyFrame createVertexPoseKeyFrame(float timePos)
          Creates the single pose and adds it to this animation.
 VertexAnimationType getAnimationType()
          Get the type of vertex animation we're performing.
 IVertexData getAssociatedVertexData()
          Gets the associated which this track will update.
 void getInterpolatedKeyFrame(ITimeIndex timeIndex, IKeyFrame kf)
          This method in fact does nothing, since interpolation is not performed inside the keyframes for this type of track.
 VertexAnimationTrack.TargetMode getTargetMode()
           
 IVertexMorphKeyFrame getVertexMorphKeyFrame(int index)
          Returns the morph at the specified index.
 IVertexPoseKeyFrame getVertexPoseKeyFrame(int index)
          Returns the pose at the specified index.
 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 setAssociatedVertexData(IVertexData data)
          Sets the associated which this track will update.
 void setTargetMode(VertexAnimationTrack.TargetMode m)
           
 
Methods inherited from interface org.ogre4j.IAnimationTrack
_buildKeyFrameIndexMap, _collectKeyFrameTimes, _keyFrameDataChanged, createKeyFrame, getHandle, getKeyFrame, getKeyFramesAtTime, getNumKeyFrames, getParent, removeAllKeyFrames, removeKeyFrame, setListener
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

getAnimationType

VertexAnimationType getAnimationType()
Get the type of vertex animation we're performing.


createVertexMorphKeyFrame

IVertexMorphKeyFrame createVertexMorphKeyFrame(float timePos)
Creates a new morph and adds it to this animation at the given time index.


createVertexPoseKeyFrame

IVertexPoseKeyFrame createVertexPoseKeyFrame(float timePos)
Creates the single pose and adds it to this animation.


getInterpolatedKeyFrame

void getInterpolatedKeyFrame(ITimeIndex timeIndex,
                             IKeyFrame kf)
This method in fact does nothing, since interpolation is not performed inside the keyframes for this type of track.

Specified by:
getInterpolatedKeyFrame in interface IAnimationTrack

apply

void apply(ITimeIndex timeIndex,
           float weight,
           float scale)
Description copied from interface: IAnimationTrack
Applies an animation track to the designated target.

Specified by:
apply in interface IAnimationTrack

applyToVertexData

void applyToVertexData(IVertexData data,
                       ITimeIndex timeIndex,
                       float weight,
                       IPoseList poseList)
As the 'apply' method but applies to specified instead of associated data.


getVertexMorphKeyFrame

IVertexMorphKeyFrame getVertexMorphKeyFrame(int index)
Returns the morph at the specified index.


getVertexPoseKeyFrame

IVertexPoseKeyFrame getVertexPoseKeyFrame(int index)
Returns the pose at the specified index.


setAssociatedVertexData

void setAssociatedVertexData(IVertexData data)
Sets the associated which this track will update.


getAssociatedVertexData

IVertexData getAssociatedVertexData()
Gets the associated which this track will update.


setTargetMode

void setTargetMode(VertexAnimationTrack.TargetMode m)

getTargetMode

VertexAnimationTrack.TargetMode getTargetMode()

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.

Specified by:
hasNonZeroKeyFrames in interface IAnimationTrack

optimise

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

Specified by:
optimise in interface IAnimationTrack

_clone

IVertexAnimationTrack _clone(IAnimation newParent)
Clone this track (internal use only)



Copyright © 2007 netAllied GmbH. All Rights Reserved.