EgtExecutor 1.6t4 :

- aggiunta ExeGetGlobFrame
- migliorati controlli validità curve in GeoSnap
- aggiunte a Lua EgtGetGlobFrame e EgtGetGroupGlobFrame.
This commit is contained in:
Dario Sassi
2016-08-29 07:34:34 +00:00
parent 4de59fbd33
commit baf67d3e9f
4 changed files with 53 additions and 11 deletions
+36
View File
@@ -68,6 +68,40 @@ LuaGetType( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaGetGlobFrame( lua_State* L)
{
// 1 parametro : Id
int nId = GDB_ID_NULL ;
LuaGetParam( L, 1, nId) ;
LuaClearStack( L) ;
// recupero il frame
Frame3d frFrame ;
if ( ExeGetGlobFrame( nId, frFrame))
LuaSetParam( L, frFrame) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaGetGroupGlobFrame( lua_State* L)
{
// 1 parametro : Id
int nId = GDB_ID_NULL ;
LuaGetParam( L, 1, nId) ;
LuaClearStack( L) ;
// recupero il frame
Frame3d frFrame ;
if ( ExeGetGroupGlobFrame( nId, frFrame))
LuaSetParam( L, frFrame) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaGetGroupObjs( lua_State* L)
@@ -525,6 +559,8 @@ LuaInstallGdbObjects( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtExistsObj", LuaExistsObj) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetParent", LuaGetParent) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetType", LuaGetType) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetGlobFrame", LuaGetGlobFrame) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetGroupGlobFrame", LuaGetGroupGlobFrame) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetGroupObjs", LuaGetGroupObjs) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetFirstInGroup", LuaGetFirstInGroup) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetNext", LuaGetNext) ;