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

Generic discrete relative interpolator class. More...

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

List of all members.

Public Types

typedef PropertyHelper< T > Helper

Public Member Functions

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

Detailed Description

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

Generic discrete relative interpolator class.

This class returns the value the position is closest to. It is different to discrete interpolator in interpolateRelative. It adds the resulting value to the base value.

You can use this on types that have operator+(T) overloaded


Member Function Documentation

template<typename T >
virtual String CEGUI::TplDiscreteRelativeInterpolator< T >::interpolateRelative ( const String base,
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)

Reimplemented from CEGUI::TplDiscreteInterpolator< T >.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends