From e514309ef38ca3d68615e4517fd7ad10831c8dee Mon Sep 17 00:00:00 2001 From: DarioS Date: Mon, 26 Apr 2021 19:05:44 +0200 Subject: [PATCH] EgtInterface 2.3d5 : - aggiunte interfacce per funzioni EgtGetCalcAngles e EgtGetCalcPositions. --- API_MachMgr.cpp | 22 ++++++++++++++++++++++ EgtInterface.rc | Bin 11718 -> 11718 bytes 2 files changed, 22 insertions(+) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 191e1e2..0517f87 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -1913,6 +1913,28 @@ __stdcall EgtSetCalcTool( const wchar_t* wsTool, const wchar_t* wsHead, int nExi return ( ExeSetCalcTool( wstrztoA( wsTool), wstrztoA( wsHead), nExit) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetCalcAngles( const double vtDirT[3], const double vtDirA[3], + int* pnStat, double* pdAngA1, double* pdAngB1, double* pdAngA2, double* pdAngB2) +{ + if ( vtDirT == nullptr || vtDirA == nullptr || + pnStat == nullptr || pdAngA1 == nullptr || pdAngA2 == nullptr || pdAngB1 == nullptr || pdAngB2 == nullptr) + return FALSE ; + return ( ExeGetCalcAngles( vtDirT, vtDirA, *pnStat, *pdAngA1, *pdAngB1, *pdAngA2, *pdAngB2) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetCalcPositions( const double ptP[3], double dAngA, double dAngB, + int* pnStat, double* pdX, double* pdY, double* pdZ) +{ + if ( ptP == nullptr || + pnStat == nullptr || pdX == nullptr || pdY == nullptr || pdZ == nullptr) + return FALSE ; + return ( ExeGetCalcPositions( ptP, dAngA, dAngB, *pnStat, *pdX, *pdY, *pdZ) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtGetCalcTipFromPositions( double dX, double dY, double dZ, double dAngA, double dAngB, diff --git a/EgtInterface.rc b/EgtInterface.rc index 5f434c61481e8b3600c7eba8fa1856b8eb853004..883459dcfc6f41e16a45419e81e4af52fc5ba9cc 100644 GIT binary patch delta 111 zcmX>WeJpyzFE&Qg%^&$rGEF|hS;uHP`Jtfh<^rw;7OzIAO+TQQ4Xt~E@c}o08AGs#sB~S delta 111 zcmX>WeJpyzFE&P#%^&$rGEF|hS;uHH`Jtfh<^rw;7OzIAO+TQQ4Xt~E@c}o07@$;z5oCK