V-ART
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
interpolator.h
Go to the documentation of this file.
1
5
// There is no associated implementation file (no interpolator.cpp).
6
7
#ifndef VART_INTERPOLATOR_H
8
#define VART_INTERPOLATOR_H
9
10
namespace
VART {
17
class
Interpolator
{
18
public
:
19
// PUBLIC TYPES
20
enum
TypeID
{
LINEAR
,
EASE_IN_EASE_OUT
,
RANGED
,
HERMITE
};
21
// PUBLIC METHODS
22
Interpolator
() {}
23
virtual
~Interpolator
() {}
24
// \brief Evaluates the interpolator
25
// \param n [in] A number in range [0..1]. Usually related to a linear time function.
26
// \return A new interpolator value that has specific properties.
27
// An interpolator basically converts a linear interpolation (GetValue input) into other, more
28
// sophisticated interpolation (GetValue output). Each derived class implents a
29
// specific mapping.
30
//virtual float GetValue(float n) const = 0;
31
40
virtual
float
GetValue
(
float
linearIndex,
float
initialPos,
float
range)
const
= 0;
41
virtual
TypeID
GetID
()
const
= 0;
42
};
// end class declaration
43
}
// end namespace
44
45
#endif
VART::Interpolator::GetValue
virtual float GetValue(float linearIndex, float initialPos, float range) const =0
Evaluates a goal position for DOF interpolation.
VART::Interpolator::~Interpolator
virtual ~Interpolator()
Definition:
interpolator.h:23
VART::Interpolator::RANGED
Definition:
interpolator.h:20
VART::Interpolator::LINEAR
Definition:
interpolator.h:20
VART::Interpolator
Interpolator representation.
Definition:
interpolator.h:17
VART::Interpolator::HERMITE
Definition:
interpolator.h:20
VART::Interpolator::GetID
virtual TypeID GetID() const =0
VART::Interpolator::TypeID
TypeID
Definition:
interpolator.h:20
VART::Interpolator::Interpolator
Interpolator()
Definition:
interpolator.h:22
VART::Interpolator::EASE_IN_EASE_OUT
Definition:
interpolator.h:20
Generated on Tue May 6 2014 15:09:54 for V-ART by
1.8.6