94 moText fieldSeparation =
",";
114 m_ConfigName =
moText(
"");
115 m_MoldeoLabelName =
moText(
"");
118 m_MoldeoFatherId = -1;
119 m_MoldeoFatherLabelName =
"";
172 m_ConfigName = p_configname;
190 if (p_Str ==
moText(
"effect") || p_Str ==
moText(
"moEffect")) {
192 }
else if (p_Str ==
moText(
"mastereffect") || p_Str ==
moText(
"moMasterEffect")) {
194 }
else if (p_Str ==
moText(
"posteffect") || p_Str ==
moText(
"moPostEffect")) {
196 }
else if (p_Str ==
moText(
"preeffect") || p_Str ==
moText(
"moPreEffect")) {
198 }
else if (p_Str ==
moText(
"iodevice") || p_Str ==
moText(
"moIODevice")) {
200 }
else if (p_Str ==
moText(
"resource") || p_Str ==
moText(
"moResource")) {
202 }
else if (p_Str ==
moText(
"console") || p_Str ==
moText(
"moConsole")) {
216 return moText(
"moEffect");
219 return moText(
"moMasterEffect");
222 return moText(
"moPostEffect");
225 return moText(
"moPreEffect");
228 return moText(
"moIODevice");
231 return moText(
"moResource");
234 return moText(
"moConsole");
237 return moText(
"MOB class undefined");
240 return moText(
"MOB class undefined");
249 return moText(
"undefined");
256 return moText(
"mastereffect");
259 return moText(
"posteffect");
262 return moText(
"preeffect");
268 return moText(
"resources");
274 return moText(
"undefined");
277 return moText(
"undefined");
298 m_MoldeoLabelName = p_labelname;
305 return m_MoldeoLabelName;
314 m_MoldeoId = p_moldeoid;
331 m_MoldeoFatherLabelName = p_labelname;
338 m_Description = p_Description;
343 m_Activate = p_activate;
348 m_KeyName = p_keyname;
354 m_MobIndex.SetParamIndex(p_paramindex);
360 m_MobIndex.SetValueIndex(p_valueindex);
365 moText fieldSeparation =
",";
368 m_FullJSON+= fieldSeparation +
"'name': '" + GetName() +
"'";
369 m_FullJSON+= fieldSeparation +
"'labelname': '" + GetLabelName() +
"'";
370 m_FullJSON+= fieldSeparation +
"'configname': '" + GetConfigName() +
"'";
371 m_FullJSON+= fieldSeparation +
"'type': '" + this->GetTypeStr() +
"'";
372 m_FullJSON+= fieldSeparation +
"'console_param_index': '" +
IntToStr(this->GetMobIndex().GetParamIndex()) +
"'";
373 m_FullJSON+= fieldSeparation +
"'console_value_index': '" +
IntToStr(this->GetMobIndex().GetValueIndex()) +
"'";
374 m_FullJSON+= fieldSeparation +
"'description': '" + GetDescription() +
"'";
375 m_FullJSON+= fieldSeparation +
"'moldeofatherid': '" +
IntToStr( GetMoldeoFatherId() ) +
"'";
376 m_FullJSON+= fieldSeparation +
"'fatherlabelname': '" + GetFatherLabelName() +
"'";
397 m_pResourceManager = NULL;
398 m_Inlets.Init( 0 , NULL );
399 m_Outlets.Init( 0 , NULL );
400 m_bConnectorsLoaded =
false;
402 InletScreenWidth = InletScreenHeight = InletTimeabs = InletPreconfig = NULL;
423 m_MobState = p_MobState;
433 SetState( mobstate );
441 SetState( mobstate );
445 return GetState().Activated();
453 SetState( mobstate );
459 SetState( mobstate );
463 return GetState().Selected();
474 InletScreenWidth =
new moInlet();
475 if (InletScreenWidth) {
479 m_Inlets.Add(InletScreenWidth);
482 InletScreenHeight =
new moInlet();
483 if (InletScreenHeight) {
487 m_Inlets.Add(InletScreenHeight);
495 m_Inlets.Add(InletTimeabs);
498 InletPreconfig =
new moInlet();
499 if (InletPreconfig) {
503 m_Inlets.Add(InletPreconfig);
506 moText confignamecompleto=
"";
511 confignamecompleto = GetConfigName();
513 if (m_pResourceManager) {
514 if (m_pResourceManager->GetDataMan()) {
515 confignamecompleto = m_pResourceManager->GetDataMan()->GetDataPath();
516 confignamecompleto += moSlash + GetConfigName();
517 confignamecompleto +=
moText(
".cfg");
519 MODebug2->
Error(
"moMoldeoObject::Init > DataManager undefined > object: "+GetName()+
" config: " + GetConfigName() +
" label:"+GetLabelName() );
523 MODebug2->
Error(
"moMoldeoObject::Init > ResourceManager undefined > object: "+GetName()+
" config: " + GetConfigName() +
" label:"+GetLabelName() );
530 if(m_Config.LoadConfig(confignamecompleto) !=
MO_CONFIG_OK ) {
531 MODebug2->
Error(
"moMoldeoObject::Init > Config file invalid or not found > object: " + GetName() +
" config:" + confignamecompleto +
" label: " + GetLabelName());
540 __iscript = m_Config.GetParamIndex(
"script");
542 MODebug2->
Error(
moText(
"moMoldeoObject::Init > config: "+GetConfigName()+
" config: " + GetConfigName() +
" label: "+GetLabelName()+
" script parameter missing"));
548 MODebug2->
Message(
"*****moMoldeoObject::Init > for plugin: " + GetName() +
" config: " + GetConfigName() +
" label: " + GetLabelName() +
" is OK!");
554 if (ScriptHasFunction(
"Init")) {
555 SelectScriptFunction(
"Init");
556 RunSelectedFunction();
563 if (ScriptHasFunction(
"Finish")) {
564 SelectScriptFunction(
"Finish");
565 RunSelectedFunction();
572 if (ScriptHasFunction(
"Update")) {
573 SelectScriptFunction(
"Update");
574 RunSelectedFunction();
584 cs = m_Config.Text( __iscript );
587 if ((
moText)m_Script!=cs && IsInitialized()) {
596 if ( CompileFile(fullscript) ) {
602 SelectScriptFunction(
"Init" );
614 RunSelectedFunction();
616 }
else MODebug2->
Error(
moText(
"Couldn't compile lua script ") + (
moText)fullscript +
" config:"+GetConfigName()+
" label: "+GetLabelName() );
617 }
else MODebug2->
Message(
"Script file not present. " + (
moText)fullscript +
" config: "+GetConfigName()+
" label:"+GetLabelName() );
623 if (ScriptHasFunction(
"Run")) {
624 SelectScriptFunction(
"Run");
625 RunSelectedFunction();
632 return ResolveValue( param, value_index,
true );
646 for(
MOuint ivb=0; ivb<value.GetSubValueCount(); ivb++) {
651 if (m_pResourceManager->GetMathMan())
652 idx = m_pResourceManager->GetMathMan()->AddFunction( VB.Text(), (
MOboolean)
true,
this );
654 if (m_pResourceManager->GetMathMan())
655 idx = m_pResourceManager->GetMathMan()->AddFunction( VB.Text(), (
MOboolean)
true,
this );
657 VB.
SetFun( m_pResourceManager->GetMathMan()->GetFunction(idx) );
660 MODebug2->
Error(
moText(
"moMoldeoObject::CreateConnectors > function couldn't be defined: ") + VB.Text()
661 +
" object: "+GetName()
662 +
" config: " + GetConfigName()
663 +
" label:" + GetLabelName() );
671 if (value.GetSubValueCount()<=0)
return false;
675 switch( param_type ) {
680 if ( ! (valuebase0.Text().Trim() ==
moText(
"")) ) {
686 idx = m_pResourceManager->GetTextureMan()->GetTextureBuffer( valuebase0.Text(),
true,
"PNG" );
689 moTextureBuffer* pTextureBuffer = m_pResourceManager->GetTextureMan()->GetTextureBuffer(idx);
690 valuebase0.SetTextureBuffer( pTextureBuffer );
708 if ( ! (valuebase0.Text().Trim() ==
moText(
"")) ) {
711 idx = m_pResourceManager->GetTextureMan()->GetTextureMOId( valuebase0.Text(),
true, true );
714 idx = m_pResourceManager->GetTextureMan()->GetTextureMOId( valuebase0.Text(), true );
716 moTexture* pTexture = m_pResourceManager->GetTextureMan()->GetTexture(idx);
717 valuebase0.SetTexture( pTexture );
720 idx = m_pResourceManager->GetShaderMan()->GetTextureFilterIndex()->LoadFilter( &value );
721 moTextureFilter* pTextureFilter = m_pResourceManager->GetShaderMan()->GetTextureFilterIndex()->Get(idx-1);
722 valuebase0.SetTextureFilter( pTextureFilter );
725 if (value.GetSubValueCount()==4) {
726 valuebase0.SetTextureFilterAlpha( value.GetSubValue(3).GetData() );
729 if (value.GetSubValueCount()>=5) {
737 MODebug2->
Error(
moText(
"moMoldeoObject::UpdateValue > VALUE BASE EMPTY: ") + valuebase0.Text()
749 if ( value.GetSubValueCount()==3 ) {
750 if ( valuebase0.Text().Trim() ==
moText(
"Default") ) {
751 pFont = m_pResourceManager->GetFontMan()->GetFont(0);
752 }
else if ( ! (valuebase0.Text().Trim() ==
moText(
"")) ) {
755 moText fonttypeT = value.GetSubValue(1).Text();
756 fonttype = m_pResourceManager->GetFontMan()->GetFontType(fonttypeT);
758 fonttype = (
moFontType)value.GetSubValue(1).Int();
762 fontsize = value.GetSubValue(2).Int();
767 pFont = m_pResourceManager->GetFontMan()->AddFont( valuebase0.Text(), fonttype, fontsize);
770 pFont = m_pResourceManager->GetFontMan()->GetFont(0);
774 pFont = m_pResourceManager->GetFontMan()->GetFont(0);
778 valuebase0.SetFont( pFont );
790 if (value.GetSubValueCount()>0) {
792 moSceneNode* pModel = m_pResourceManager->GetModelMan()->Get3dModel( valuebase0.Text(),
true );
793 valuebase0.SetModel( pModel );
799 if (value.GetSubValueCount()>0) {
800 if (valuebase0.Text()!=
"") {
801 moSound* pSound = m_pResourceManager->GetSoundMan()->GetSound( valuebase0.Text() );
803 valuebase0.SetSound( pSound );
820 if (m_pResourceManager == NULL) {
821 MODebug2->
Error(
"moMoldeoObject::CreateConnectors > ResourceManager is NULL!!! Can't continue. Sorry for object: "+GetName()+
" config: " + GetConfigName() +
" label:"+GetLabelName() );
825 if (m_bConnectorsLoaded) {
826 MODebug2->
Error(
"moMoldeoObject::CreateConnectors > Calling twice. Can't continue. Sorry for object: "+GetName()+
" config: " + GetConfigName() +
" label:"+GetLabelName() );
830 MODebug2->
Message(
"moMoldeoObject::CreateConnectors > Calling once. object: "+GetName()+
" config: " + GetConfigName() +
" label:" + GetLabelName() );
844 if ( m_Config.GetParamIndex(InletName)==-1 ) {
846 m_Inlets.Add( Inlet );
855 for(
MOint p=0;p<m_Config.GetParamsCount();p++) {
873 ResolveValue( param, v );
878 MODebug2->
Message(
"moMoldeoObject::CreateConnectors > loaded params & values for Object: " + GetName() +
" config:" + GetConfigName() +
" label:" + GetLabelName() );
898 if ( m_Config.GetParamIndex(OutletName) > -1 ) {
900 MODebug2->
Log(
moText(
"moMoldeoObject::CreateConnectors > ") + this->GetLabelName() +
moText(
" creating Outlet as parameter: \"") + OutletName +
"\"" );
901 Outlet->
Init( OutletName, i, m_Config.GetParam(OutletName).GetPtr());
904 MODebug2->
Log(
moText(
"moMoldeoObject::CreateConnectors > ") + this->GetLabelName() +
moText(
" Init > creating outlet not as param: \"") + OutletName+
"\"" );
907 m_Outlets.Add( Outlet );
912 moText objectname = poutlets[i][j].Text();
913 moText inletname = poutlets[i][j+1].Text();
922 m_bConnectorsLoaded =
true;
928 MODebug2->
Message(
"moMoldeoObject::CreateConnectors > OK! Object: " + GetName() +
" config:" + GetConfigName() +
" label: " + GetLabelName() );
930 return m_bConnectorsLoaded;
935 m_bConnectorsLoaded =
false;
942 m_pResourceManager = p_pResources;
953 for(
MOuint i=0; i<m_Inlets.Count(); i++ ) {
961 for(
MOuint i=0; i<m_Outlets.Count(); i++ ) {
977 return m_MobDefinition.GetType();
982 m_MobDefinition.SetType(p_type);
987 return m_MobDefinition.GetMoldeoId();
992 m_MobDefinition.SetMoldeoId( p_id );
999 m_pResourceManager = p_pResourceManager;
1006 return m_pResourceManager;
1032 if (p_save_filename ==
moText(
"")) {
1033 return GetConfig()->SaveConfig();
1035 return GetConfig()->SaveConfig( p_save_filename );
1041 m_MobDefinition.SetConfigName( p_configname );
1048 if ( p_configdefinition==NULL ) {
1049 p_configdefinition = m_Config.GetConfigDefinition();
1055 p_configdefinition->
Set( GetName(), m_MobDefinition.GetTypeStr() );
1062 return p_configdefinition;
1072 moParamDefinitions *pdefinitions = m_Config.GetConfigDefinition()->GetParamDefinitions();
1073 moParamDefinitions& PD(*pdefinitions);
1075 for(
MOuint i=0; i < pdefinitions->Count(); i++ ) {
1076 moText name = pdefinitions->Get(i).GetName();
1077 PD[i].SetIndex( m_Config.GetParamIndex( name ));
1096 for(
MOuint i=0; i< m_Inlets.Count(); i++ ) {
1097 moInlet* pInlet = m_Inlets.Get(i);
1108 for(
MOuint i=0; i< m_Outlets.Count(); i++ ) {
1109 moOutlet* pOutlet = m_Outlets.Get(i);
1136 if (InletScreenWidth) {
1137 if (InletScreenWidth->GetData()) InletScreenWidth->GetData()->SetDouble( m_pResourceManager->GetRenderMan()->ScreenWidth() );
1139 if (InletScreenHeight) {
1140 if (InletScreenHeight->GetData()) InletScreenHeight->GetData()->SetDouble( m_pResourceManager->GetRenderMan()->ScreenHeight() );
1143 if (InletTimeabs->GetData()) InletTimeabs->GetData()->SetDouble(
moGetDuration() );
1145 if (InletPreconfig) {
1146 if (InletPreconfig->GetData()) InletPreconfig->GetData()->SetInt( m_Config.GetCurrentPreConf() );
1152 actual = p_EventList->
First;
1156 while(actual!=NULL) {
1170 if (inletid>=0 && inletid<(
int)m_Inlets.Count() ) {
1171 moInlet* pinlet = m_Inlets[inletid];
1201 p_EventList->
Delete(pmessage);
1211 for(
MOuint i=0; i<m_Outlets.Count() ; i++) {
1217 bool forcingParameterEmition =
false;
1224 forcingParameterEmition =
true;
1228 if ( poutlet->
Updated() || forcingParameterEmition ) {
1239 for(
MOuint j=0; j<pconnections->Count(); j++) {
1265 RegisterBaseFunction(
"PushDebugString");
1266 RegisterFunction(
"GetResourceManager");
1269 RegisterFunction(
"SetPreconf");
1270 RegisterFunction(
"GetPreconf");
1272 RegisterFunction(
"GetParamIndex");
1273 RegisterFunction(
"GetCurrentValue");
1274 RegisterFunction(
"SetCurrentValue");
1275 RegisterFunction(
"GetValuesCount");
1277 RegisterFunction(
"GetInletIndex");
1278 RegisterFunction(
"GetInletData");
1279 RegisterFunction(
"SetInletData");
1282 RegisterFunction(
"GetTuioSystem");
1283 RegisterFunction(
"GetTuioCursorCount");
1284 RegisterFunction(
"GetTuioCursor");
1285 RegisterFunction(
"GetTuioObjectCount");
1286 RegisterFunction(
"GetTuioObject");
1291 RegisterFunction(
"GetTrackerSystemData");
1292 RegisterFunction(
"GetTrackerFeaturesCount");
1293 RegisterFunction(
"GetTrackerValidFeatures");
1294 RegisterFunction(
"GetTrackerFeature");
1295 RegisterFunction(
"GetTrackerVariance");
1296 RegisterFunction(
"GetTrackerBarycenter");
1297 RegisterFunction(
"GetTrackerAcceleration");
1298 RegisterFunction(
"GetTrackerVelocity");
1299 RegisterFunction(
"GetTrackerZone");
1301 RegisterFunction(
"GetTrackerHistory");
1302 RegisterFunction(
"StartTrackerHistory");
1303 RegisterFunction(
"PauseTrackerHistory");
1304 RegisterFunction(
"ContinueTrackerHistory");
1305 RegisterFunction(
"StopTrackerHistory");
1306 RegisterFunction(
"GetHistoryRecord");
1307 RegisterFunction(
"GetHistoryBarycenter");
1308 RegisterFunction(
"GetHistoryVariance");
1309 RegisterFunction(
"GetHistoryBounding");
1310 RegisterFunction(
"GetHistoryAverage");
1311 RegisterFunction(
"GetHistoryMinMax");
1331 switch ( iFunctionNumber - m_iMethodBase )
1334 ResetScriptCalling();
1335 return luaPushDebugString(vm);
1338 ResetScriptCalling();
1339 return luaGetResourceManager(vm);
1343 ResetScriptCalling();
1344 return luaSetPreconf(vm);
1346 ResetScriptCalling();
1347 return luaGetPreconf(vm);
1351 ResetScriptCalling();
1352 return luaGetParamIndex(vm);
1354 ResetScriptCalling();
1355 return luaGetCurrentValue(vm);
1357 ResetScriptCalling();
1358 return luaSetCurrentValue(vm);
1360 ResetScriptCalling();
1361 return luaGetValuesCount(vm);
1366 ResetScriptCalling();
1367 return luaGetInletIndex(vm);
1369 ResetScriptCalling();
1370 return luaGetInletData(vm);
1372 ResetScriptCalling();
1373 return luaSetInletData(vm);
1380 ResetScriptCalling();
1381 return luaGetTuioSystem(vm);
1383 ResetScriptCalling();
1384 return luaGetTuioCursorCount(vm);
1386 ResetScriptCalling();
1387 return luaGetTuioCursor(vm);
1389 ResetScriptCalling();
1390 return luaGetTuioObjectCount(vm);
1392 ResetScriptCalling();
1393 return luaGetTuioObject(vm);
1400 ResetScriptCalling();
1405 ResetScriptCalling();
1406 return luaGetTrackerSystemData(vm);
1408 ResetScriptCalling();
1409 return luaGetTrackerFeaturesCount(vm);
1411 ResetScriptCalling();
1412 return luaGetTrackerValidFeatures(vm);
1414 ResetScriptCalling();
1415 return luaGetTrackerFeature(vm);
1417 ResetScriptCalling();
1418 return luaGetTrackerVariance(vm);
1420 ResetScriptCalling();
1421 return luaGetTrackerBarycenter(vm);
1423 ResetScriptCalling();
1424 return luaGetTrackerAcceleration(vm);
1426 ResetScriptCalling();
1427 return luaGetTrackerVelocity(vm);
1429 ResetScriptCalling();
1430 return luaGetTrackerZone(vm);
1433 ResetScriptCalling();
1434 return luaGetTrackerHistory(vm);
1436 ResetScriptCalling();
1437 return luaStartTrackerHistory(vm);
1439 ResetScriptCalling();
1440 return luaPauseTrackerHistory(vm);
1442 ResetScriptCalling();
1443 return luaContinueTrackerHistory(vm);
1445 ResetScriptCalling();
1446 return luaStopTrackerHistory(vm);
1449 ResetScriptCalling();
1450 return luaGetHistoryRecord(vm);
1452 ResetScriptCalling();
1453 return luaGetHistoryBarycenter(vm);
1455 ResetScriptCalling();
1456 return luaGetHistoryVariance(vm);
1458 ResetScriptCalling();
1459 return luaGetHistoryBounding(vm);
1461 ResetScriptCalling();
1462 return luaGetHistoryAverage(vm);
1464 ResetScriptCalling();
1465 return luaGetHistoryMinMax(vm);
1467 MODebug2->
Error(
"moMoldeoObject::ScriptCalling > not a valid index (iFunctionNumber - m_iMethodBase) " +
IntToStr(iFunctionNumber - m_iMethodBase));
1476 lua_State *state = (lua_State *) vm;
1478 if ( strcmp(
"Run", strFunc) == 0 ||
1479 strcmp(
"Draw", strFunc) == 0 ||
1480 strcmp(
"Init", strFunc) == 0 ||
1481 strcmp(
"Finish", strFunc) == 0 ||
1482 strcmp(
"RunSystem", strFunc) == 0 ||
1483 strcmp(
"Update", strFunc) == 0 ||
1484 strcmp(
"RunParticle", strFunc) == 0
1486 MOint script_result = (
MOint) lua_tonumber (state, 1);
1488 if (script_result != 0) {
1490 char *text = (
char *) lua_tostring (state, -1);
1496 +
moText(
" >> lua script returned error code: ")
1508 lua_State *state = (lua_State *) vm;
1509 if (lua_isboolean(state,1)) {
1510 bool vb = lua_toboolean(state,1);
1513 char *text = (
char *) lua_tostring (state, 1);
1522 lua_State *state = (lua_State *) vm;
1524 if (GetResourceManager()) {
1525 if (GetResourceManager()->GetScriptMan()) {
1526 GetResourceManager()->GetScriptMan()->PushLuaResourceManager();
1535 lua_State *state = (lua_State *) vm;
1537 MOint preconfid = (
MOint) lua_tonumber (state, 1);
1539 if (this->GetConfig()) {
1540 this->GetConfig()->SetCurrentPreConf( preconfid );
1547 lua_State *state = (lua_State *) vm;
1549 if (this->GetConfig()) {
1550 lua_pushnumber(state, (lua_Number) this->GetConfig()->GetCurrentPreConf() );
1558 lua_State *state = (lua_State *) vm;
1560 char *text = (
char *) lua_tostring (state, 1);
1563 lua_pushnumber(state, (lua_Number) GetConfig()->GetParamIndex(text) );
1572 lua_State *state = (lua_State *) vm;
1574 MOint paramid = (
MOint) lua_tonumber (state, 1);
1575 MOint valueid = (
MOint) lua_tonumber (state, 2);
1578 GetConfig()->SetCurrentValueIndex( paramid, valueid );
1580 MODebug2->
Error(
moText(
" in MoldeoObject script: SetCurrentValue : config not founded : id:")+(
moText)GetLabelName() );
1589 lua_State *state = (lua_State *) vm;
1591 MOint paramid = (
MOint) lua_tonumber (state, 1);
1594 int valueid = GetConfig()->GetParam( paramid ).GetIndexValue();
1595 lua_pushnumber(state, (lua_Number) valueid );
1598 MODebug2->
Error(
moText(
" in MoldeoObject script: GetCurrentValue : config not founded : id:")+(
moText)GetLabelName() );
1607 lua_State *state = (lua_State *) vm;
1609 MOint paramid = (
MOint) lua_tonumber (state, 1);
1612 int valuecount = GetConfig()->GetParam( paramid ).GetValuesCount();
1613 lua_pushnumber(state, (lua_Number) valuecount );
1625 lua_State *state = (lua_State *) vm;
1627 char *inletlabelname = (
char *) lua_tostring (state, 1);
1629 for(
MOuint i=0; i<m_Inlets.Count(); i++ ) {
1630 moInlet* pInlet = m_Inlets[i];
1633 moText lmname( inletlabelname );
1634 if ( lname == lmname ) {
1635 lua_pushnumber(state, (lua_Number) i );
1641 lua_pushnumber(state, (lua_Number) -1 );
1646 lua_State *state = (lua_State *) vm;
1659 moDataMessages* pDataMessages;
1664 int inletindex = (int) lua_tonumber (state, 1);
1666 if ( inletindex>=0 && inletindex<(
int)m_Inlets.Count()) {
1667 moInlet* pInlet = m_Inlets[inletindex];
1673 switch((
int)pType) {
1675 lua_pushnumber( state, (lua_Number) pData->
Long() );
1679 lua_pushnumber( state, (lua_Number) pData->
Long() );
1683 lua_pushnumber( state, (lua_Number) pData->
Long() );
1687 lua_pushnumber( state, (lua_Number) pData->
Long() );
1691 lua_pushnumber( state, (lua_Number) pData->
Double() );
1694 lua_pushnumber( state, (lua_Number) pData->
Float() );
1697 lua_pushstring( state, (
char*) pData->
Text() );
1701 MODebug2->
Message(
"moMoldeoObject::luaGetInletData() > MO_DATA_MESSAGE");
1711 lua_pushstring( state, (
char*)
"NO MESSAGE" );
1714 pDataMessages = (moDataMessages*)pData->
Pointer();
1716 if (pDataMessages) {
1719 if (pDataMessages->Count()==0) {
1720 lua_pushstring( state, (
char*)
"NO MESSAGES" );
1726 lua_createtable(state, pDataMessages->Count(), 0);
1727 for(i=0;i<pDataMessages->Count();i++) {
1729 lua_pushnumber( state, (lua_Number)(i+1));
1731 lua_createtable(state, pDataMessages->Get(i).Count(), 0);
1732 for( m=0; m<pDataMessages->Get(i).Count(); m++ ) {
1733 lua_pushnumber( state, (lua_Number) (m+1) );
1735 switch(pDataMessages->Get(i).Get(m).Type()) {
1737 lua_pushnumber( state,(lua_Number) pDataMessages->Get(i).Get(m).Float());
1740 lua_pushstring( state,(
char*) pDataMessages->Get(i).Get(m).ToText() );
1743 lua_settable(state,-3);
1745 lua_settable(state, -3);
1750 lua_pushstring( state, (
char*)
"NO MESSAGES" );
1757 lua_pushnumber( state, (lua_Number) pv2d->
X() );
1758 lua_pushnumber( state, (lua_Number) pv2d->
Y() );
1765 lua_pushnumber( state, (lua_Number) pv3d->
X() );
1766 lua_pushnumber( state, (lua_Number) pv3d->
Y() );
1767 lua_pushnumber( state, (lua_Number) pv3d->
Z() );
1774 lua_pushnumber( state, (lua_Number) pv4d->
X() );
1775 lua_pushnumber( state, (lua_Number) pv4d->
Y() );
1776 lua_pushnumber( state, (lua_Number) pv4d->
Z() );
1777 lua_pushnumber( state, (lua_Number) pv4d->
W() );
1784 lua_pushnumber( state, (lua_Number) pv2i->
X() );
1785 lua_pushnumber( state, (lua_Number) pv2i->
Y() );
1792 lua_pushnumber( state, (lua_Number) pv3i->
X() );
1793 lua_pushnumber( state, (lua_Number) pv3i->
Y() );
1794 lua_pushnumber( state, (lua_Number) pv3i->
Z() );
1801 lua_pushnumber( state, (lua_Number) pv4i->
X() );
1802 lua_pushnumber( state, (lua_Number) pv4i->
Y() );
1803 lua_pushnumber( state, (lua_Number) pv4i->
Z() );
1804 lua_pushnumber( state, (lua_Number) pv4i->
W() );
1810 lua_pushnumber( state, (lua_Number) pData->
Eval() );
1814 lua_pushstring( state, ttype );
1816 lua_pushnumber( state, (lua_Number) pData->
Long() );
1822 moText tres(
"bad data pointer");
1823 lua_pushstring( state, tres );
1827 moText tres(
"inlet data not updated");
1828 lua_pushstring( state, tres );
1833 lua_pushstring( state, tres );
1840 lua_State *state = (lua_State *) vm;
1842 int inletindex = (int) lua_tonumber (state, 1);
1844 if ( inletindex>=0 && inletindex<(
int)m_Inlets.Count()) {
1846 moInlet* pInlet = m_Inlets[inletindex];
1875 (
MOlong) lua_tonumber ( state, 3 ) );
1883 (
MOlong) lua_tonumber ( state, 3 ),
1884 (
MOlong) lua_tonumber ( state, 4 ) );
1891 (
MOlong) lua_tonumber ( state, 3 ),
1892 (
MOlong) lua_tonumber ( state, 4 ),
1893 (
MOlong) lua_tonumber ( state, 5 ) );
1900 (
MOdouble) lua_tonumber ( state, 3 ));
1907 (
MOdouble) lua_tonumber ( state, 3 ),
1908 (
MOdouble) lua_tonumber ( state, 4 ));
1915 (
MOdouble) lua_tonumber ( state, 3 ),
1916 (
MOdouble) lua_tonumber ( state, 4 ),
1917 (
MOdouble) lua_tonumber ( state, 5 ) );
1934 pData->
SetText( lua_tostring ( state, 2 ) );
1939 moText tres(
"data type invalid");
1941 lua_pushstring( state, tres );
1947 moText tres(
"data si null");
1948 lua_pushstring( state, tres );
1955 lua_pushstring( state, tres );
1975 using namespace TUIO;
1981 lua_State *state = (lua_State *) vm;
1983 int tuioindex = GetInletIndex(
"TUIOSYSTEM");
1985 lua_pushnumber( state, (lua_Number) tuioindex );
1992 lua_State *state = (lua_State *) vm;
1994 moTUIOSystemData* pTuio = NULL;
1996 int tuioindex = (int)lua_tonumber( state, 1);
2000 pInlet = m_Inlets[tuioindex];
2002 if (pInlet && pInlet->
Updated()) {
2005 std::list<TuioCursor*> pCursors = pTuio->getTuioCursors();
2006 int nc = pCursors.size();
2007 lua_pushnumber( state, (lua_Number) nc );
2012 lua_pushnumber( state, (lua_Number) -1 );
2019 lua_State *state = (lua_State *) vm;
2021 moTUIOSystemData* pTuio = NULL;
2023 int tuioindex = (int)lua_tonumber( state, 1);
2024 int cursorindex = (int)lua_tonumber( state, 2);
2028 pInlet = m_Inlets[tuioindex];
2030 if (pInlet && pInlet->
Updated()) {
2034 std::list<TuioCursor*> cursors = pTuio->getTuioCursors();
2037 TuioCursor* pCursor = NULL;
2039 for (std::list<TuioCursor*>::iterator tuioCursor = cursors.begin(); tuioCursor!=cursors.end(); tuioCursor++,cn++) {
2040 if (cn == cursorindex) {
2041 pCursor = (*tuioCursor);
2046 lua_pushnumber( state, (lua_Number) pCursor->getCursorID() );
2047 lua_pushnumber( state, (lua_Number) pCursor->getSessionID() );
2048 lua_pushnumber( state, (lua_Number) pCursor->getStartTime().getTotalMilliseconds() );
2049 lua_pushnumber( state, (lua_Number) pCursor->getPosition().getX() );
2050 lua_pushnumber( state, (lua_Number) pCursor->getPosition().getY() );
2051 lua_pushnumber( state, (lua_Number) pCursor->getXSpeed() );
2052 lua_pushnumber( state, (lua_Number) pCursor->getYSpeed() );
2058 lua_pushnumber( state, (lua_Number) -1 );
2064 lua_State *state = (lua_State *) vm;
2066 moTUIOSystemData* pTuio = NULL;
2068 int tuioindex = (int)lua_tonumber( state, 1);
2072 pInlet = m_Inlets[tuioindex];
2074 if (pInlet && pInlet->
Updated()) {
2077 std::list<TuioObject*> pObjects = pTuio->getTuioObjects();
2078 int nc = pObjects.size();
2079 lua_pushnumber( state, (lua_Number) nc );
2085 lua_pushnumber( state, (lua_Number) -1 );
2091 lua_State *state = (lua_State *) vm;
2093 moTUIOSystemData* pTuio = NULL;
2095 int tuioindex = (int)lua_tonumber( state, 1);
2096 int objectindex = (int)lua_tonumber( state, 2);
2100 pInlet = m_Inlets[tuioindex];
2102 if (pInlet && pInlet->
Updated()) {
2106 std::list<TuioObject*> objects = pTuio->getTuioObjects();
2109 TuioObject* pObject = NULL;
2111 for (std::list<TuioObject*>::iterator tuioObject = objects.begin(); tuioObject!=objects.end(); tuioObject++,cn++) {
2112 if (cn == objectindex) {
2113 pObject = (*tuioObject);
2118 lua_pushnumber( state, (lua_Number) pObject->getSymbolID() );
2119 lua_pushnumber( state, (lua_Number) pObject->getSessionID() );
2120 lua_pushnumber( state, (lua_Number) pObject->getStartTime().getTotalMilliseconds() );
2121 lua_pushnumber( state, (lua_Number) pObject->getPosition().getX() );
2122 lua_pushnumber( state, (lua_Number) pObject->getPosition().getY() );
2123 lua_pushnumber( state, (lua_Number) pObject->getXSpeed() );
2124 lua_pushnumber( state, (lua_Number) pObject->getYSpeed() );
2125 lua_pushnumber( state, (lua_Number) pObject->getAngle() );
2131 lua_pushnumber( state, (lua_Number) -1 );
2152 lua_State *state = (lua_State *) vm;
2154 int trackerindex = GetInletIndex(
"TRACKERKLT");
2156 lua_pushnumber( state, (lua_Number) trackerindex );
2164 lua_State *state = (lua_State *) vm;
2169 int trackerindex = (int)lua_tonumber( state, 1);
2173 pInlet = m_Inlets[trackerindex];
2175 if (pInlet && pInlet->
Updated()) {
2182 lua_pushnumber( state, (lua_Number) ft_count );
2190 lua_State *state = (lua_State *) vm;
2191 int ft_validcount = 0;
2195 int trackerindex = (int)lua_tonumber( state, 1);
2199 pInlet = m_Inlets[trackerindex];
2201 if (pInlet && pInlet->
Updated()) {
2208 lua_pushnumber( state, (lua_Number) ft_validcount );
2215 lua_State *state = (lua_State *) vm;
2219 int trackerindex = (int)lua_tonumber( state, 1);
2220 int featureindex = (
MOint) lua_tonumber (state, 2);
2224 pInlet = m_Inlets[trackerindex];
2226 float x, y, vx, vy, tr_x, tr_y;
2231 if (pInlet && pInlet->
Updated()) {
2247 lua_pushnumber(state, (lua_Number)x);
2248 lua_pushnumber(state, (lua_Number)y);
2249 lua_pushnumber(state, (lua_Number)v);
2250 lua_pushnumber(state, (lua_Number)vx);
2251 lua_pushnumber(state, (lua_Number)vy);
2252 lua_pushnumber(state, (lua_Number)tr_x);
2253 lua_pushnumber(state, (lua_Number)tr_y);
2261 lua_State *state = (lua_State *) vm;
2265 int trackerindex = (int)lua_tonumber( state, 1);
2269 pInlet = m_Inlets[trackerindex];
2274 if (pInlet && pInlet->
Updated()) {
2283 lua_pushnumber(state, (lua_Number)L);
2284 lua_pushnumber(state, (lua_Number)x);
2285 lua_pushnumber(state, (lua_Number)y);
2292 lua_State *state = (lua_State *) vm;
2296 int trackerindex = (int)lua_tonumber( state, 1);
2300 pInlet = m_Inlets[trackerindex];
2305 if (pInlet && pInlet->
Updated()) {
2313 lua_pushnumber(state, (lua_Number)x);
2314 lua_pushnumber(state, (lua_Number)y);
2324 lua_State *state = (lua_State *) vm;
2328 int trackerindex = (int)lua_tonumber( state, 1);
2332 pInlet = m_Inlets[trackerindex];
2337 if (pInlet && pInlet->
Updated()) {
2346 lua_pushnumber(state, (lua_Number)L);
2347 lua_pushnumber(state, (lua_Number)x);
2348 lua_pushnumber(state, (lua_Number)y);
2355 lua_State *state = (lua_State *) vm;
2359 int trackerindex = (int)lua_tonumber( state, 1);
2363 pInlet = m_Inlets[trackerindex];
2368 if (pInlet && pInlet->
Updated()) {
2377 lua_pushnumber(state, (lua_Number)L);
2378 lua_pushnumber(state, (lua_Number)x);
2379 lua_pushnumber(state, (lua_Number)y);
2386 lua_State *state = (lua_State *) vm;
2390 int trackerindex = (int)lua_tonumber( state, 1);
2391 int izone = (int) lua_tonumber (state, 2);
2398 pInlet = m_Inlets[trackerindex];
2400 if (pInlet && pInlet->
Updated()) {
2407 lua_pushnumber( state, (lua_Number) nitems);
2413 lua_State *state = (lua_State *) vm;
2417 int trackerindex = (int)lua_tonumber( state, 1);
2424 pInlet = m_Inlets[trackerindex];
2426 if (pInlet && pInlet->
Updated()) {
2433 lua_pushnumber( state, (lua_Number) nitems);
2439 lua_State *state = (lua_State *) vm;
2443 int trackerindex = (int)lua_tonumber( state, 1);
2444 int maxtime_ms = (int)lua_tonumber( state, 2);
2445 int granularity_ms = (int)lua_tonumber( state, 3);
2449 pInlet = m_Inlets[trackerindex];
2451 if (pInlet && pInlet->
Updated()) {
2462 lua_State *state = (lua_State *) vm;
2466 int trackerindex = (int)lua_tonumber( state, 1);
2470 pInlet = m_Inlets[trackerindex];
2472 if (pInlet && pInlet->
Updated()) {
2484 lua_State *state = (lua_State *) vm;
2488 int trackerindex = (int)lua_tonumber( state, 1);
2492 pInlet = m_Inlets[trackerindex];
2494 if (pInlet && pInlet->
Updated()) {
2504 lua_State *state = (lua_State *) vm;
2508 int trackerindex = (int)lua_tonumber( state, 1);
2512 pInlet = m_Inlets[trackerindex];
2514 if (pInlet && pInlet->
Updated()) {
2525 lua_State *state = (lua_State *) vm;
2529 int trackerindex = (int)lua_tonumber( state, 1);
2530 int recordindex = (int)lua_tonumber( state, 2);
2536 pInlet = m_Inlets[trackerindex];
2538 if (pInlet && pInlet->
Updated()) {
2540 if (pTracker && recordindex>=0 && recordindex<pTracker->GetHistory().CountRecords()) {
2546 MODebug2->
Error(
"luaGetHistoryRecord:: no tracker index or inlet not updated");
2551 lua_pushnumber( state, (lua_Number) IRecord.
m_nFeatures);
2553 lua_pushnumber( state, (lua_Number) IRecord.
m_Tick);
2558 lua_State *state = (lua_State *) vm;
2562 int trackerindex = (int)lua_tonumber( state, 1);
2563 int recordindex = (int)lua_tonumber( state, 2);
2569 pInlet = m_Inlets[trackerindex];
2571 if (pInlet && pInlet->
Updated()) {
2573 if (pTracker && recordindex>=0 && recordindex<pTracker->GetHistory().CountRecords()) {
2578 lua_pushnumber( state, (lua_Number) IRecord.
m_Barycenter.
X());
2579 lua_pushnumber( state, (lua_Number) IRecord.
m_Barycenter.
Y());
2589 lua_State *state = (lua_State *) vm;
2593 int trackerindex = (int)lua_tonumber( state, 1);
2594 int recordindex = (int)lua_tonumber( state, 2);
2600 pInlet = m_Inlets[trackerindex];
2602 if (pInlet && pInlet->
Updated()) {
2604 if (pTracker && recordindex>=0 && recordindex<pTracker->GetHistory().CountRecords()) {
2609 lua_pushnumber( state, (lua_Number) IRecord.
m_Variance.
X());
2610 lua_pushnumber( state, (lua_Number) IRecord.
m_Variance.
Y());
2621 lua_State *state = (lua_State *) vm;
2625 int trackerindex = (int)lua_tonumber( state, 1);
2626 int recordindex = (int)lua_tonumber( state, 2);
2632 pInlet = m_Inlets[trackerindex];
2634 if (pInlet && pInlet->
Updated()) {
2636 if (pTracker && recordindex>=0 && recordindex<pTracker->GetHistory().CountRecords()) {
2653 lua_State *state = (lua_State *) vm;
2657 int trackerindex = (int)lua_tonumber( state, 1);
2658 int recordindex = (int)lua_tonumber( state, 2);
2664 pInlet = m_Inlets[trackerindex];
2666 if (pInlet && pInlet->
Updated()) {
2668 if (pTracker && recordindex>=0 && recordindex<pTracker->GetHistory().CountRecords()) {
2683 lua_State *state = (lua_State *) vm;
2687 int trackerindex = (int)lua_tonumber( state, 1);
2688 int recordindex = (int)lua_tonumber( state, 2);
2694 pInlet = m_Inlets[trackerindex];
2696 if (pInlet && pInlet->
Updated()) {
2698 if (pTracker && recordindex>=0 && recordindex<pTracker->GetHistory().CountRecords()) {
2703 lua_pushnumber( state, (lua_Number) IRecord.
m_Min.
X());
2704 lua_pushnumber( state, (lua_Number) IRecord.
m_Min.
Y());
2705 lua_pushnumber( state, (lua_Number) IRecord.
m_Max.
X());
2706 lua_pushnumber( state, (lua_Number) IRecord.
m_Max.
Y());
2713 moText fieldSeparation =
",";
2720 m_FullJSON+= fieldSeparation +
"'objectdefinition': " + Definition.
ToJSON();
2729 if (p_Str ==
moText(
"effect") || p_Str ==
moText(
"moEffect")) {
2731 }
else if (p_Str ==
moText(
"mastereffect") || p_Str ==
moText(
"moMasterEffect")) {
2733 }
else if (p_Str ==
moText(
"posteffect") || p_Str ==
moText(
"moPostEffect")) {
2735 }
else if (p_Str ==
moText(
"preeffect") || p_Str ==
moText(
"moPreEffect")) {
2737 }
else if (p_Str ==
moText(
"iodevice") || p_Str ==
moText(
"moIODevice")) {
2739 }
else if (p_Str ==
moText(
"resource") || p_Str ==
moText(
"moResource")) {
2741 }
else if (p_Str ==
moText(
"console") || p_Str ==
moText(
"moConsole")) {
moVector2f m_BarycenterMotion
void StartRecording(long maxtime=60000, long granularity=30)
Empieza a grabar.
virtual void Deactivate()
int luaGetHistoryVariance(moLuaVirtualMachine &vm)
Devuelve las varianzas.
const moText & GetLabelName() const
Devuelve la etiqueta de este objeto.
int luaSetCurrentValue(moLuaVirtualMachine &vm)
Fija el índice del valor actual de un parámetro.
virtual bool SetState(const moMobState &p_MobState)
moMoldeoObjectType
Tipos de objetos en Moldeo.
moText m_MoldeoLabelName
Identificador de objeto Moldeo.
moMoldeoObjectType m_Type
Etiqueta o Identificador de texto de este objeto.
virtual int Save(const moText &p_save_filename=moText(""))
long m_Tick
operador de copia, y seteo de timers
moResourceManager * GetResourceManager()
void SetText(moText ptext)
moVector4< MOlong > moVector4i
const moText & GetName() const
void Error(moText p_text)
Anuncia y registra un error.
void Update(bool force=true)
const moMobIndex & GetMobIndex() const
Devuelve la dupla de índices para el archivo de configuración.
void SetType(moMoldeoObjectType p_type)
Fija el tipo de moMoldeoObject o moMoldeoObjectType.
int luaGetTrackerFeaturesCount(moLuaVirtualMachine &vm)
int luaGetHistoryAverage(moLuaVirtualMachine &vm)
Devuelve los promedios.
double m_AbsoluteAccelerationAverage
cantidad de movimiento
clase base para una fuente 3d o 2d
const moText & GetConfigName() const
Nombre del archivo de configuración.
static bool FileExists(moText filename)
Conector Inlet, conector que recibe datos.
int luaContinueTrackerHistory(moLuaVirtualMachine &vm)
void SetConfigName(const moText &p_configname)
int luaGetTrackerAcceleration(moLuaVirtualMachine &vm)
moData * GetInternalData()
virtual void LoadDefinition()
Carga las definiciones de parámetros del archivo de configuración.
void SetScript(const moText &p_script)
void Set(moText p_objectname, moText p_objectclass)
Fija el nombre y la clase del objeto a configurar.
MOint GetOutletIndex(const moText &p_connector_name) const
MOboolean Delete(moEvent *ev)
virtual MOboolean CreateConnectors()
static moText TypeToText(moDataType p_data_type)
int val
Other states for valid feature point.
float v_y
Speed in the actual frame.
void SetDouble(MOdouble pdouble)
const moText & GetName() const
Nombre del objeto.
moConnections * GetConnections()
Devuelve las conecciones de un outlet.
moMobDefinition & operator=(const moMobDefinition &mb)
Operador de asignación.
Recursos de datos, objetos, imágenes, videos y funcionalidades múltiples.
MOint GetDestinationConnectorId()
value type: NUM or FUNCTION
virtual int ScriptCalling(moLuaVirtualMachine &vm, int iFunctionNumber)
virtual int GetValidFeatures()
Objeto dibujable, efecto-maestro ( puede controlar otros efectos )
moVector4f m_BoundingRectangle
virtual moTrackerFeature * GetFeature(int i)
virtual moVector2f GetBarycenter()
bool m_Activate
nombre de la tecla que activa el objeto
int m_ValidFeatures
0 nada, 1 todo...
virtual moVector2f GetBarycenterAcceleration()
void SetLabelName(const moText &p_labelname)
Fija la etiqueta de este objeto.
Conector Outlet, conector que envía datos.
MOulong moGetDuration()
Devuelve el valor del reloj del temporizador global.
bool IsParameterDependent()
moParamType GetType() const
static moText GetTypeToName(moMoldeoObjectType p_Type=MO_OBJECT_UNDEFINED)
Transforma un moMoldeoObjectType en el nombre de su correspondiente.
virtual void ScriptExeInit()
Corre la funcion de script Run o Compila el nuevo script.
value type: TXT or LNK, or XML
static moText GetTypeToClass(moMoldeoObjectType p_Type=MO_OBJECT_UNDEFINED)
Transforma un moMoldeoObjectType en el nombre de su correspondiente clase base.
int luaGetTrackerVelocity(moLuaVirtualMachine &vm)
int luaGetTrackerVariance(moLuaVirtualMachine &vm)
void SetFun(const moText &p_functionExpression)
virtual int GetFeaturesCount()
void SetLong(MOlonglong plong)
virtual ~moMobDefinition()
Destructor.
virtual const moText & GetConnectorLabelName() const
int luaGetTrackerBarycenter(moLuaVirtualMachine &vm)
float tr_y
Feature position in the previous frame.
definici�n de todos los par�metros a encontrar o a crear dentro del moConfig
MOint GetInletIndex(moText p_connector_name) const
moDefineDynamicArray(moMoldeoObjects) moMobState
moMobDefinition()
Constructor.
value type: TXT or LNK, or XML
MOuint GetValuesCount() const
clase de para manejar textos
virtual void ScriptExeFinish()
void SetConsoleValueIndex(MOint p_valueindex)
Clase Base Descriptiva de un Objeto Moldeo.
virtual bool Activated() const
Dispositivo de entrada/salida, típicamente, interfaces humanas de IO y datos ( teclado, mouse, tableta, tcp, udp, serial )
int luaStartTrackerHistory(moLuaVirtualMachine &vm)
devuelve la cantidad de records registrados?!
moText m_ConfigName
Nombre del objeto (relativo a la clase)
moParamIndexes & ParamIndexes()
Devuelve el puntero al arreglo de �ndices de los par�metros.
virtual moVector2f ZoneToPosition(int zone)
Transforma el indice de zona al vector posicion.
virtual moConfigDefinition * GetDefinition(moConfigDefinition *p_configdefinition=NULL)
void Add(moMessage *p_Message)
void Log(moText p_text)
Escribe un mensaje en el archivo de registro (log)
void SetConfigName(const moText &p_configname)
Fijar el nombre del archivo de configuración.
int luaGetTrackerZone(moLuaVirtualMachine &vm)
int luaSetInletData(moLuaVirtualMachine &vm)
Fija el dato de un inlet (o parametro) dado el índice del inlet.
moTextureType GetType() const
int luaGetTrackerFeature(moLuaVirtualMachine &vm)
int luaGetTrackerHistory(moLuaVirtualMachine &vm)
virtual ~moMoldeoObject()
Sistema de características.
int luaSetPreconf(moLuaVirtualMachine &vm)
Fija la preconfiguración de este objeto.
void SetMoldeoId(MOint p_moldeoid)
Fija el identificador de este objeto.
int luaGetHistoryBarycenter(moLuaVirtualMachine &vm)
va de parametro el id del tracker, el id de la instancia
Objeto dibujable, pre-efecto ( primeros efectos en el orden de dibujado )
clase base para el manejo de una textura
#define MO_PARAM_NOT_FOUND
Administrador de recursos.
virtual void ScriptExeUpdate()
virtual void Update(moEventList *p_EventList)
int luaStopTrackerHistory(moLuaVirtualMachine &vm)
int luaGetPreconf(moLuaVirtualMachine &vm)
Devuelve la preconfiguración de este objeto.
void SetKeyName(const moText &p_keyname)
Fija la etiqueta del padre de este objeto.
void Copy(const moData &data)
MOint GetMoldeoId() const
Devuelve el identificador de este objeto.
Objeto dibujable, efecto ( efectos en el orden de dibujado )
moVector3< MOdouble > moVector3d
void SetDescription(const moText &p_Description)
Fija la descripción de este objeto.
virtual MOboolean RefreshValue(moParam ¶m, int value_index)
virtual MOboolean UpdateConnectors()
virtual void RegisterFunctions()
beware ! call only once or die!!!
MOint GetDestinationMoldeoId()
static moDebug * MODebug2
Clase de impresión de errores para depuración.
void SetConsoleParamIndex(MOint p_paramindex)
moVector2< MOlong > moVector2i
#define MO_OUTLET_INLETS_OFFSET
int luaGetHistoryMinMax(moLuaVirtualMachine &vm)
Devuelve el rectangulo max, min.
moMoldeoObjectType GetType() const
Nombre del archivo de configuración.
int luaPushDebugString(moLuaVirtualMachine &vm)
Función de impresión de cadena de carácteres cómoda para la depuración.
double m_SurfaceCovered
separa formas de fondo
moText m_MoldeoFatherLabelName
int luaGetResourceManager(moLuaVirtualMachine &vm)
Devuelve el objeto de moResourceManager para el manejo de recursos: texturas, videos, archivos, etc..
virtual moVector2f GetBarycenterMotion()
void Push(moText p_text)
Apila el mensaje dentro de la pila de mensajes.
moTrackerInstanceRecord & Get(int index)
moVector2< MOdouble > moVector2d
moVector2f m_SpeedVariance
moValue & GetValue(MOint i=-1)
double m_BoundingRectangleAngle
cantidad de fuerzas
MOboolean Updated() const
void SetFatherLabelName(const moText &p_labelname)
Fija la etiqueta del padre de este objeto.
void PauseRecording()
Util cuando no hay señales interesantes...
virtual moVector2f GetVariance()
moParamDefinition & GetParamDefinition()
virtual int GetPositionMatrix(float x, float y)
void SetName(const moText &p_name)
Fijar el nombre del objeto.
moVector2f m_AccelerationVariance
void Add(const moText &p_name, moParamType p_type, int p_index=-1, const moValue &p_defaultvalue=moValue("INVALID", MO_VALUE_UNDEFINED), const moText &p_OptionsStr=moText(""))
Agrega la definici�n de un par�metro con un valor predeterminado a tomar.
int luaGetHistoryRecord(moLuaVirtualMachine &vm)
Devuelve...el baricentro.
moVector3< MOlong > moVector3i
int luaGetInletIndex(moLuaVirtualMachine &vm)
Devuelve el índice del inlet (o parámetro). Por ejemplo: this:luaGetInletIndex("alpha").
moMoldeoObjectType GetType() const
int luaGetTrackerSystemData(moLuaVirtualMachine &vm)
virtual MOboolean ResolveValue(moParam ¶m, int value_index, bool p_refresh=false)
void SetMoldeoLabelName(moText p_MoldeoLabelName)
LIBMOLDEO_API moText0 IntToStr(int a)
MOboolean Init(moText p_ConnectorLabelName, MOint ConnectorId, moParam *p_param)
int luaPauseTrackerHistory(moLuaVirtualMachine &vm)
arranca la grabacion
moVector4< MOdouble > moVector4d
moMobIndex m_MobIndex
Descripción del objeto.
int luaGetInletData(moLuaVirtualMachine &vm)
Devuelve el dato según el índice del inlet.
Objeto dibujable, post-efecto ( últímos efectos en el orden de dibujado )
moText m_Name
Tipo de Objeto.
virtual const moText & ToJSON()
double m_AbsoluteTorqueAverage
cantidad de cambios de velocidad
int luaGetCurrentValue(moLuaVirtualMachine &vm)
Devuelve el índice del valor actual de un parámetro.
int luaGetHistoryBounding(moLuaVirtualMachine &vm)
Devuelve los rectangulos.
moParamDefinitions * GetParamDefinitions()
Devuelve el puntero al arreglo de definciones de par�metros.
void SetActivate(bool p_activate)
Fija el modo de activación al inicio del proyecto.
moMoldeoObjectType GetStrToType(const moText &p_Str=moText("default")) const
Transforma una cadena de caracteres en su correspondiente moMoldeoObjectType.
moText GetTypeStr() const
Transforma un moMoldeoObjectType en el nombre de su correspondiente clase base.
virtual MOboolean Finish()
int luaGetValuesCount(moLuaVirtualMachine &vm)
Devuelve la cantidad de valores de un parámetro.
Conector para vincular objetos con datos.
moMoldeoObjectType moGetStrType(const moText &p_Str)
int luaGetTrackerValidFeatures(moLuaVirtualMachine &vm)
Característica de seguimiento ( sensado )
moText m_KeyName
Índice referente al archivo de configuración que describe a este objeto.
void Message(moText p_text)
Anuncia un mensaje al usuario además de guardarlo en el log de texto.
int luaGetParamIndex(moLuaVirtualMachine &vm)
Devuelve el índice del parámetro.
void SetType(moMoldeoObjectType p_type)
virtual void ScriptExeRun()
virtual void HandleReturns(moLuaVirtualMachine &vm, const char *strFunc)
double m_AbsoluteSpeedAverage
Matrix de características.
moMobState & operator=(const moMobState &src)
moVector2f m_BarycenterAcceleration
void SetResourceManager(moResourceManager *p_pResourceManager)
virtual bool Selected() const
virtual const moMobState & GetState() const
moTrackerSystemHistory & GetHistory()
Indice referente a la descripción del objeto en un archivo de configuración.
moText GetTypeStr() const
Conección, vínculo entre dos objetos.