EgtMachKernel 1.6l9 :

- aggiunta funzione per Info su extra-corse
- aggiunte funzioni GetOperationMode e GetOperationStatus
- migliorata simulazione con sole rotazioni
- in simulazione, quando si incontra una extra-corsa è possibile richiedere info relative.
This commit is contained in:
Dario Sassi
2016-01-18 08:01:58 +00:00
parent b23c5c5699
commit a449bd16cc
9 changed files with 128 additions and 29 deletions
+30
View File
@@ -285,6 +285,21 @@ MachMgr::SetOperationMode( int nId, bool bActive)
return true ;
}
//----------------------------------------------------------------------------
bool
MachMgr::GetOperationMode( int nId, bool& bActive) const
{
// verifico sia una Operazione
if ( GetOperationType( nId) == OPER_NULL)
return false ;
// recupero stato di attivazione/disattivazione
int nMode ;
if ( ! m_pGeomDB->GetMode( nId, nMode))
return false ;
bActive = ( nMode == GDB_MD_STD) ;
return true ;
}
//----------------------------------------------------------------------------
bool
MachMgr::SetAllOperationsMode( bool bExceptFirstDisp, bool bActive)
@@ -312,6 +327,21 @@ MachMgr::SetOperationStatus( int nId, bool bShow)
return true ;
}
//----------------------------------------------------------------------------
bool
MachMgr::GetOperationStatus( int nId, bool& bShow) const
{
// verifico sia una Operazione
if ( GetOperationType( nId) == OPER_NULL)
return false ;
// recupero stato di visualizzazione
int nStat ;
if ( ! m_pGeomDB->GetStatus( nId, nStat))
return false ;
bShow = ( nStat == GDB_ST_ON) ;
return true ;
}
//----------------------------------------------------------------------------
bool
MachMgr::SetAllOperationsStatus( bool bExceptFirstDisp, bool bShow)