f2b0401105
- per tagli di lama aggiunti parametri estensione inizio/fine dei percorsi - per forature attivata Preview - aggiunte funzioni GetGeometry a tutte le lavorazioni
63 lines
2.4 KiB
C++
63 lines
2.4 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2015-2015
|
|
//----------------------------------------------------------------------------
|
|
// File : Milling.h Data : 07.06.15 Versione : 1.6f2
|
|
// Contenuto : Dichiarazione della classe Milling.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 07.06.15 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "Machining.h"
|
|
#include "MillingData.h"
|
|
#include "ToolData.h"
|
|
|
|
class ICurve ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
class Milling : public Machining
|
|
{
|
|
public : // IUserObj
|
|
Milling* 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 ToSave( void) const override
|
|
{ return true ; }
|
|
bool Save( STRVECTOR& vString) const override ;
|
|
bool Load( const STRVECTOR& vString) override ;
|
|
|
|
public : // Machining
|
|
bool Prepare( const std::string& sMillName) override ;
|
|
bool SetParam( int nType, bool bVal) override ;
|
|
bool SetParam( int nType, int nVal) override ;
|
|
bool SetParam( int nType, double dVal) override ;
|
|
bool SetParam( int nType, const std::string& sVal) override ;
|
|
bool SetGeometry( const SELVECTOR& vIds) override ;
|
|
bool Preview( bool bRecalc) override ;
|
|
bool Apply( bool bRecalc) override ;
|
|
bool GetParam( int nType, bool& bVal) const override ;
|
|
bool GetParam( int nType, int& nVal) const override ;
|
|
bool GetParam( int nType, double& dVal) const override ;
|
|
bool GetParam( int nType, std::string& sVal) const override ;
|
|
const ToolData& GetToolData( void) const ;
|
|
bool GetGeometry( SELVECTOR& vIds) const override ;
|
|
bool AdjustPositionForAxesCalc( const CamData* pCamData, Point3d& ptP) override ;
|
|
|
|
public :
|
|
Milling( void) ;
|
|
|
|
private :
|
|
bool VerifyGeometry( SelData Id, int& nSubs) ;
|
|
ICurve* GetCurve( SelData Id) ;
|
|
bool Chain( int nGrpDestId) ;
|
|
|
|
private :
|
|
SELVECTOR m_vId ; // identificativi entità geometriche da lavorare
|
|
MillingData m_Params ; // parametri lavorazione
|
|
ToolData m_TParams ; // parametri utensile
|
|
} ; |