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

Generic discrete relative interpolator class. More...

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

Public Types

typedef PropertyHelper< T > Helper
 
- Public Types inherited from CEGUI::TplDiscreteInterpolator< T >
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)
 
- Public Member Functions inherited from CEGUI::TplDiscreteInterpolator< T >
 TplDiscreteInterpolator (const String &type)
 
virtual ~TplDiscreteInterpolator ()
 destructor
 
virtual String interpolateAbsolute (const String &value1, const String &value2, float position)
 
virtual String interpolateRelativeMultiply (const String &base, const String &, const String &, float)
 
- 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::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 
)
inlinevirtual

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

Reimplemented from CEGUI::TplDiscreteInterpolator< T >.