public class DistortedEffects
extends java.lang.Object
The queues hold actual effects to be applied to a given (InputSurface,MeshBase) combo.
| Constructor and Description | 
|---|
| DistortedEffects()Create empty effect queue. | 
| DistortedEffects(DistortedEffects dc,
                int flags)Copy constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | abortAllEffects()Aborts all Effects. | 
| int | abortById(long id)Aborts an Effect by its ID. | 
| int | abortByName(EffectName name)Abort all Effects of a given name, for example all rotations. | 
| int | abortByType(EffectType type)Aborts all Effects of a given type, for example all MATRIX Effects. | 
| int | abortEffect(Effect effect)Aborts a single Effect. | 
| boolean | apply(Effect effect)Add a new Effect to the tail of our queue. | 
| boolean | apply(Effect effect,
     int position)Add a new Effect to our queue at a specified position. | 
| boolean | exists(long id)Return if this queue contains effect with a given ID. | 
| long | getID()Returns unique ID of this instance. | 
| int | getNumEffects(EffectType type)Return number of effects of the given type currently in the Queue. | 
| void | markForDeletion()Mark the underlying OpenGL object for deletion. | 
public DistortedEffects()
public DistortedEffects(DistortedEffects dc, int flags)
Whatever we do not clone gets created just like in the default constructor.
dc - Source object to create our object fromflags - A bitmask of values specifying what to copy.
              For example, CLONE_VERTEX | CLONE_MATRIX.public long getID()
public boolean exists(long id)
public int abortAllEffects()
public int abortByType(EffectType type)
type - one of the constants defined in EffectTypepublic int abortById(long id)
id - the Id of the Effect to be removed, as returned by getID().public int abortEffect(Effect effect)
effect - the Effect we want to abort.public int abortByName(EffectName name)
name - one of the constants defined in EffectNamepublic boolean apply(Effect effect)
effect - The Effect to add.true if operation was successful, false otherwise.public boolean apply(Effect effect, int position)
effect - The Effect to add.position - the place in the effects queue where to add the new effect.true if operation was successful, false otherwise.public void markForDeletion()
public int getNumEffects(EffectType type)
type - The EffectType.