EgtMachKernel 1.8c7 :
- modifiche per gestione unificata dell'attrezzaggio - caricamento degli utensili di tutte le uscite di una testa al caricamento di un utensile qualunque della stessa.
This commit is contained in:
+29
-3
@@ -44,6 +44,17 @@ SetupMgr::Init( MachMgr* pMchMgr)
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
SetupMgr::Reset( void)
|
||||
{
|
||||
m_vStuData.clear() ;
|
||||
m_pMchMgr = nullptr ;
|
||||
m_pGeomDB = nullptr ;
|
||||
m_pMachine = nullptr ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
SetupMgr::Load( void)
|
||||
@@ -218,7 +229,7 @@ SetupMgr::Import( const string& sFileName)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
SetupMgr::FindTool( const string& sName)
|
||||
SetupMgr::FindTool( const string& sName) const
|
||||
{
|
||||
// verifico validità utensile
|
||||
if ( IsEmptyOrSpaces( sName))
|
||||
@@ -233,7 +244,7 @@ SetupMgr::FindTool( const string& sName)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
SetupMgr::GetPosData( int nPos, string& sTcPos, string& sHead, int& nExit, string& sName)
|
||||
SetupMgr::GetPosData( int nPos, string& sTcPos, string& sHead, int& nExit, string& sName) const
|
||||
{
|
||||
// verifico che la posizione sia valida
|
||||
int nI = nPos - 1 ;
|
||||
@@ -256,7 +267,7 @@ SetupMgr::GetPosData( int nPos, string& sTcPos, string& sHead, int& nExit, strin
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
SetupMgr::GetToolData( const string& sName, string& sTcPos, string& sHead, int& nExit, int* pnPos)
|
||||
SetupMgr::GetToolData( const string& sName, string& sTcPos, string& sHead, int& nExit, int* pnPos) const
|
||||
{
|
||||
// verifico validità utensile
|
||||
if ( IsEmptyOrSpaces( sName))
|
||||
@@ -279,3 +290,18 @@ SetupMgr::GetToolData( const string& sName, string& sTcPos, string& sHead, int&
|
||||
*pnPos = nI + 1 ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
SetupMgr::GetToolName( const string& sHead, int nExit, string& sName) const
|
||||
{
|
||||
// eseguo ricerca
|
||||
for ( size_t i = 0 ; i < m_vStuData.size() ; ++ i) {
|
||||
if ( EqualNoCase( sHead, m_vStuData[i].m_sHead) && m_vStuData[i].m_nExit == nExit) {
|
||||
sName = m_vStuData[i].m_sName ;
|
||||
return true ;
|
||||
}
|
||||
}
|
||||
sName.clear() ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user