org.ogre4j
Interface IAnimation

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

public interface IAnimation
extends INativeObject, IAnimationAllocatedObject


Nested Class Summary
static interface IAnimation.IKeyFrameTimeList
           
static interface IAnimation.INodeTrackIterator
           
static interface IAnimation.INodeTrackList
           
static interface IAnimation.INumericTrackIterator
           
static interface IAnimation.INumericTrackList
           
static interface IAnimation.ITrackHandleList
           
static interface IAnimation.IVertexTrackIterator
           
static interface IAnimation.IVertexTrackList
           
 
Method Summary
 void _collectIdentityNodeTracks(IAnimation.ITrackHandleList tracks)
          Internal method for collecting identity node tracks.
 void _destroyNodeTracks(IAnimation.ITrackHandleList tracks)
          Internal method for destroy given node tracks.
 IAnimation.INodeTrackList _getNodeTrackList()
           
 IAnimation.INumericTrackList _getNumericTrackList()
           
 void _getTimeIndex(ITimeIndex returnValue, float timePos)
          Internal method used to convert time position to time index object.
 IAnimation.IVertexTrackList _getVertexTrackList()
           
 void _keyFrameListChanged()
          Internal method used to tell the animation that keyframe list has been changed, which may cause it to rebuild some internal data
 void apply(float timePos, float weight, float scale)
          Applies an animation given a specific time point and weight.
 void apply(IEntity entity, float timePos, float weight, boolean software, boolean hardware)
          Applies all vertex tracks given a specific time point and weight to a given entity.
 void apply(ISkeleton skeleton, float timePos, float weight, float scale)
          Applies all node tracks given a specific time point and weight to a given skeleton.
 void apply(ISkeleton skeleton, float timePos, float weight, IAnimationState.IBoneBlendMask blendMask, float scale)
          Applies all node tracks given a specific time point and weight to a given skeleton.
 IAnimation clone(java.lang.String newName)
          Clone this animation.
 INodeAnimationTrack createNodeTrack(int handle)
          Creates a for animating a .
 INodeAnimationTrack createNodeTrack(int handle, INode node)
          Creates a new automatically associated with a .
 INumericAnimationTrack createNumericTrack(int handle)
          Creates a for animating any numeric value.
 INumericAnimationTrack createNumericTrack(int handle, IAnimableValuePtr anim)
          Creates a and associates it with an animable.
 IVertexAnimationTrack createVertexTrack(int handle, IVertexData data, VertexAnimationType animType)
          Creates a and associates it with .
 IVertexAnimationTrack createVertexTrack(int handle, VertexAnimationType animType)
          Creates a for animating vertex position data.
 void destroyAllNodeTracks()
          Removes and destroys all tracks making up this animation.
 void destroyAllNumericTracks()
          Removes and destroys all tracks making up this animation.
 void destroyAllTracks()
          Removes and destroys all tracks making up this animation.
 void destroyAllVertexTracks()
          Removes and destroys all tracks making up this animation.
 void destroyNodeTrack(int handle)
          Destroys the node track with the given handle.
 void destroyNumericTrack(int handle)
          Destroys the numeric track with the given handle.
 void destroyVertexTrack(int handle)
          Destroys the Vertex track with the given handle.
 Animation.InterpolationMode getInterpolationMode()
          Gets the current interpolation mode of this animation.
 float getLength()
          Gets the total length of the animation.
 java.lang.String getName()
          Gets the name of this animation.
 INodeAnimationTrack getNodeTrack(int handle)
          Gets a node track by it's handle.
 void getNodeTrackIterator(IAnimation.INodeTrackIterator returnValue)
           
 INumericAnimationTrack getNumericTrack(int handle)
          Gets a numeric track by it's handle.
 void getNumericTrackIterator(IAnimation.INumericTrackIterator returnValue)
           
 int getNumNodeTracks()
          Gets the number of objects contained in this animation.
 int getNumNumericTracks()
          Gets the number of objects contained in this animation.
 int getNumVertexTracks()
          Gets the number of objects contained in this animation.
 Animation.RotationInterpolationMode getRotationInterpolationMode()
          Gets the current rotation interpolation mode of this animation.
 IVertexAnimationTrack getVertexTrack(int handle)
          Gets a Vertex track by it's handle.
 void getVertexTrackIterator(IAnimation.IVertexTrackIterator returnValue)
           
 boolean hasNodeTrack(int handle)
          Does a track exist with the given handle?
 boolean hasNumericTrack(int handle)
          Does a track exist with the given handle?
 boolean hasVertexTrack(int handle)
          Does a track exist with the given handle?
 void optimise(boolean discardIdentityNodeTracks)
          Optimise an animation by removing unnecessary tracks and keyframes.
 void setInterpolationMode(Animation.InterpolationMode im)
          Tells the animation how to interpolate between keyframes.
 void setLength(float len)
          Sets the length of the animation.
 void setRotationInterpolationMode(Animation.RotationInterpolationMode im)
          Tells the animation how to interpolate rotations.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

getName

java.lang.String getName()
Gets the name of this animation.


getLength

float getLength()
Gets the total length of the animation.


setLength

void setLength(float len)
Sets the length of the animation.


