Crazy Eddie's GUI System  0.8.4
CEGUI::TplDiscreteInterpolator< T > Class Template Reference

Generic discrete interpolator class. More...

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

List of all members.

Public Types

typedef PropertyHelper< T > Helper

Public Member Functions

 TplDiscreteInterpolator (const String &type)
virtual ~TplDiscreteInterpolator ()
 destructor
virtual String interpolateAbsolute (const String &value1, const String &value2, float position)
virtual String interpolateRelative (const String &, const String &value1, const String &value2, float position)
virtual String interpolateRelativeMultiply (const String &base, const String &, const String &, float)

Detailed Description

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

Generic discrete interpolator class.

This class returns the value the position is closest to. You can only use it on any types (they must have a PropertyHelper of course). No requirements on operators


Member Function Documentation

template<typename T >
virtual String CEGUI::TplDiscreteInterpolator< T >::interpolateAbsolute ( const String value1,
const String value2,
float  position 
) [inline, virtual]

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::TplDiscreteInterpolator< T >::interpolateRelative ( const String ,
const String value1,
const String value2,
float  position 
) [inline, virtual]

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

Implements CEGUI::Interpolator.

Reimplemented in CEGUI::TplDiscreteRelativeInterpolator< T >.

template<typename T >
virtual String CEGUI::TplDiscreteInterpolator< T >::interpolateRelativeMultiply ( const String base,
const String ,
const String ,
float   
) [inline, virtual]

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

Implements CEGUI::Interpolator.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends