All Packages Class Hierarchy This Package Previous Next Index
Class improv.actor.behavior.Filter
java.lang.Object
|
+----improv.actor.behavior.Filter
- public abstract class Filter
- extends Object
This is the superclass of all Filter types.
-
Filter()
-
-
execute(double, double, double)
- This is where the bulk of the work happens.
-
getName()
-
-
isActive()
-
-
opacify(float, float, float)
-
-
setActive(boolean)
- Sets the active state of the filter.
Filter
public Filter()
setActive
public final void setActive(boolean active)
- Sets the active state of the filter.
- Parameters:
- active - If set to false the filter will not effect the final value of the Channel,
even if the Filter's State is active.
isActive
public final boolean isActive()
- Returns:
- the active status of the Filter.
execute
public abstract void execute(double weight,
double time,
double opacity)
- This is where the bulk of the work happens.
Once the filter's value has been determined,
call the channel's composite method in order to
update the value of the channel.
- Parameters:
- weight - the weight of this Filter's state. used for weight-based animations
- time - the animation clock, used for time-based animations.
- opacity - the opacity of this Filter's State's Layer.
getName
public final String getName()
- Returns:
- the name of the Channel associated with this Filter
opacify
public static float opacify(float oldVal,
float newVal,
float opacity)
All Packages Class Hierarchy This Package Previous Next Index