33 #ifndef __MO_PARAM_H__
34 #define __MO_PARAM_H__
186 void StartInterpolation(
const moData& p_data_in,
const moData& p_data_out );
187 void StartInterpolation(
const moValue& p_value_in,
const moValue& p_value_out );
188 void StopInterpolation();
189 const moTimer& GetTimer()
const;
193 void SetInterpolationFunction(
const moText& p_interpol_fun );
194 void SetInterpolation(
const moText& p_interpol_fun,
200 void SetDuration(
MOlong p_fun_duration );
203 moText GetFunctionToText();
211 moText fieldseparation =
",";
214 m_FullJSON+=
"'interpolation': '" + GetFunctionToText() +
"'";
215 m_FullJSON+= fieldseparation +
"'duration': '" +
IntToStr(GetDuration())+
"'";
216 m_FullJSON+= fieldseparation +
"'on': '" +
IntToStr(IsOn())+
"'";
222 double bezier_x(
double t,
double Ax,
double Bx,
double Cx);
224 double bezier_y(
double t,
double Ay,
double By,
double Cy);
226 double bezier_x_der(
double t,
double Ax,
double Bx,
double Cx);
228 double find_x_for(
double t,
double Ax,
double Bx,
double Cx );
230 double cubic_bezier(
double t,
double p1,
double p2,
double p3,
double p4 );
240 moData m_DataInterpolated;
264 bool IsValid()
const;
280 moText GetTypeStr()
const;
296 m_Property = p_Property;
307 void SetDefault(
const moValue& p_defaultvalue);
310 return m_DefaultValue;
314 void SetOptions(
const moTextArray& p_options );
315 void SetOptions(
const moText& p_OptionsStr );
326 m_Interpolation = p_Interpolation;
330 return m_Interpolation;
333 int Set(
const moText& p_XmlText );
347 moTextArray m_Options;
370 return GetValue( i );
373 moValues& GetValues();
374 MOuint GetValuesCount()
const;
376 void AddValue(
moValue &value );
377 void DeleteValue(
MOint i );
379 void SetDefaultValue();
384 void SetIndexValue(
int indexvalue );
385 int GetIndexValue()
const;
394 void SetExternData(
moData* p_pExternData);
398 bool FixOptions( moTextArray& m_NewOptions );
403 int m_CurrentIndexValue;
moParamInterpolationFunction
moTextArray & GetOptions()
value type: NUM or FUNCTION
value type: NUM or FUNCTION
value type: NUM or FUNCTION
void SetGroup(const moText &p_Group)
value type: NUM or FUNCTION
const moText & GetProperty() const
value type: NUM or FUNCTION
value type: NUM or FUNCTION
value type: NUM or FUNCTION
const moText & GetGroup() const
value type: NUM or FUNCTION
moValue & GetDefaultValue()
value type: TXT or LNK, or XML
moParamReference & operator=(const moParamReference &src)
const moText & GetName() const
moParamReference(MOuint i)
std::map< std::string, moParam * > moParamsMap
value type: TXT or LNK, or XML
clase de para manejar textos
moParamReference(MOint i)
void SetProperty(const moText &p_Property)
moDeclareExportedDynamicArray(moParamIndex, moParamIndexes)
value type: NUM[4] or FUNCTION[4] or
moParamIndex(const moParamIndex &src)
moParamInterpolation & GetInterpolation()
void SetInterpolation(moParamInterpolation &p_Interpolation)
moParamType GetType() const
value type: NUM or FUNCTION
value type: NUM or FUNCTION
moParamIndex & operator=(const moParamIndex &src)
moParamReference(const moParamReference &src)
value type: NUM or FUNCTION
value type: NUM or FUNCTION
value type: NUM or TEXT ( 0:FILL 1:LINE 2:POINT)
Clase para el control de un temporizador (relativo) con identificación
void SetIndex(MOint p_index)
moMatrix3 & operator=(const moMatrix3 &rkM)
void SetName(const moText &p_Name)
LIBMOLDEO_API moText0 IntToStr(int a)
const moText & GetOptionsStr()
value type: NUM or FUNCTION
value type: NUM or TEXT (to script or shader for chroma???)
const Real * operator[](int iRow) const