8dd67afcb7
- modifiche per tagli di lama inclinati.
69 lines
2.9 KiB
C++
69 lines
2.9 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2015-2015
|
|
//----------------------------------------------------------------------------
|
|
// File : Sawing.h Data : 07.06.15 Versione : 1.6f2
|
|
// Contenuto : Dichiarazione della classe Sawing.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 07.06.15 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "Machining.h"
|
|
#include "SawingData.h"
|
|
#include "ToolData.h"
|
|
|
|
class ICurve ;
|
|
class ICurveLine ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
class Sawing : public Machining
|
|
{
|
|
public : // IUserObj
|
|
virtual Sawing* 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 ToSave( void) const { return true ; }
|
|
virtual bool Save( STRVECTOR& vString) const ;
|
|
virtual bool Load( const STRVECTOR& vString) ;
|
|
|
|
public : // Machining
|
|
virtual bool Prepare( const std::string& sSawName) ;
|
|
virtual bool SetParam( int nType, bool bVal) ;
|
|
virtual bool SetParam( int nType, int nVal) ;
|
|
virtual bool SetParam( int nType, double dVal) ;
|
|
virtual bool SetParam( int nType, const std::string& sVal) ;
|
|
virtual bool SetGeometry( const SELVECTOR& vIds) ;
|
|
virtual bool Apply( void) ;
|
|
virtual bool GetParam( int nType, bool& bVal) const ;
|
|
virtual bool GetParam( int nType, int& nVal) const ;
|
|
virtual bool GetParam( int nType, double& dVal) const ;
|
|
virtual bool GetParam( int nType, std::string& sVal) const ;
|
|
virtual const ToolData& GetToolData( void) const ;
|
|
virtual bool AdjustPositionForAxesCalc( const CamData* pCamData, Point3d& ptP) ;
|
|
|
|
public :
|
|
Sawing( void) ;
|
|
|
|
private :
|
|
bool VerifyGeometry( SelData Id, int& nSubs) ;
|
|
ICurve* GetCurve( SelData Id) ;
|
|
bool VerifySideAngle( void) ;
|
|
bool Chain( int nGrpDestId) ;
|
|
bool PathApply( int nPathId, int nClId) ;
|
|
bool EntityApply( const ICurve* pCrvP, const ICurve* pCrvC, const ICurve* pCrvN,
|
|
double dDepth, bool bIsFirst, bool bIsLast, const std::string& sName, int nClId) ;
|
|
bool CalculateToolAndCorrVersors( const ICurve* pCurve, Vector3d& vtTool, Vector3d& vtCorr) ;
|
|
bool AdjustForSide( ICurve* pCurve) ;
|
|
bool AdjustForEdges( ICurveLine* pLine, double dElev, bool bIsFirst, bool bIsLast, bool bExtAngPC, bool bExtAngCN) ;
|
|
|
|
private :
|
|
SELVECTOR m_vId ; // identificativi entità geometriche da lavorare
|
|
SawingData m_Params ; // parametri lavorazione
|
|
ToolData m_TParams ; // parametri utensile
|
|
} ;
|