EgtMachKernel :

- aggiunta la funzione GetClEntFeed a MachMgr.
This commit is contained in:
Dario Sassi
2026-02-03 17:28:41 +01:00
parent 6e359a5740
commit ab56d95f77
2 changed files with 19 additions and 0 deletions
+18
View File
@@ -76,6 +76,24 @@ MachMgr::GetClEntIndex( int nEntId, int& nIndex) const
return true ;
}
//----------------------------------------------------------------------------
bool
MachMgr::GetClEntFeed( int nEntId, double& dFeed) const
{
// default
dFeed = 0 ;
// verifico validita GeomDB
if ( m_pGeomDB == nullptr)
return false ;
// recupero l'oggetto CamData
const CamData* pCamData = GetCamData( m_pGeomDB->GetUserObj( nEntId)) ;
if ( pCamData == nullptr)
return false ;
// recupero la feed
dFeed = pCamData->GetFeed() ;
return true ;
}
//----------------------------------------------------------------------------
bool
MachMgr::GetClEntAxesStatus( int nEntId, int& nStatus) const