EgtExecutor 1.9i2 :

- aggiunta a Exe e Lua funzione GetAxisInvert.
This commit is contained in:
Dario Sassi
2018-09-11 18:36:42 +00:00
parent ad77bc80ad
commit 88a7bffe54
3 changed files with 30 additions and 0 deletions
+10
View File
@@ -2813,6 +2813,16 @@ ExeGetAxisType( const string& sAxis, bool& bLinear)
return pMachMgr->GetAxisType( sAxis, bLinear) ;
}
//-----------------------------------------------------------------------------
bool
ExeGetAxisInvert( const string& sAxis, bool& bInvert)
{
IMachMgr* pMachMgr = GetCurrMachMgr() ;
VERIFY_MACHMGR( pMachMgr, false)
// recupero il flag di inversione asse in visualizzazione
return pMachMgr->GetAxisInvert( sAxis, bInvert) ;
}
//-----------------------------------------------------------------------------
bool
ExeGetAllHeadsNames( STRVECTOR& vNames)
BIN
View File
Binary file not shown.
+20
View File
@@ -3224,6 +3224,25 @@ LuaGetAxisType( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaGetAxisInvert( lua_State* L)
{
// 1 parametro : sAxis
string sAxis ;
LuaCheckParam( L, 1, sAxis)
LuaClearStack( L) ;
// recupero il flag di inversione per visualizzazione dell'asse
bool bInvert ;
bool bOk = ExeGetAxisInvert( sAxis, bInvert) ;
// restituisco il risultato
if ( bOk)
LuaSetParam( L, bInvert) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaGetAllHeadsNames( lua_State* L)
@@ -3582,6 +3601,7 @@ LuaInstallMachMgr( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtGetHeadExitCount", LuaGetHeadExitCount) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetAxisToken", LuaGetAxisToken) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetAxisType", LuaGetAxisType) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetAxisInvert", LuaGetAxisInvert) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetAllHeadsNames", LuaGetAllHeadsNames) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetAllTablesNames", LuaGetAllTablesNames) ;
// Machine Calc