|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Animation
public class Animation
| Nested Class Summary | |
|---|---|
static class |
Animation.InterpolationMode
|
protected static class |
Animation.KeyFrameTimeList
|
static class |
Animation.NodeTrackIterator
|
static class |
Animation.NodeTrackList
|
static class |
Animation.NumericTrackIterator
|
static class |
Animation.NumericTrackList
|
static class |
Animation.RotationInterpolationMode
|
static class |
Animation.TrackHandleList
|
static class |
Animation.VertexTrackIterator
|
static class |
Animation.VertexTrackList
|
| Nested classes/interfaces inherited from interface org.ogre4j.IAnimation |
|---|
IAnimation.IKeyFrameTimeList, IAnimation.INodeTrackIterator, IAnimation.INodeTrackList, IAnimation.INumericTrackIterator, IAnimation.INumericTrackList, IAnimation.ITrackHandleList, IAnimation.IVertexTrackIterator, IAnimation.IVertexTrackList |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Animation(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Animation(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Animation(java.lang.String name,
float length)
You should not use this constructor directly, use the parent object such as instead. |
|
Animation(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| 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 |
delete()
Deletes the corresponding C++ object. |
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. |
void |
finalize()
|
static Animation.InterpolationMode |
getDefaultInterpolationMode()
Gets the default interpolation mode for all animations. |
static Animation.RotationInterpolationMode |
getDefaultRotationInterpolationMode()
Gets the default rotation interpolation mode for all animations. |
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. |
static void |
setDefaultInterpolationMode(Animation.InterpolationMode im)
Sets the default animation interpolation mode. |
static void |
setDefaultRotationInterpolationMode(Animation.RotationInterpolationMode im)
Sets the default rotation interpolation mode. |
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 class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public Animation(InstancePointer p)
protected Animation(InstancePointer p,
boolean remote)
public Animation(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public Animation(java.lang.String name,
float length)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic java.lang.String getName()
getName in interface IAnimationpublic float getLength()
getLength in interface IAnimationpublic void setLength(float len)
setLength in interface IAnimationpublic INodeAnimationTrack createNodeTrack(int handle)
createNodeTrack in interface IAnimationpublic INumericAnimationTrack createNumericTrack(int handle)
createNumericTrack in interface IAnimation
public IVertexAnimationTrack createVertexTrack(int handle,
VertexAnimationType animType)
createVertexTrack in interface IAnimation
public INodeAnimationTrack createNodeTrack(int handle,
INode node)
createNodeTrack in interface IAnimation
public INumericAnimationTrack createNumericTrack(int handle,
IAnimableValuePtr anim)
createNumericTrack in interface IAnimation
public IVertexAnimationTrack createVertexTrack(int handle,
IVertexData data,
VertexAnimationType animType)
createVertexTrack in interface IAnimationpublic int getNumNodeTracks()
getNumNodeTracks in interface IAnimationpublic INodeAnimationTrack getNodeTrack(int handle)
getNodeTrack in interface IAnimationpublic boolean hasNodeTrack(int handle)
hasNodeTrack in interface IAnimationpublic int getNumNumericTracks()
getNumNumericTracks in interface IAnimationpublic INumericAnimationTrack getNumericTrack(int handle)
getNumericTrack in interface IAnimationpublic boolean hasNumericTrack(int handle)
hasNumericTrack in interface IAnimationpublic int getNumVertexTracks()
getNumVertexTracks in interface IAnimationpublic IVertexAnimationTrack getVertexTrack(int handle)
getVertexTrack in interface IAnimationpublic boolean hasVertexTrack(int handle)
hasVertexTrack in interface IAnimationpublic void destroyNodeTrack(int handle)
destroyNodeTrack in interface IAnimationpublic void destroyNumericTrack(int handle)
destroyNumericTrack in interface IAnimationpublic void destroyVertexTrack(int handle)
destroyVertexTrack in interface IAnimationpublic void destroyAllTracks()
destroyAllTracks in interface IAnimationpublic void destroyAllNodeTracks()
destroyAllNodeTracks in interface IAnimationpublic void destroyAllNumericTracks()
destroyAllNumericTracks in interface IAnimationpublic void destroyAllVertexTracks()
destroyAllVertexTracks in interface IAnimation
public void apply(float timePos,
float weight,
float scale)
apply in interface IAnimation
public void apply(ISkeleton skeleton,
float timePos,
float weight,
float scale)
apply in interface IAnimation
public void apply(ISkeleton skeleton,
float timePos,
float weight,
IAnimationState.IBoneBlendMask blendMask,
float scale)
apply in interface IAnimation
public void apply(IEntity entity,
float timePos,
float weight,
boolean software,
boolean hardware)
apply in interface IAnimationpublic void setInterpolationMode(Animation.InterpolationMode im)
setInterpolationMode in interface IAnimationpublic Animation.InterpolationMode getInterpolationMode()
getInterpolationMode in interface IAnimationpublic void setRotationInterpolationMode(Animation.RotationInterpolationMode im)
setRotationInterpolationMode in interface IAnimationpublic Animation.RotationInterpolationMode getRotationInterpolationMode()
getRotationInterpolationMode in interface IAnimationpublic IAnimation.INodeTrackList _getNodeTrackList()
_getNodeTrackList in interface IAnimationpublic void getNodeTrackIterator(IAnimation.INodeTrackIterator returnValue)
getNodeTrackIterator in interface IAnimationpublic IAnimation.INumericTrackList _getNumericTrackList()
_getNumericTrackList in interface IAnimationpublic void getNumericTrackIterator(IAnimation.INumericTrackIterator returnValue)
getNumericTrackIterator in interface IAnimationpublic IAnimation.IVertexTrackList _getVertexTrackList()
_getVertexTrackList in interface IAnimationpublic void getVertexTrackIterator(IAnimation.IVertexTrackIterator returnValue)
getVertexTrackIterator in interface IAnimationpublic void optimise(boolean discardIdentityNodeTracks)
optimise in interface IAnimationpublic void _collectIdentityNodeTracks(IAnimation.ITrackHandleList tracks)
_collectIdentityNodeTracks in interface IAnimationpublic void _destroyNodeTracks(IAnimation.ITrackHandleList tracks)
_destroyNodeTracks in interface IAnimationpublic IAnimation clone(java.lang.String newName)
clone in interface IAnimationpublic void _keyFrameListChanged()
_keyFrameListChanged in interface IAnimation
public void _getTimeIndex(ITimeIndex returnValue,
float timePos)
_getTimeIndex in interface IAnimationpublic static void setDefaultInterpolationMode(Animation.InterpolationMode im)
public static Animation.InterpolationMode getDefaultInterpolationMode()
public static void setDefaultRotationInterpolationMode(Animation.RotationInterpolationMode im)
public static Animation.RotationInterpolationMode getDefaultRotationInterpolationMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||