d9c080c6d6
- ora OnSpecialApplyDisposition gestisce anche TcPos - aggiunta possibilità di richiamo OnPostApplyMachining al termine ricalcolo lavorazione - aggiunta funzione Lua EmtGetAxesPos - piccole migliorie a simulazione.
57 lines
2.3 KiB
C++
57 lines
2.3 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2015-2016
|
|
//----------------------------------------------------------------------------
|
|
// File : Machining.h Data : 29.04.16 Versione : 1.6p4
|
|
// Contenuto : Dichiarazione della classe Machining da cui derivano
|
|
// tutti i gestori delle lavorazioni.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 07.06.15 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "Operation.h"
|
|
|
|
//----------------------------------------------------------------------------
|
|
class Machining : public Operation
|
|
{
|
|
protected : // Operation
|
|
const std::string& GetToolName( void) const override ;
|
|
const std::string& GetHeadName( void) const override ;
|
|
int GetExitNbr( void) const override ;
|
|
const std::string& GetToolTcPos( void) const override ;
|
|
bool NeedPrevHome( void) const override ;
|
|
|
|
public :
|
|
virtual bool Prepare( const std::string& sMchName) = 0 ;
|
|
virtual bool SetParam( int nType, bool bVal) = 0 ;
|
|
virtual bool SetParam( int nType, int nVal) = 0 ;
|
|
virtual bool SetParam( int nType, double dVal) = 0 ;
|
|
virtual bool SetParam( int nType, const std::string& sVal) = 0 ;
|
|
virtual bool SetGeometry( const SELVECTOR& vIds) = 0 ;
|
|
virtual bool Preview( bool bRecalc) = 0 ;
|
|
virtual bool Apply( bool bRecalc) = 0 ;
|
|
virtual bool GetParam( int nType, bool& bVal) const = 0 ;
|
|
virtual bool GetParam( int nType, int& nVal) const = 0 ;
|
|
virtual bool GetParam( int nType, double& dVal) const = 0 ;
|
|
virtual bool GetParam( int nType, std::string& sVal) const = 0 ;
|
|
virtual const ToolData& GetToolData( void) const = 0 ;
|
|
virtual bool GetGeometry( SELVECTOR& vIds) const = 0 ;
|
|
|
|
public :
|
|
bool PostApply( void) ;
|
|
|
|
protected :
|
|
Machining( void) ;
|
|
} ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
inline const Machining* GetMachining( const IUserObj* pUserObj)
|
|
{ return dynamic_cast<const Machining*>( pUserObj) ; }
|
|
inline Machining* GetMachining( IUserObj* pUserObj)
|
|
{ return dynamic_cast< Machining*>( pUserObj) ; }
|