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

Generic discrete interpolator class. More...

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

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)
 
- 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::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 
)
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::TplDiscreteInterpolator< T >::interpolateRelative ( const String ,
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.

Reimplemented in CEGUI::TplDiscreteRelativeInterpolator< T >.

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

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

Implements CEGUI::Interpolator.