org.ogre4j
Interface INodeAnimationTrack

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

public interface INodeAnimationTrack
extends INativeObject, IAnimationTrack


Nested Class Summary
static interface INodeAnimationTrack.ISplines
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IAnimationTrack
IAnimationTrack.IKeyFrameIndexMap, IAnimationTrack.IKeyFrameList, IAnimationTrack.IListener
 
Method Summary
 INodeAnimationTrack _clone(IAnimation newParent)
          Clone this track (internal use only)
 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.
 void applyToNode(INode node, ITimeIndex timeIndex, float weight, float scale)
          As the 'apply' method but applies to a specified instead of associated node.
 ITransformKeyFrame createNodeKeyFrame(float timePos)
          Creates a new and adds it to this animation at the given time index.
 INode getAssociatedNode()
          Returns a pointer to the associated object (if any).
 void getInterpolatedKeyFrame(ITimeIndex timeIndex, IKeyFrame kf)
          Gets a object which contains the interpolated transforms at the time index specified.
 ITransformKeyFrame getNodeKeyFrame(int index)
          Returns the at the specified index.
 boolean getUseShortestRotationPath()
          Gets the method of rotation calculation
 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 setAssociatedNode(INode node)
          Sets the associated object which will be automatically affected by calls to 'apply'.
 void setUseShortestRotationPath(boolean useShortestPath)
          Sets the method of rotation calculation
 
Methods inherited from interface org.ogre4j.IAnimationTrack
_buildKeyFrameIndexMap, _collectKeyFrameTimes, 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

createNodeKeyFrame

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


getAssociatedNode

INode getAssociatedNode()
Returns a pointer to the associated object (if any).


setAssociatedNode

void setAssociatedNode(INode node)
Sets the associated object which will be automatically affected by calls to 'apply'.


applyToNode

void applyToNode(INode node,
                 ITimeIndex timeIndex,
                 float weight,
                 float scale)
As the 'apply' method but applies to a specified instead of associated node.


setUseShortestRotationPath

void setUseShortestRotationPath(boolean useShortestPath)
Sets the method of rotation calculation


getUseShortestRotationPath

boolean getUseShortestRotationPath()
Gets the method of rotation calculation


getInterpolatedKeyFrame

void getInterpolatedKeyFrame(ITimeIndex timeIndex,
                             IKeyFrame kf)
Description copied from interface: IAnimationTrack
Gets a object which contains the interpolated transforms at the time index specified.

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

_keyFrameDataChanged

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

Specified by:
_keyFrameDataChanged in interface IAnimationTrack

getNodeKeyFrame

ITransformKeyFrame getNodeKeyFrame(int index)
Returns the at the specified index.


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

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



Copyright © 2007 netAllied GmbH. All Rights Reserved.