Packagede.popforge.imageprocessing.filters
Classpublic final class FilterQueue
ImplementsIFilter

The FilterQueue class applies a group of filters in given order to an Image object.

This class features also a debug output which can be used to test the speed of a filter very easy.



Public Methods
 MethodDefined by
  
Creates a FilterQueue object.
FilterQueue
  
addFilter(filter:IFilter):void
Adds a filter to the queue.
FilterQueue
  
apply(image:Image):void
Applies all filters in given order to the given Image object.
FilterQueue
  
Disables debug output.
FilterQueue
  
enableOutput(textField:TextField):void
Enables debug output.
FilterQueue
  
removeFilter(id:Number):void
Removes a filter from the queue.
FilterQueue
  
toString():String
Builds and returns a string containing the name of the class.
FilterQueue
Constructor detail
FilterQueue()constructor
public function FilterQueue()

Creates a FilterQueue object.

Method detail
addFilter()method
public function addFilter(filter:IFilter):void

Adds a filter to the queue.

Parameters
filter:IFilter — The filter that will be added to the queue.
apply()method 
public function apply(image:Image):void

Applies all filters in given order to the given Image object. If enableOutput has been called the given TextField will be filled with some debug output.

Parameters
image:Image — The image that will be manipulated.
disableOutput()method 
public function disableOutput():void

Disables debug output.

enableOutput()method 
public function enableOutput(textField:TextField):void

Enables debug output.

Parameters
textField:TextField — The TextField that will be filled with the output.
removeFilter()method 
public function removeFilter(id:Number):void

Removes a filter from the queue.

Parameters
id:Number — The position of the filter you want to remove starting from 0.
toString()method 
public function toString():String

Builds and returns a string containing the name of the class.

Returns
String — A string containing the name of the class.