|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.VertexAnimationTrack
public class VertexAnimationTrack
| Nested Class Summary | |
|---|---|
static class |
VertexAnimationTrack.TargetMode
|
| Nested classes/interfaces inherited from interface org.ogre4j.IAnimationTrack |
|---|
IAnimationTrack.IKeyFrameIndexMap, IAnimationTrack.IKeyFrameList, IAnimationTrack.IListener |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
VertexAnimationTrack(IAnimation parent,
int handle,
VertexAnimationType animType)
|
|
VertexAnimationTrack(IAnimation parent,
int handle,
VertexAnimationType animType,
IVertexData targetData,
VertexAnimationTrack.TargetMode target)
|
|
VertexAnimationTrack(InstancePointer p)
This constructor is public for internal useage only! |
protected |
VertexAnimationTrack(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
VertexAnimationTrack(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| 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. |
IVertexAnimationTrack |
_clone(IAnimation newParent)
Clone this track (internal use only) |
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. |
void |
applyToVertexData(IVertexData data,
ITimeIndex timeIndex,
float weight,
IPoseList poseList)
As the 'apply' method but applies to specified instead of associated data. |
IKeyFrame |
createKeyFrame(float timePos)
Creates a new and adds it to this animation at the given time index. |
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. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
VertexAnimationType |
getAnimationType()
Get the type of vertex animation we're performing. |
IVertexData |
getAssociatedVertexData()
Gets the associated which this track will update. |
int |
getHandle()
Get the handle associated with this track. |
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. |
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. |
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 |
removeAllKeyFrames()
Removes all the KeyFrames from this track. |
void |
removeKeyFrame(int index)
Removes a by it's index. |
void |
setAssociatedVertexData(IVertexData data)
Sets the associated which this track will update. |
void |
setListener(IAnimationTrack.IListener l)
Set a listener for this track. |
void |
setTargetMode(VertexAnimationTrack.TargetMode m)
|
| 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 VertexAnimationTrack(InstancePointer p)
protected VertexAnimationTrack(InstancePointer p,
boolean remote)
public VertexAnimationTrack(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public VertexAnimationTrack(IAnimation parent,
int handle,
VertexAnimationType animType)
public VertexAnimationTrack(IAnimation parent,
int handle,
VertexAnimationType animType,
IVertexData targetData,
VertexAnimationTrack.TargetMode target)
| 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 VertexAnimationType getAnimationType()
getAnimationType in interface IVertexAnimationTrackpublic IVertexMorphKeyFrame createVertexMorphKeyFrame(float timePos)
createVertexMorphKeyFrame in interface IVertexAnimationTrackpublic IVertexPoseKeyFrame createVertexPoseKeyFrame(float timePos)
createVertexPoseKeyFrame in interface IVertexAnimationTrack
public void getInterpolatedKeyFrame(ITimeIndex timeIndex,
IKeyFrame kf)
getInterpolatedKeyFrame in interface IAnimationTrackgetInterpolatedKeyFrame in interface IVertexAnimationTrack
public void apply(ITimeIndex timeIndex,
float weight,
float scale)
IAnimationTrack
apply in interface IAnimationTrackapply in interface IVertexAnimationTrack
public void applyToVertexData(IVertexData data,
ITimeIndex timeIndex,
float weight,
IPoseList poseList)
applyToVertexData in interface IVertexAnimationTrackpublic IVertexMorphKeyFrame getVertexMorphKeyFrame(int index)
getVertexMorphKeyFrame in interface IVertexAnimationTrackpublic IVertexPoseKeyFrame getVertexPoseKeyFrame(int index)
getVertexPoseKeyFrame in interface IVertexAnimationTrackpublic void setAssociatedVertexData(IVertexData data)
setAssociatedVertexData in interface IVertexAnimationTrackpublic IVertexData getAssociatedVertexData()
getAssociatedVertexData in interface IVertexAnimationTrackpublic void setTargetMode(VertexAnimationTrack.TargetMode m)
setTargetMode in interface IVertexAnimationTrackpublic VertexAnimationTrack.TargetMode getTargetMode()
getTargetMode in interface IVertexAnimationTrackpublic boolean hasNonZeroKeyFrames()
hasNonZeroKeyFrames in interface IAnimationTrackhasNonZeroKeyFrames in interface IVertexAnimationTrackpublic void optimise()
optimise in interface IAnimationTrackoptimise in interface IVertexAnimationTrackpublic IVertexAnimationTrack _clone(IAnimation newParent)
_clone in interface IVertexAnimationTrackpublic int getHandle()
getHandle in interface IAnimationTrackpublic int getNumKeyFrames()
getNumKeyFrames in interface IAnimationTrackpublic IKeyFrame getKeyFrame(int index)
getKeyFrame in interface IAnimationTrack
public float getKeyFramesAtTime(ITimeIndex timeIndex,
NativeObjectPointer<IKeyFrame> keyFrame1,
NativeObjectPointer<IKeyFrame> keyFrame2,
IntegerPointer firstKeyIndex)
getKeyFramesAtTime in interface IAnimationTrackpublic IKeyFrame createKeyFrame(float timePos)
createKeyFrame in interface IAnimationTrackpublic void removeKeyFrame(int index)
removeKeyFrame in interface IAnimationTrackpublic void removeAllKeyFrames()
removeAllKeyFrames in interface IAnimationTrackpublic void _keyFrameDataChanged()
_keyFrameDataChanged in interface IAnimationTrackpublic void _collectKeyFrameTimes(Ivector<java.lang.Float> keyFrameTimes)
_collectKeyFrameTimes in interface IAnimationTrackpublic void _buildKeyFrameIndexMap(Ivector<java.lang.Float> keyFrameTimes)
_buildKeyFrameIndexMap in interface IAnimationTrackpublic void setListener(IAnimationTrack.IListener l)
setListener in interface IAnimationTrackpublic IAnimation getParent()
getParent in interface IAnimationTrack
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||