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.


Constructor Index

 o Filter()

Method Index

 o execute(double, double, double)
This is where the bulk of the work happens.
 o getName()
 o isActive()
 o opacify(float, float, float)
 o setActive(boolean)
Sets the active state of the filter.

Constructors

 o Filter
 public Filter()

Methods

 o 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.
 o isActive
 public final boolean isActive()
Returns:
the active status of the Filter.
 o 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.
 o getName
 public final String getName()
Returns:
the name of the Channel associated with this Filter
 o opacify
 public static float opacify(float oldVal,
                             float newVal,
                             float opacity)

All Packages  Class Hierarchy  This Package  Previous  Next  Index