Package com.jme3.animation
Class BoneTrack
java.lang.Object
com.jme3.animation.BoneTrack
- All Implemented Interfaces:
- Track,- Savable,- JmeCloneable,- Cloneable
Deprecated.
Contains a list of transforms and times for each keyframe.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDeprecated.Serialization-only.BoneTrack(int targetBoneIndex) Deprecated.Creates a bone track for the given bone indexBoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations) Deprecated.Creates a bone track for the given bone indexBoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) Deprecated.Creates a bone track for the given bone index
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.Create a deep clone of this track.voidcloneFields(Cloner cloner, Object original) Deprecated.Callback fromClonerto convert this shallow-cloned track into a deep-cloned one, using the specified cloner to resolve copied fields.float[]Deprecated.Get the times in seconds for all keyframes.floatDeprecated.Deprecated.return the array of rotations of this trackVector3f[]Deprecated.returns the array of scales for this trackintDeprecated.float[]getTimes()Deprecated.returns the arrays of time for this trackVector3f[]Deprecated.returns the array of translations of this trackjmeClone()Deprecated.Create a shallow clone for the JME cloner.voidread(JmeImporter im) Deprecated.voidsetKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations) Deprecated.Set the translations and rotations for this bone trackvoidsetKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) Deprecated.Set the translations, rotations and scales for this bone trackvoidsetTime(float time, float weight, AnimControl control, AnimChannel channel) Deprecated.voidsetTime(float time, float weight, AnimControl control, AnimChannel channel, TempVars vars) Deprecated.Modify the bone which this track modifies in the skeleton to contain the correct animation transforms for a given time.voidwrite(JmeExporter ex) Deprecated.
- 
Constructor Details- 
BoneTrackprotected BoneTrack()Deprecated.Serialization-only. Do not use.
- 
BoneTrackpublic BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations) Deprecated.Creates a bone track for the given bone index- Parameters:
- targetBoneIndex- the bone index
- times- a float array with the time of each frame
- translations- the translation of the bone for each frame
- rotations- the rotation of the bone for each frame
 
- 
BoneTrackpublic BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) Deprecated.Creates a bone track for the given bone index- Parameters:
- targetBoneIndex- the bone index
- times- a float array with the time of each frame
- translations- the translation of the bone for each frame
- rotations- the rotation of the bone for each frame
- scales- the scale of the bone for each frame
 
- 
BoneTrackpublic BoneTrack(int targetBoneIndex) Deprecated.Creates a bone track for the given bone index- Parameters:
- targetBoneIndex- the bone's index
 
 
- 
- 
Method Details- 
getTargetBoneIndexpublic int getTargetBoneIndex()Deprecated.- Returns:
- the bone index of this bone track.
 
- 
getRotationsDeprecated.return the array of rotations of this track- Returns:
- an array
 
- 
getScalesDeprecated.returns the array of scales for this track- Returns:
- an array or null
 
- 
getTimespublic float[] getTimes()Deprecated.returns the arrays of time for this track- Returns:
- the pre-existing array
 
- 
getTranslationsDeprecated.returns the array of translations of this track- Returns:
- an array
 
- 
setKeyframesDeprecated.Set the translations and rotations for this bone track- Parameters:
- times- the time of each frame, measured from the start of the track (not null, length>0)
- translations- the translation of the bone for each frame (not null, same length as times)
- rotations- the rotation of the bone for each frame (not null, same length as times)
 
- 
setKeyframespublic void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) Deprecated.Set the translations, rotations and scales for this bone track- Parameters:
- times- the time of each frame, measured from the start of the track (not null, length>0)
- translations- the translation of the bone for each frame (not null, same length as times)
- rotations- the rotation of the bone for each frame (not null, same length as times)
- scales- the scale of the bone for each frame (ignored if null)
 
- 
setTimepublic void setTime(float time, float weight, AnimControl control, AnimChannel channel, TempVars vars) Deprecated.Modify the bone which this track modifies in the skeleton to contain the correct animation transforms for a given time. The transforms can be interpolated in some method from the keyframes.
- 
getLengthpublic float getLength()Deprecated.
- 
getKeyFrameTimespublic float[] getKeyFrameTimes()Deprecated.Description copied from interface:TrackGet the times in seconds for all keyframes. All keyframe times should be between 0.0 andlength. Modifying the provided array is not allowed, as it may corrupt internal state.- Specified by:
- getKeyFrameTimesin interface- Track
- Returns:
- the keyframe times
 
- 
cloneDeprecated.Create a deep clone of this track.
- 
jmeCloneDeprecated.Create a shallow clone for the JME cloner.- Specified by:
- jmeClonein interface- JmeCloneable
- Returns:
- a new track
 
- 
cloneFieldsDeprecated.Callback fromClonerto convert this shallow-cloned track into a deep-cloned one, using the specified cloner to resolve copied fields.- Specified by:
- cloneFieldsin interface- JmeCloneable
- Parameters:
- cloner- the cloner currently cloning this control (not null)
- original- the track from which this track was shallow-cloned (unused)
 
- 
writeDeprecated.- Specified by:
- writein interface- Savable
- Throws:
- IOException
 
- 
readDeprecated.- Specified by:
- readin interface- Savable
- Throws:
- IOException
 
- 
setTimeDeprecated.
 
- 
AnimTrack