EgtMachKernel :
- aggiunte RemoveOperation e RemoveAllOperations.
This commit is contained in:
+29
-1
@@ -195,6 +195,34 @@ MachMgr::GetOperationId( const string& sName) const
|
||||
return GDB_ID_NULL ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::RemoveOperation( int nId)
|
||||
{
|
||||
// verifico sia una Operazione
|
||||
if ( GetOperationType( nId) == OPER_NULL)
|
||||
return false ;
|
||||
// eseguo la rimozione
|
||||
m_pGeomDB->Erase( nId) ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::RemoveAllOperations( bool bExceptFirstDisp)
|
||||
{
|
||||
// indice terminazione ciclo
|
||||
int nStopId = ( bExceptFirstDisp ? GetFirstOperation() : GDB_ID_NULL) ;
|
||||
// rimuovo tutte le operazioni a partire dalla fine
|
||||
int nOperId = GetLastOperation() ;
|
||||
while ( nOperId != nStopId) {
|
||||
RemoveOperation( nOperId) ;
|
||||
nOperId = GetLastOperation() ;
|
||||
}
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Dispositions
|
||||
//----------------------------------------------------------------------------
|
||||
@@ -401,7 +429,7 @@ MachMgr::SetMachiningGeometry( const SELVECTOR& vIds)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::Apply( void)
|
||||
MachMgr::MachiningApply( void)
|
||||
{
|
||||
// recupero la lavorazione corrente
|
||||
int nCurrMchId = GetCurrMachining() ;
|
||||
|
||||
Reference in New Issue
Block a user