b8965da858
- ampliata Disposizione con gestione movimenti di pezzi con la testa tramite SpecialApply (che richiama script) - modifiche a Simulatore per gestire queste disposizioni e aggiunti richiami script su diversi eventi - modifiche a Generatore per gestire queste disposizioni - varie altre modifiche e migliorie.
53 lines
2.2 KiB
C++
53 lines
2.2 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 ;
|
|
const std::string& GetHeadName( void) const ;
|
|
int GetExitNbr( void) const ;
|
|
const std::string& GetToolTcPos( void) const ;
|
|
|
|
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 ;
|
|
|
|
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) ; }
|