Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATFilterAttackDecay Class Reference

CATFilterAttackDecay Class Reference
[Common Accessibility Technology [CAT] libraryCommon Accessibility Technology [CAT] library]

#include <CATFilterAttackDecay.h>

Inheritance diagram for CATFilterAttackDecay:

CATFilter

List of all members.


Detailed Description

Attack/Decay filter.

f(x) = coef * f(x-1) + (1-coef) * x, with seperate rising/falling coefficients for attack/decay. First value is now filtered against 0.

Definition at line 25 of file CATFilterAttackDecay.h.


Public Member Functions

 CATFilterAttackDecay (CATFloat32 attack, CATFloat32 decay)
virtual ~CATFilterAttackDecay ()
virtual void SetAttack (CATFloat32 attack)
virtual void SetDecay (CATFloat32 decay)
virtual CATFloat32 GetAttack ()
virtual CATFloat32 GetDecay ()
CATFloat32 Filter (CATFloat32 rawVal)

Protected Attributes

CATFloat32 fAttack
CATFloat32 fDecay

The documentation for this class was generated from the following files:
Generated on Mon Feb 11 04:10:29 2008 for Game Accessibility Suite by doxygen 1.5.4