EgtExecutor :

- aggiunte funzioni Exe e Lua VolZmapResolution e VolZmapChangeResolution.
This commit is contained in:
Dario Sassi
2020-09-18 16:18:53 +00:00
parent 1497d61024
commit 04f6923aff
4 changed files with 216 additions and 138 deletions
+18
View File
@@ -36,6 +36,23 @@ LuaVolZmapVolume( lua_State* L)
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaVolZmapResolution( lua_State* L)
{
// 1 parametro : Id
int nId ;
LuaCheckParam( L, 1, nId)
LuaClearStack( L) ;
// recupero la risoluzione grafica del solido Zmap
int nRes = ExeVolZmapResolution( nId) ;
if ( nRes > 0)
LuaSetParam( L, nRes) ;
else
LuaSetParam( L) ;
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaVolZmapPartCount( lua_State* L)
@@ -225,6 +242,7 @@ LuaInstallGdbGetVol( LuaMgr& luaMgr)
{
bool bOk = ( &luaMgr != nullptr) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapVolume", LuaVolZmapVolume) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapResolution", LuaVolZmapResolution) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapPartCount", LuaVolZmapPartCount) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapPartVolume", LuaVolZmapPartVolume) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapGetPartBBox", LuaVolZmapGetPartBBox) ;