EgtExecutor :

- a ExeInitMachMgr aggiunto parametro sToolMakersDir
- aggiunta funzione ExeTdbCurrToolDraw.
This commit is contained in:
Dario Sassi
2019-05-17 18:18:20 +00:00
parent 86ceaec8d9
commit 3cbb3fb604
3 changed files with 24 additions and 13 deletions
+13 -2
View File
@@ -31,14 +31,14 @@ using namespace std ;
//-----------------------------------------------------------------------------
bool
ExeInitMachMgr( const string& sMachinesDir)
ExeInitMachMgr( const string& sMachinesDir, const string& sToolMakersDir)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_GEOMDB( pGseCtx, false)
// inizializzazione gestore lavorazioni
PtrOwner<IMachMgr> pMachMgr( MyCreateMachMgr()) ;
VERIFY_NULL( Get( pMachMgr), "Error in CreateMachMgr", false)
bool bOk = pMachMgr->Init( sMachinesDir, pGseCtx->m_pGeomDB,
bool bOk = pMachMgr->Init( sMachinesDir, sToolMakersDir, pGseCtx->m_pGeomDB,
GetIndCurrGseContext(), LuaGetLuaLibsDir(), LuaGetLastRequire()) ;
// assegno il gestore al contesto
pGseCtx->m_pMachMgr = ( bOk ? Release( pMachMgr) : nullptr) ;
@@ -1288,6 +1288,17 @@ ExeTdbGetCurrToolMaxDepth( double& dMaxDepth)
return pMachMgr->TdbGetCurrToolMaxDepth( dMaxDepth) ;
}
//-----------------------------------------------------------------------------
int
ExeTdbCurrToolDraw( int nGenCtx, int nToolCtx)
{
ExeSetCurrentContext( nGenCtx) ;
IMachMgr* pMachMgr = GetCurrMachMgr() ;
VERIFY_MACHMGR( pMachMgr, 999)
// recupero il massimo affondamento dell'utensile
return pMachMgr->TdbCurrToolDraw( nGenCtx, nToolCtx) ;
}
//-----------------------------------------------------------------------------
bool
ExeTdbReload( void)