com.jme3.animation
クラス BoneTrack

java.lang.Object
  上位を拡張 com.jme3.animation.BoneTrack
すべての実装されたインタフェース:
Savable

public final class BoneTrack
extends java.lang.Object
implements Savable

Contains a list of transforms and times for each keyframe.


コンストラクタの概要
BoneTrack()
          Serialization-only.
BoneTrack(int targetBoneIndex)
          Creates a bone track for the given bone index
BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations)
          Creates a bone track for the given bone index
BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales)
          Creates a bone track for the given bone index
 
メソッドの概要
 Quaternion[] getRotations()
          return the array of rotations of this track
 Vector3f[] getScales()
          returns the array of scales for this track
 int getTargetBoneIndex()
          returns the bone index of this bone track
 float[] getTimes()
          returns the arrays of time for this track
 Vector3f[] getTranslations()
          returns the array of translations of this track
 void read(JmeImporter im)
           
 void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations)
          Set the translations and rotations for this bone track
 void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales)
          Set the translations, rotations and scales for this bone track
 void setTime(float time, Skeleton skeleton, float weight)
          Modify the bone which this track modifies in the skeleton to contain the correct animation transforms for a given time.
 void write(JmeExporter ex)
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BoneTrack

public BoneTrack()
Serialization-only. Do not use.


BoneTrack

public BoneTrack(int targetBoneIndex,
                 float[] times,
                 Vector3f[] translations,
                 Quaternion[] rotations)
Creates a bone track for the given bone index

パラメータ:
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

BoneTrack

public BoneTrack(int targetBoneIndex,
                 float[] times,
                 Vector3f[] translations,
                 Quaternion[] rotations,
                 Vector3f[] scales)
Creates a bone track for the given bone index

パラメータ:
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

BoneTrack

public BoneTrack(int targetBoneIndex)
Creates a bone track for the given bone index

パラメータ:
targetBoneIndex - the bone's index
メソッドの詳細

getTargetBoneIndex

public int getTargetBoneIndex()
returns the bone index of this bone track

戻り値:

getRotations

public Quaternion[] getRotations()
return the array of rotations of this track

戻り値:

getScales

public Vector3f[] getScales()
returns the array of scales for this track

戻り値:

getTimes

public float[] getTimes()
returns the arrays of time for this track

戻り値:

getTranslations

public Vector3f[] getTranslations()
returns the array of translations of this track

戻り値:

setKeyframes

public void setKeyframes(float[] times,
                         Vector3f[] translations,
                         Quaternion[] rotations)
Set the translations and rotations for this bone track

パラメータ:
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

setKeyframes

public void setKeyframes(float[] times,
                         Vector3f[] translations,
                         Quaternion[] rotations,
                         Vector3f[] scales)
Set the translations, rotations and scales for this bone track

パラメータ:
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

setTime

public void setTime(float time,
                    Skeleton skeleton,
                    float weight)
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.

パラメータ:
time - the current time of the animation
skeleton - the skeleton to which the bone belong
weight - the weight of the animation

write

public void write(JmeExporter ex)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
例外:
java.io.IOException