Crazy Eddie's GUI System  0.8.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGUI::TplLinearInterpolator< T > Class Template Reference

Generic linear interpolator class. More...

+ Inheritance diagram for CEGUI::TplLinearInterpolator< T >:
+ Collaboration diagram for CEGUI::TplLinearInterpolator< T >:

Public Types

typedef PropertyHelper< T > Helper
 

Public Member Functions

 TplLinearInterpolator (const String &type)
 
virtual ~TplLinearInterpolator ()
 destructor
 
virtual String interpolateAbsolute (const String &value1, const String &value2, float position)
  More...
 
virtual String interpolateRelative (const String &base, const String &value1, const String &value2, float position)
  More...
 
virtual String interpolateRelativeMultiply (const String &base, const String &value1, const String &value2, float position)
  More...
 
- Public Member Functions inherited from CEGUI::TplInterpolatorBase
 TplInterpolatorBase (const String &type)
 
virtual ~TplInterpolatorBase ()
 destructor
 
virtual const StringgetType () const
 returns type string of this interpolator More...
 
- Public Member Functions inherited from CEGUI::Interpolator
virtual ~Interpolator ()
 destructor
 

Detailed Description

template<typename T>
class CEGUI::TplLinearInterpolator< T >

Generic linear interpolator class.

This class works on a simple formula: result = val1 * (1.0f - position) + val2 * (position); You can only use it on types that have operator*(float) and operator+(T) overloaded!

Member Function Documentation

template<typename T >
virtual String CEGUI::TplLinearInterpolator< T >::interpolateAbsolute ( const String value1,
const String value2,
float  position 
)
inlinevirtual

this is used when Affector is set to apply values in absolute mode (application method == AM_Absolute)

Implements CEGUI::Interpolator.

template<typename T >
virtual String CEGUI::TplLinearInterpolator< T >::interpolateRelative ( const String base,
const String value1,
const String value2,
float  position 
)
inlinevirtual

this is used when Affector is set to apply values in relative mode (application method == AM_Relative)

Implements CEGUI::Interpolator.

template<typename T >
virtual String CEGUI::TplLinearInterpolator< T >::interpolateRelativeMultiply ( const String base,
const String value1,
const String value2,
float  position 
)
inlinevirtual

this is used when Affector is set to apply values in relative multiply mode (application method == AM_RelativeMultiply)

Implements CEGUI::Interpolator.