V-ART
Public Member Functions | List of all members
VART::RangeSineInterpolator Class Reference

Smooth (sine function) interpolator with range. More...

#include <rangesineinterpolator.h>

Inheritance diagram for VART::RangeSineInterpolator:
VART::SineInterpolator VART::Interpolator

Public Member Functions

 RangeSineInterpolator ()
 
void SetMinimunLimit (float minLim)
 
void SetMaximunLimit (float maxLimit)
 
virtual float GetValue (float linearIndex, float initialPos, float range) const
 Evaluates a goal position for DOF interpolation. More...
 
- Public Member Functions inherited from VART::SineInterpolator
 SineInterpolator ()
 
virtual TypeID GetID () const
 
- Public Member Functions inherited from VART::Interpolator
 Interpolator ()
 
virtual ~Interpolator ()
 

Additional Inherited Members

- Public Types inherited from VART::Interpolator
enum  TypeID { LINEAR, EASE_IN_EASE_OUT, RANGED, HERMITE }
 

Detailed Description

Smooth (sine function) interpolator with range.

This is a smooth (following sine function) interpolator with period of 2 units, with a range that defines the amplitute. The values of the range must be among 0 and 1.

Definition at line 16 of file rangesineinterpolator.h.

Constructor & Destructor Documentation

VART::RangeSineInterpolator::RangeSineInterpolator ( )

Definition at line 15 of file rangesineinterpolator.cpp.

Member Function Documentation

float VART::RangeSineInterpolator::GetValue ( float  linearIndex,
float  initialPos,
float  range 
) const
virtual

Evaluates a goal position for DOF interpolation.

Parameters
linearIndex[in] A number in range [0..1]. Usually related to a linear time function.
initialPos[in] A number in range [0..1]. DOF's initial movement position.
range[in] DOF's position range on movement.
Returns
DOF's current position. An interpolator basically converts a linear interpolation (GetValue input) into other, more sophisticated interpolation (GetValue output). Each derived class implents a specific mapping.

Reimplemented from VART::SineInterpolator.

Definition at line 37 of file rangesineinterpolator.cpp.

void VART::RangeSineInterpolator::SetMaximunLimit ( float  maxLimit)

Definition at line 26 of file rangesineinterpolator.cpp.

void VART::RangeSineInterpolator::SetMinimunLimit ( float  minLim)

Definition at line 21 of file rangesineinterpolator.cpp.


The documentation for this class was generated from the following files: