V-ART
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
21  // PUBLIC METHODS
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
virtual float GetValue(float linearIndex, float initialPos, float range) const =0
Evaluates a goal position for DOF interpolation.
virtual ~Interpolator()
Definition: interpolator.h:23
Interpolator representation.
Definition: interpolator.h:17
virtual TypeID GetID() const =0