Files
EgtMachKernel/SetTempMachLook.h
T
Dario Sassi b88aa9cf18 EgtMachKernel 1.8f4 :
- correzioni per rinvio da sotto speciale (MDC)
- ottimizzato caricamento altri utensili su testa con più uscite
- salvato stato visualizzazione macchina e aggiunta funzione per restituirlo
- si garantisce la visualizzazione completa della macchina durante Apply e Update delle lavorazioni.
2017-06-27 13:54:41 +00:00

38 lines
1.2 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2017-2017
//----------------------------------------------------------------------------
// File : SetTempMachLook.h Data : 26.06.17 Versione : 1.8f
// Contenuto : Dichiarazione classe per impostazione temporanea
// della fase corrente.
//
//
// Modifiche : 14.10.16 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "MachMgr.h"
//----------------------------------------------------------------------------
class SetTempMachLook
{
public :
SetTempMachLook( MachMgr* pMachMgr, int nLook)
{ m_pMachMgr = pMachMgr ;
if ( m_pMachMgr != nullptr) {
m_nPrevLook = m_pMachMgr->GetMachineLook() ;
m_pMachMgr->SetMachineLook( nLook) ;
} }
~SetTempMachLook( void)
{ Reset() ; }
void Reset( void)
{ if ( m_pMachMgr != nullptr)
m_pMachMgr->SetMachineLook( m_nPrevLook) ; }
private :
int m_nPrevLook ;
MachMgr* m_pMachMgr ;
} ;