ebccd64daa
- aggiunti campi Rot2Stroke e SolCh a teste per limitare corse secondo asse rotante e dare criterio scelta soluzione - utilizzo di questi dati nel calcolo assi macchina - aggiunta GetCurrMachineName.
61 lines
2.1 KiB
C++
61 lines
2.1 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 Head : public IUserObj
|
|
{
|
|
public : // IUserObj
|
|
virtual Head* Clone( void) const ;
|
|
virtual const std::string& GetClassName( void) const ;
|
|
virtual bool Dump( std::string& sOut, bool bMM = true, const char* szNewLine = "\n") const ;
|
|
virtual bool SetOwner( int nId, IGeomDB* pGDB) ;
|
|
virtual int GetOwner( void) const ;
|
|
virtual IGeomDB* GetGeomDB( void) const ;
|
|
|
|
public :
|
|
Head( void) ;
|
|
bool Set( const std::string& sName, int nType, const std::string& sHSet, const Vector3d& vtADir,
|
|
double dRot1W, const STROKE& Rot2Stroke, int nSolCh) ;
|
|
bool AddHeadToHSet( const std::string& sHead) ;
|
|
const std::string& GetName( void)
|
|
{ return m_sName ; }
|
|
int GetType( void)
|
|
{ return m_nType ; }
|
|
const STRVECTOR& GetHSet(void)
|
|
{ return m_vsHSet ; }
|
|
const Vector3d& GetADir( void)
|
|
{ return m_vtADir ; }
|
|
double GetRot1W( void)
|
|
{ return m_dRot1W ; }
|
|
const STROKE& GetRot2Stroke( void)
|
|
{ return m_Rot2Stroke ; }
|
|
int GetSolCh( void)
|
|
{ return m_nSolCh ; }
|
|
|
|
private :
|
|
int m_nOwnerId ;
|
|
IGeomDB* m_pGeomDB ;
|
|
std::string m_sName ;
|
|
int m_nType ;
|
|
STRVECTOR m_vsHSet ;
|
|
Vector3d m_vtADir ;
|
|
double m_dRot1W ;
|
|
STROKE m_Rot2Stroke ;
|
|
int m_nSolCh ;
|
|
} ; |