//-------------------------------------------------------------- Animation::Animation(string name_) : midiInterface() { M_zeroAll(); m_name = name_; setMidiName(m_name); populateConfigurations(); }
//-------------------------------------------------------------- TimelineEvent::TimelineEvent(Poco::DateTime datetime_, string animationName_, string animationArgs_) { M_zeroAll(); m_datetime = datetime_; m_animationName = animationName_; m_animationArgs = animationArgs_; }
//-------------------------------------------------------------- Animation::Animation(string name_,string pathAbsScript_) : midiInterface() { M_zeroAll(); m_name = name_; m_pathAbsScript = pathAbsScript_; mp_obj = JS_NewObject(ofxJSGetContext(), NULL, NULL, ofxJSGetGlobalObj()); JSBool ok = JS_SetPrivate(ofxJSGetContext(), mp_obj, (void*)this); JS_AddNamedRoot(ofxJSGetContext(), &mp_obj, m_name.c_str()); ofxJSDefineFunctionObject(mp_obj, "newSlider", Animation::jsNewSlider, 4); ofxJSDefineFunctionObject(mp_obj, "newToggle", Animation::jsNewToggle, 4); sm_mapJSObj_Anim[mp_obj] = this; // printf("#### setting private %s for obj %p, this=%p\n", ok == JS_TRUE ? "OK" : "NO", mp_obj, this); setMidiName(m_name); populateConfigurations(); }
//-------------------------------------------------------------- Animation::Animation() : midiInterface() { M_zeroAll(); }
//-------------------------------------------------------------- TimelineEvent::TimelineEvent() { M_zeroAll(); }