Files
EgtMachKernel/Generator.h
T
Dario Sassi 2324a8b3f4 EgtMachKernel 1.6j4 :
- modifiche a DB utensili per gestione utensile corrente
- prima versione generatore codice.
2015-10-31 09:45:57 +00:00

48 lines
1.8 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2015-2015
//----------------------------------------------------------------------------
// File : Generator.h Data : 28.10.15 Versione : 1.6j4
// Contenuto : Dichiarazione della classe Generator.
//
//
//
// Modifiche : 28.10.15 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "CamData.h"
class MachMgr ;
class IGeomDB ;
class Machine ;
//----------------------------------------------------------------------------
class Generator
{
public :
Generator( void) ;
~Generator( void) ;
bool Init( MachMgr* pMchMgr) ;
bool Run( const std::string& sCncFile) ;
private :
bool ProcessDisposition( int nOpId, int nOpInd) ;
bool ProcessMachining( int nOpId, int nOpInd) ;
bool ProcessClPath( int nClPathId, int nClPathInd, int nOpId, int nOpInd) ;
bool ProcessClEnt( int nEntId, int nEntInd, int nClPathId, int nClPathInd, int nOpId, int nOpInd) ;
bool UpdateTool( int nOpId) ;
bool UpdateAxes( void) ;
private :
MachMgr* m_pMchMgr ; // puntatore al gestore di tutte le lavorazioni
IGeomDB* m_pGeomDB ; // puntatore al DB geometrico
Machine* m_pMachine ; // puntatore alla macchina
std::string m_sPrevTool ; // nome dell'utensile precedente
std::string m_sTool ; // nome dell'utensile corrente
STRVECTOR m_AxesName ; // nomi degli assi macchina attivi
DBLVECTOR m_AxesVal ; // valori degli assi macchina all'inizio del movimento corrente
} ;