createNodeTrack

INodeAnimationTrack createNodeTrack(int handle)
Creates a for animating a .


createNumericTrack

INumericAnimationTrack createNumericTrack(int handle)
Creates a for animating any numeric value.


createVertexTrack

IVertexAnimationTrack createVertexTrack(int handle,
                                        VertexAnimationType animType)
Creates a for animating vertex position data.


createNodeTrack

INodeAnimationTrack createNodeTrack(int handle,
                                    INode node)
Creates a new automatically associated with a .


createNumericTrack

INumericAnimationTrack createNumericTrack(int handle,
                                          IAnimableValuePtr anim)
Creates a and associates it with an animable.


createVertexTrack

IVertexAnimationTrack createVertexTrack(int handle,
                                        IVertexData data,
                                        VertexAnimationType animType)
Creates a and associates it with .


getNumNodeTracks

int getNumNodeTracks()
Gets the number of objects contained in this animation.


getNodeTrack

INodeAnimationTrack getNodeTrack(int handle)
Gets a node track by it's handle.


hasNodeTrack

boolean hasNodeTrack(int handle)
Does a track exist with the given handle?


getNumNumericTracks

int getNumNumericTracks()
Gets the number of objects contained in this animation.


getNumericTrack

INumericAnimationTrack getNumericTrack(int handle)
Gets a numeric track by it's handle.


hasNumericTrack

boolean hasNumericTrack(int handle)
Does a track exist with the given handle?


getNumVertexTracks

int getNumVertexTracks()
Gets the number of objects contained in this animation.


getVertexTrack

IVertexAnimationTrack getVertexTrack(int handle)
Gets a Vertex track by it's handle.


hasVertexTrack

boolean hasVertexTrack(int handle)
Does a track exist with the given handle?


destroyNodeTrack

void destroyNodeTrack(int handle)
Destroys the node track with the given handle.


destroyNumericTrack

void destroyNumericTrack(int handle)
Destroys the numeric track with the given handle.


destroyVertexTrack

void destroyVertexTrack(int handle)
Destroys the Vertex track with the given handle.


destroyAllTracks

void destroyAllTracks()
Removes and destroys all tracks making up this animation.


destroyAllNodeTracks

void destroyAllNodeTracks()
Removes and destroys all tracks making up this animation.


destroyAllNumericTracks

void destroyAllNumericTracks()
Removes and destroys all tracks making up this animation.


destroyAllVertexTracks

void destroyAllVertexTracks()
Removes and destroys all tracks making up this animation.


apply

void apply(float timePos,
           float weight,
           float scale)
Applies an animation given a specific time point and weight.


apply

void apply(ISkeleton skeleton,
           float timePos,
           float weight,
           float scale)
Applies all node tracks given a specific time point and weight to a given skeleton.


apply

void apply(ISkeleton skeleton,
           float timePos,
           float weight,
           IAnimationState.IBoneBlendMask blendMask,
           float scale)
Applies all node tracks given a specific time point and weight to a given skeleton.


apply

void apply(IEntity entity,
           float timePos,
           float weight,
           boolean software,
           boolean hardware)
Applies all vertex tracks given a specific time point and weight to a given entity.


setInterpolationMode

void setInterpolationMode(Animation.InterpolationMode im)
Tells the animation how to interpolate between keyframes.


getInterpolationMode

Animation.InterpolationMode getInterpolationMode()
Gets the current interpolation mode of this animation.


setRotationInterpolationMode

void setRotationInterpolationMode(Animation.RotationInterpolationMode im)
Tells the animation how to interpolate rotations.


getRotationInterpolationMode

Animation.RotationInterpolationMode getRotationInterpolationMode()
Gets the current rotation interpolation mode of this animation.


_getNodeTrackList

IAnimation.INodeTrackList _getNodeTrackList()

getNodeTrackIterator

void getNodeTrackIterator(IAnimation.INodeTrackIterator returnValue)

_getNumericTrackList

IAnimation.INumericTrackList _getNumericTrackList()

getNumericTrackIterator

void getNumericTrackIterator(IAnimation.INumericTrackIterator returnValue)

_getVertexTrackList

IAnimation.IVertexTrackList _getVertexTrackList()

getVertexTrackIterator

void getVertexTrackIterator(IAnimation.IVertexTrackIterator returnValue)

optimise

void optimise(boolean discardIdentityNodeTracks)
Optimise an animation by removing unnecessary tracks and keyframes.


_collectIdentityNodeTracks

void _collectIdentityNodeTracks(IAnimation.ITrackHandleList tracks)
Internal method for collecting identity node tracks.


_destroyNodeTracks

void _destroyNodeTracks(IAnimation.ITrackHandleList tracks)
Internal method for destroy given node tracks.


clone

IAnimation clone(java.lang.String newName)
Clone this animation.


_keyFrameListChanged

void _keyFrameListChanged()
Internal method used to tell the animation that keyframe list has been changed, which may cause it to rebuild some internal data


_getTimeIndex

void _getTimeIndex(ITimeIndex returnValue,
                   float timePos)
Internal method used to convert time position to time index object.



Copyright © 2007 netAllied GmbH. All Rights Reserved.