public enum EffectName extends java.lang.Enum<EffectName>
Effect's 'Type' is one of the constants defined in EffectType
.
Effect's 'Uniforms' are a vector of 7 (matrix effects) 12 (vertex) or 8 (fragment) floats, which together form full information how to compute a given effect. Typically, some of those values will be Interpolated in CPU (by one of the 'EffectQueueX.compute()' methods) and the effect of such Interpolation sent to the Shaders.
Effect's 'Unity' is such a particular vector of its 'interpolated values' which makes the effect NULL. For example, if the effect is 'MOVE' by a 3-dimensional vector, then a 'NULL MOVE' is a MOVE by vector (0,0,0), thus (0,0,0) is the unity of the MOVE effect. This is used by the EffectQueue classes to decide if the final form of the Effect is NULL - and thus if it can safely be removed from Effect Queues without affecting the visual in any way.
Enum Constant and Description |
---|
ALPHA |
BLUR |
BRIGHTNESS |
CHROMA |
CONTRAST |
DEFORM |
DISAPPEAR |
DISTORT |
GLOW |
MOVE |
PINCH |
QUATERNION |
ROTATE |
SATURATION |
SCALE |
SHEAR |
SINK |
SMOOTH_ALPHA |
SMOOTH_BRIGHTNESS |
SMOOTH_CHROMA |
SMOOTH_CONTRAST |
SMOOTH_SATURATION |
SWIRL |
VERTEX_MOVE |
VERTEX_QUATERNION |
VERTEX_ROTATE |
VERTEX_SCALE |
VERTEX_SHEAR |
WAVE |
Modifier and Type | Field and Description |
---|---|
static int |
LENGTH |
Modifier and Type | Method and Description |
---|---|
int |
getCenterDimension()
What is the dimension of the Center supported by this effect?
|
java.lang.Class<? extends Effect> |
getEffectClass()
Returns the Class of an individual Effect.
|
int |
getEffectDimension()
Returns the dimension of an Effect (in other words, the number of interpolated values).
|
static EffectName |
getName(int ordinal)
Returns the i-th EffectName.
|
int |
getRegionDimension()
What is the dimension of the Region supported by this effect?
|
EffectType |
getType()
Returns the Type of an individual Effect.
|
static EffectName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EffectName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EffectName ROTATE
public static final EffectName QUATERNION
public static final EffectName MOVE
public static final EffectName SCALE
public static final EffectName SHEAR
public static final EffectName DISTORT
public static final EffectName DEFORM
public static final EffectName SINK
public static final EffectName PINCH
public static final EffectName SWIRL
public static final EffectName WAVE
public static final EffectName DISAPPEAR
public static final EffectName VERTEX_MOVE
public static final EffectName VERTEX_QUATERNION
public static final EffectName VERTEX_ROTATE
public static final EffectName VERTEX_SCALE
public static final EffectName VERTEX_SHEAR
public static final EffectName ALPHA
public static final EffectName SMOOTH_ALPHA
public static final EffectName CHROMA
public static final EffectName SMOOTH_CHROMA
public static final EffectName BRIGHTNESS
public static final EffectName SMOOTH_BRIGHTNESS
public static final EffectName SATURATION
public static final EffectName SMOOTH_SATURATION
public static final EffectName CONTRAST
public static final EffectName SMOOTH_CONTRAST
public static final EffectName BLUR
public static final EffectName GLOW
public static EffectName[] values()
for (EffectName c : EffectName.values()) System.out.println(c);
public static EffectName valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic EffectType getType()
public java.lang.Class<? extends Effect> getEffectClass()
public static EffectName getName(int ordinal)
If you want to loop over all possible Effects, you need this.
public int getEffectDimension()
public int getRegionDimension()
public int getCenterDimension()