139 C= (short)((
float)
tintc * (float)360);
144 S = (short)((
float)
tints * (float)255);
148 V = (short)((
float)
tint * (float)255);
159 moText fieldSeparation =
",";
170 fullJSON+= fieldSeparation+
"'tempo': {";
186 fullJSON+= fieldSeparation +
"'on': '"+
IntToStr(
on)+
"'";
187 fullJSON+= fieldSeparation +
"'synchronized': '"+
IntToStr(
synchronized)+
"'";
221 moText fieldSeparation =
" ";
236 fullXML+= fieldSeparation +
"synchronized='"+
IntToStr(
synchronized)+
"'";
259 fullXML+= fieldSeparation+
"<moTempo ";
270 fullXML+=
"</moTempo>";
273 fullXML+=
"</moEffectState>";
283 TiXmlDocument m_XMLDoc;
285 TiXmlEncoding xencoding = TIXML_ENCODING_LEGACY;
287 m_XMLDoc.Parse((
const char*) p_XmlText, 0, xencoding );
290 TiXmlElement* effectStateNode = m_XMLDoc.FirstChildElement(
"moEffectState");
295 if (effectStateNode) {
296 m_Activated = atoi( effectStateNode->Attribute(
"Activated") );
297 m_Selected = atoi( effectStateNode->Attribute(
"Selected") );
298 on = atoi( effectStateNode->Attribute(
"on") );
299 synchronized = atoi( effectStateNode->Attribute(
"synchronized") );
300 alpha = atof( effectStateNode->Attribute(
"alpha") );
301 tint = atof( effectStateNode->Attribute(
"tint") );
302 tintb = atof( effectStateNode->Attribute(
"tintb") );
303 tintc = atof( effectStateNode->Attribute(
"tintc") );
304 tintg = atof( effectStateNode->Attribute(
"tintg") );
305 tintr = atof( effectStateNode->Attribute(
"tintr") );
306 tints = atof( effectStateNode->Attribute(
"tints") );
308 TiXmlElement* keyNode = effectStateNode->FirstChildElement(
"moTempo");
317 if (atoi(
moText( keyNode->Attribute(
"started") ) ) == 1 ) {
moEffectState & operator=(const moEffectState &src)
virtual void Start()
Inicia el temporizador.
LIBMOLDEO_API moText0 FloatToStr(double a)
void SetColorRGB(MOfloat r, MOfloat g, MOfloat b)
bool Started() const
Devuelve el estado del temporizador.
MOulong moGetDuration()
Devuelve el valor del reloj del temporizador global.
LIBMOLDEO_API void HSVtoRGB(short iInHue, short iInSaturation, short iInValue, float *piRed, float *piGreen, float *piBlue)
virtual const moText & ToXML()
MOdouble syncro
Syncronización o factor fraccionario, 1.0 predeterminado, sino KX donde K puede ser fraccional (un nú...
MOdouble delta
variacion de frecuencia entre 0X y 2X, delta es real
clase de para manejar textos
virtual const moText & StateToStr()
static void Log(moText p_text)
Escribe un mensaje en el archivo de registro (log)
MOboolean Init()
Inicializa el objeto.
MOdouble factor
Multiplicador a partir de 2X hasta KX, donde K en principio es entero.
bool Paused() const
Devuelve el estado en pausa del cronómetro.
void Continue()
Prosigue el temporizador.
MOswitch fulldebug
saturación
virtual long Duration()
Devuelve el valor del reloj del temporizador.
moText moGetTimerStateStr()
LIBMOLDEO_API moText0 IntToStr(int a)
void SetColorCSV(MOfloat c, MOfloat s, MOfloat t)
int Set(const moText &p_XmlText)
virtual const moText & ToJSON()