843282c234
- aggiunta prima versione del postprocessore - corretto salvataggio angolo rotazione per fixture - aggiunta GetParam di lavorazioni applicate - migliorata gestione DB lavorazioni con versioni e size nel file - corretto Clone di SawingData.
69 lines
2.9 KiB
C++
69 lines
2.9 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, const std::string& sInfo) ;
|
|
|
|
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( const std::string& sTool) ;
|
|
bool UpdateAxes( void) ;
|
|
bool OnStart( void) ;
|
|
bool OnEnd( void) ;
|
|
bool OnProgramStart( const std::string& sCncFile, const std::string& sInfo) ;
|
|
bool OnProgramEnd( void) ;
|
|
bool OnToolSelect( void) ;
|
|
bool OnToolDeselect( void) ;
|
|
bool OnDispositionStart( int nOpId, int nOpInd) ;
|
|
bool OnDispositionEnd( void) ;
|
|
bool OnTableData( const std::string& sName, const Point3d& ptOri1) ;
|
|
bool OnFixtureData( int nFixId, int nFixInd, const std::string& sName,
|
|
const Point3d& ptPos, double dAngDeg) ;
|
|
bool OnRawMoveData( int nRawId, int RawMoveInd, int nType, const Point3d& ptPos, int nFlag) ;
|
|
bool OnMachiningStart( int nOpId, int nOpInd) ;
|
|
bool OnMachiningEnd( void) ;
|
|
bool OnPathStart( int nClPathId, int nClPathInd) ;
|
|
bool OnPathEnd( void) ;
|
|
bool OnRapid( const DBLVECTOR& AxesEnd) ;
|
|
bool OnLinear( const DBLVECTOR& AxesEnd, double dFeed, int nFlag) ;
|
|
std::string GetGlobVarAxisValue( int nAx) ;
|
|
std::string GetGlobVarAxisPrev( int nAx) ;
|
|
std::string GetGlobVarAxisToken( int nAx) ;
|
|
|
|
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
|
|
} ;
|