libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moParamInterpolation Class Reference

#include <moParam.h>

Public Member Functions

 moParamInterpolation ()
 
 moParamInterpolation (const moParamInterpolation &src)
 
virtual ~moParamInterpolation ()
 
moParamInterpolationoperator= (const moParamInterpolation &src)
 
void StartInterpolation (const moData &p_data_in, const moData &p_data_out)
 
void StartInterpolation (const moValue &p_value_in, const moValue &p_value_out)
 
void StopInterpolation ()
 
const moTimerGetTimer () const
 
bool IsOn () const
 
void Activate ()
 
void SetInterpolationFunction (const moText &p_interpol_fun)
 
void SetInterpolation (const moText &p_interpol_fun, const moText &p_fun_duration=moText(1000), const moText &p_fun_expression=moText())
 
void SetInterpolation (moParamInterpolationFunction p_interpol_fun, const moText &p_fun_duration=moText("1000"), const moText &p_fun_expression=moText(""))
 
void SetDuration (MOlong p_fun_duration)
 
MOlong GetDuration ()
 
moText GetFunctionToText ()
 
moDataInterpolateData (moData &pParamData)
 
moValueInterpolateValue (moValue &pParamValue)
 
const moTextToJSON ()
 
double bezier_x (double t, double Ax, double Bx, double Cx)
 
double bezier_y (double t, double Ay, double By, double Cy)
 
double bezier_x_der (double t, double Ax, double Bx, double Cx)
 
double find_x_for (double t, double Ax, double Bx, double Cx)
 
double cubic_bezier (double t, double p1, double p2, double p3, double p4)
 

Detailed Description

Definition at line 176 of file moParam.h.

Constructor & Destructor Documentation

moParamInterpolation::moParamInterpolation ( )

Definition at line 686 of file moParam.cpp.

moParamInterpolation::moParamInterpolation ( const moParamInterpolation src)

Definition at line 691 of file moParam.cpp.

moParamInterpolation::~moParamInterpolation ( )
virtual

Definition at line 695 of file moParam.cpp.

Member Function Documentation

void moParamInterpolation::Activate ( )

Definition at line 879 of file moParam.cpp.

double moParamInterpolation::bezier_x ( double  t,
double  Ax,
double  Bx,
double  Cx 
)

Definition at line 899 of file moParam.cpp.

double moParamInterpolation::bezier_x_der ( double  t,
double  Ax,
double  Bx,
double  Cx 
)

Definition at line 907 of file moParam.cpp.

double moParamInterpolation::bezier_y ( double  t,
double  Ay,
double  By,
double  Cy 
)

Definition at line 903 of file moParam.cpp.

double moParamInterpolation::cubic_bezier ( double  t,
double  p1,
double  p2,
double  p3,
double  p4 
)

Definition at line 927 of file moParam.cpp.

double moParamInterpolation::find_x_for ( double  t,
double  Ax,
double  Bx,
double  Cx 
)

Definition at line 911 of file moParam.cpp.

MOlong moParamInterpolation::GetDuration ( )

Definition at line 739 of file moParam.cpp.

moText moParamInterpolation::GetFunctionToText ( )

Definition at line 799 of file moParam.cpp.

const moTimer & moParamInterpolation::GetTimer ( ) const

Definition at line 885 of file moParam.cpp.

moData * moParamInterpolation::InterpolateData ( moData pParamData)

cout << "moParamInterpolation::InterpolateData > datain or out UNDEFINED : resetting " << endl;

cout << "moParamInterpolation::InterpolateData > StartInterpolation: " << m_DataIn.ToText() << " --> TO --> m_DataOut: " << m_DataOut.ToText() << endl;

Definition at line 941 of file moParam.cpp.

moValue * moParamInterpolation::InterpolateValue ( moValue pParamValue)

Definition at line 1013 of file moParam.cpp.

bool moParamInterpolation::IsOn ( ) const

Definition at line 874 of file moParam.cpp.

moParamInterpolation & moParamInterpolation::operator= ( const moParamInterpolation src)

Definition at line 700 of file moParam.cpp.

void moParamInterpolation::SetDuration ( MOlong  p_fun_duration)

Definition at line 734 of file moParam.cpp.

void moParamInterpolation::SetInterpolation ( const moText p_interpol_fun,
const moText p_fun_duration = moText(1000),
const moText p_fun_expression = moText() 
)

Definition at line 755 of file moParam.cpp.

void moParamInterpolation::SetInterpolation ( moParamInterpolationFunction  p_interpol_fun,
const moText p_fun_duration = moText("1000"),
const moText p_fun_expression = moText("") 
)

Definition at line 849 of file moParam.cpp.

void moParamInterpolation::SetInterpolationFunction ( const moText p_interpol_fun)

Definition at line 749 of file moParam.cpp.

void moParamInterpolation::StartInterpolation ( const moData p_data_in,
const moData p_data_out 
)

Definition at line 714 of file moParam.cpp.

void moParamInterpolation::StartInterpolation ( const moValue p_value_in,
const moValue p_value_out 
)

m_ValueOut.Eval();

Definition at line 724 of file moParam.cpp.

void moParamInterpolation::StopInterpolation ( )

Definition at line 744 of file moParam.cpp.

const moText& moParamInterpolation::ToJSON ( )
inline

Definition at line 209 of file moParam.h.


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