50e2127a41
- aggiunta gestione Dist e StemDiam in utensili - aggiunta funzione EmtModifyExitPosition - aggiunta gestione Dist a OnSetHead e aggiornamento posizione uscita.
48 lines
1.7 KiB
C++
48 lines
1.7 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2015-2015
|
|
//----------------------------------------------------------------------------
|
|
// File : Head.h Data : 25.05.15 Versione : 1.6e7
|
|
// Contenuto : Dichiarazione della classe Head.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 25.05.15 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "Machine.h"
|
|
#include "/EgtDev/Include/EGkUserObj.h"
|
|
#include "/EgtDev/Include/EGkPoint3d.h"
|
|
|
|
//----------------------------------------------------------------------------
|
|
class Exit : public IUserObj
|
|
{
|
|
public : // IUserObj
|
|
Exit* Clone( void) const override ;
|
|
const std::string& GetClassName( void) const override ;
|
|
bool Dump( std::string& sOut, bool bMM = true, const char* szNewLine = "\n") const override ;
|
|
bool SetOwner( int nId, IGeomDB* pGDB) override ;
|
|
int GetOwner( void) const override ;
|
|
IGeomDB* GetGeomDB( void) const override ;
|
|
|
|
public :
|
|
Exit( void) ;
|
|
bool Set( const std::string& sName, const Point3d& ptPos, const Vector3d& vtTDir) ;
|
|
bool Modify( const Point3d& ptPos, double dExitMaxAdjust) ;
|
|
bool SetTool( const std::string& sTool) ;
|
|
const std::string& GetName( void) { return m_sName ; }
|
|
const Point3d& GetPos( void) { return m_ptPos ; }
|
|
const Vector3d& GetTDir( void) { return m_vtTDir ; }
|
|
const std::string& GetTool( void) { return m_sTool ; }
|
|
|
|
private :
|
|
int m_nOwnerId ;
|
|
IGeomDB* m_pGeomDB ;
|
|
std::string m_sName ;
|
|
Point3d m_ptPos ;
|
|
Vector3d m_vtTDir ;
|
|
std::string m_sTool ;
|
|
} ; |