Files
Include/EMkOperationConst.h
Dario Sassi 4ee6655b54 Include :
- aggiornamento costanti per utensile e lavorazione WaterJet.
2019-07-10 12:53:53 +00:00

55 lines
2.4 KiB
C

//----------------------------------------------------------------------------
// EgalTech 2015-2019
//----------------------------------------------------------------------------
// File : EmkOperationConst.h Data : 08.07.19 Versione : 2.1g2
// Contenuto : Costanti delle operazioni.
//
//
//
// Modifiche : 12.10.15 DS Creazione modulo.
// 30.03.16 DS Agg. SawRoughing e SawFinishing.
// 15.01.17 DS Agg. GenMachining.
// 03.02.17 DS Agg. Chiseling.
// 25.05.19 DS Agg. SurfRoughing e SurfFinishing.
// 08.07.19 DS Agg. WaterJetting.
//
//----------------------------------------------------------------------------
#pragma once
//------------------------ Costanti per tipo Operazioni -----------------------
enum OperType { OPER_NULL = 0, // nulla
OPER_DISP = 0x000100, // disposizione
OPER_DRILLING = 0x000200, // foratura
OPER_SAWING = 0x000400, // taglio di lama
OPER_MILLING = 0x000800, // fresatura
OPER_POCKETING = 0x001000, // svuotatura
OPER_MORTISING = 0x002000, // mortasatura
OPER_SAWROUGHING = 0x004000, // sgrossatura con lama
OPER_SAWFINISHING = 0x008000, // finitura con lama
OPER_GENMACHINING = 0x010000, // lavorazione generica
OPER_CHISELING = 0x020000, // scalpellatura
OPER_SURFROUGHING = 0x040000, // sgrossatura superficie
OPER_SURFFINISHING = 0x080000, // finitura superficie
OPER_WATERJETTING = 0x100000} ; // taglio water jet
// Controllo tipo valido
bool inline IsValidDispositionType( int nType)
{
return ( nType == OPER_DISP) ;
}
bool inline IsValidMachiningType( int nType)
{
return ( nType == OPER_DRILLING ||
nType == OPER_SAWING ||
nType == OPER_MILLING ||
nType == OPER_POCKETING ||
nType == OPER_MORTISING ||
nType == OPER_SAWROUGHING ||
nType == OPER_SAWFINISHING ||
nType == OPER_GENMACHINING ||
nType == OPER_CHISELING ||
nType == OPER_SURFROUGHING ||
nType == OPER_SURFFINISHING ||
nType == OPER_WATERJETTING ) ;
}