EgtMachKernel 1.6v7 :

- modifiche per bloccaggi su più fasi
This commit is contained in:
Dario Sassi
2016-10-15 10:06:51 +00:00
parent 64c0e3826c
commit d682572702
12 changed files with 198 additions and 80 deletions
+7
View File
@@ -18,6 +18,7 @@
#include "MachConst.h"
#include "Disposition.h"
#include "MachiningCreate.h"
#include "SetTempPhase.h"
#include "/EgtDev/Include/EMkOperationConst.h"
#include "/EgtDev/Include/EGkUserObjFactory.h"
#include "/EgtDev/Include/EGkGdbIterator.h"
@@ -797,6 +798,8 @@ MachMgr::SetMachiningGeometry( const SELVECTOR& vIds)
Machining* pMch = GetMachining( m_pGeomDB->GetUserObj( nCurrMchId)) ;
if ( pMch == nullptr)
return false ;
// imposto fase della lavorazione come temporaneamente corrente
SetTempPhase TmpPhase( this, pMch->GetPhase()) ;
// imposto la geometria
return pMch->SetGeometry( vIds) ;
}
@@ -813,6 +816,8 @@ MachMgr::MachiningPreview( bool bRecalc)
Machining* pMch = GetMachining( m_pGeomDB->GetUserObj( nCurrMchId)) ;
if ( pMch == nullptr)
return false ;
// imposto fase della lavorazione come temporaneamente corrente
SetTempPhase TmpPhase( this, pMch->GetPhase()) ;
// calcolo l'anteprima della lavorazione
return pMch->Preview( bRecalc) ;
}
@@ -859,6 +864,8 @@ MachMgr::MachiningApply( bool bRecalc)
Machining* pMch = GetMachining( m_pGeomDB->GetUserObj( nCurrMchId)) ;
if ( pMch == nullptr)
return false ;
// imposto fase della lavorazione come temporaneamente corrente
SetTempPhase TmpPhase( this, pMch->GetPhase()) ;
// calcolo la lavorazione
return pMch->Apply( bRecalc) ;
}