public class EffectControl<T extends com.jme3.scene.Spatial>
extends com.jme3.scene.control.AbstractControl
Constructor and Description |
---|
EffectControl()
Creates an effect control that will run animations using the default
animation state returned by AnimationState.getDefaultInstance().
|
EffectControl(AnimationState anim)
Creates an effect control that will use the specified AnimationState
for running its effects.
|
Modifier and Type | Method and Description |
---|---|
void |
addEffect(java.lang.String name,
Effect<? super T> effect) |
protected AnimationState |
anim() |
protected void |
controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp) |
protected void |
controlUpdate(float tpf) |
java.util.Map<java.lang.String,Effect<? super T>> |
getEffects() |
T |
getSpatial()
Type-parameter safe version of getSpatial().
|
boolean |
hasEffect(java.lang.String name) |
Effect<? super T> |
removeEffect(java.lang.String name) |
EffectInfo |
runEffect(java.lang.String name) |
EffectInfo |
runEffect(java.lang.String name,
boolean fastForward) |
public EffectControl(AnimationState anim)
public EffectControl()
public T getSpatial()
getSpatial
in class com.jme3.scene.control.AbstractControl
protected AnimationState anim()
public boolean hasEffect(java.lang.String name)
public EffectInfo runEffect(java.lang.String name)
public EffectInfo runEffect(java.lang.String name, boolean fastForward)
protected void controlUpdate(float tpf)
controlUpdate
in class com.jme3.scene.control.AbstractControl
protected void controlRender(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp)
controlRender
in class com.jme3.scene.control.AbstractControl