EgtMachKernel 1.6x6 :

- aggiunta MachMgr::GetHeadExitCount.
This commit is contained in:
Dario Sassi
2017-01-11 17:20:08 +00:00
parent bf0aa61f9e
commit bd8a08bce9
8 changed files with 39 additions and 10 deletions
+11 -5
View File
@@ -1,13 +1,13 @@
//----------------------------------------------------------------------------
// EgalTech 2015-2015
// EgalTech 2015-2017
//----------------------------------------------------------------------------
// File : Head.cpp Data : 25.05.15 Versione : 1.6e7
// File : Head.cpp Data : 11.01.17 Versione : 1.6x6
// Contenuto : Oggetto testa per gruppo testa di macchina.
//
//
//
// Modifiche : 25.05.15 DS Creazione modulo.
//
// 11.01.17 DS Aggiunto contatore uscite.
//
//----------------------------------------------------------------------------
@@ -45,6 +45,7 @@ Head::Clone( void) const
pHead->m_pGeomDB = nullptr ;
pHead->m_sName = m_sName ;
pHead->m_nType = m_nType ;
pHead->m_nExitCount = m_nExitCount ;
pHead->m_vsHSet = m_vsHSet ;
pHead->m_vtADir = m_vtADir ;
pHead->m_dRot1W = m_dRot1W ;
@@ -68,6 +69,7 @@ Head::Dump( string& sOut, bool bMM, const char* szNewLine) const
sOut += "Id=" + ToString( m_nOwnerId) + szNewLine ;
sOut += "Name=" + m_sName + szNewLine ;
sOut += "Type=" + ToString( m_nType) + szNewLine ;
sOut += "ExitCount=" + ToString( m_nExitCount) + szNewLine ;
sOut += "HSet=" + ToString( m_vsHSet) + szNewLine ;
sOut += "ADir=" + ToString( m_vtADir) + szNewLine ;
return true ;
@@ -99,7 +101,7 @@ Head::GetGeomDB( void) const
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
Head::Head( void)
: m_nOwnerId( GDB_ID_NULL), m_pGeomDB( nullptr), m_nType( MCH_HT_NONE),
: m_nOwnerId( GDB_ID_NULL), m_pGeomDB( nullptr), m_nType( MCH_HT_NONE), m_nExitCount( 0),
m_dRot1W( 1), m_nSolCh( MCH_SCC_NONE)
{
m_Rot2Stroke.Min = - INFINITO ;
@@ -108,11 +110,15 @@ Head::Head( void)
//----------------------------------------------------------------------------
bool
Head::Set( const string& sName, int nType, const string& sHSet, const Vector3d& vtADir,
Head::Set( const string& sName, int nType, int nExitCount, const string& sHSet, const Vector3d& vtADir,
double dRot1W, const STROKE& Rot2Stroke, int nSolCh)
{
m_sName = sName ;
m_nType = nType ;
if ( m_nType == MCH_HT_MULTI)
m_nExitCount = nExitCount ;
else
m_nExitCount = 1 ;
m_vsHSet.clear() ;
m_vsHSet.push_back( sHSet) ;
m_vtADir = vtADir ;