|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.scene.control.AbstractControl
com.jme3.animation.AnimControl
public final class AnimControl
AnimControl
is a Spatial control that allows manipulation
of skeletal animation.
The control currently supports:
1) Animation blending/transitions
2) Multiple animation channels
3) Multiple skins
4) Animation event listeners
5) Animated model cloning
6) Animated model binary import/export
Planned:
1) Hardware skinning
2) Morph/Pose animation
3) Attachments
4) Add/remove skins
コンストラクタの概要 | |
---|---|
AnimControl()
Serialization only. |
|
AnimControl(Skeleton skeleton)
Creates a new animation control for the given skeleton. |
メソッドの概要 | |
---|---|
void |
addAnim(Animation anim)
Adds an animation to be available for playing to this AnimControl . |
void |
addListener(AnimEventListener listener)
Adds a new listener to receive animation related events. |
void |
clearChannels()
Clears all the channels that were created. |
void |
clearListeners()
Clears all the listeners added to this AnimControl |
Control |
cloneForSpatial(Spatial spatial)
Internal use only. |
AnimChannel |
createChannel()
Create a new animation channel, by default assigned to all bones in the skeleton. |
Animation |
getAnim(java.lang.String name)
Retrieve an animation from the list of animations. |
float |
getAnimationLength(java.lang.String name)
Returns the length of the given named animation. |
java.util.Collection<java.lang.String> |
getAnimationNames()
|
AnimChannel |
getChannel(int index)
Return the animation channel at the given index. |
int |
getNumChannels()
|
Skeleton |
getSkeleton()
|
void |
read(JmeImporter im)
|
void |
removeAnim(Animation anim)
Remove an animation so that it is no longer available for playing. |
void |
removeListener(AnimEventListener listener)
Removes the given listener from listening to events. |
void |
setAnimations(java.util.HashMap<java.lang.String,Animation> animations)
|
void |
setSpatial(Spatial spatial)
Internal use only. |
void |
write(JmeExporter ex)
|
クラス com.jme3.scene.control.AbstractControl から継承されたメソッド |
---|
getSpatial, isEnabled, render, setEnabled, update |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public AnimControl(Skeleton skeleton)
setAnimations(java.util.HashMap)
must be called after initialization in order for this class to be useful.
skeleton
- The skeleton to animatepublic AnimControl()
メソッドの詳細 |
---|
public Control cloneForSpatial(Spatial spatial)
Control
内の cloneForSpatial
public void setAnimations(java.util.HashMap<java.lang.String,Animation> animations)
animations
- Set the animations that this AnimControl
will be capable of playing. The animations should be compatible
with the skeleton given in the constructor.public Animation getAnim(java.lang.String name)
name
- The name of the animation to retrieve.
public void addAnim(Animation anim)
AnimControl
.
anim
- The animation to add.public void removeAnim(Animation anim)
anim
- The animation to remove.public AnimChannel createChannel()
AnimControl
.public AnimChannel getChannel(int index)
index
- The index, starting at 0, to retrieve the AnimChannel
.
java.lang.IndexOutOfBoundsException
- If no channel exists at the given index.public int getNumChannels()
AnimControl
.createChannel()
public void clearChannels()
createChannel()
public Skeleton getSkeleton()
AnimControl
.public void addListener(AnimEventListener listener)
listener
- The listener to add.public void removeListener(AnimEventListener listener)
listener
- addListener(com.jme3.animation.AnimEventListener)
public void clearListeners()
AnimControl
addListener(com.jme3.animation.AnimEventListener)
public void setSpatial(Spatial spatial)
Control
内の setSpatial
AbstractControl
内の setSpatial
spatial
- the spatial to be controlled. This should not be called
from user code.public java.util.Collection<java.lang.String> getAnimationNames()
AnimControl
can play.public float getAnimationLength(java.lang.String name)
name
- The name of the animation
public void write(JmeExporter ex) throws java.io.IOException
Savable
内の write
AbstractControl
内の write
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
Savable
内の read
AbstractControl
内の read
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |