From c9738c189b62c305b15b03bb0911217b1b656ba5 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 18 Feb 2016 18:46:27 +0000 Subject: [PATCH] EgtInterface 1.6n7 : - aggiornamento per nuove funzioni con Photo. --- API_Photo.cpp | 35 +++++++++++++++++++++++++++++++++++ EgtInterface.rc | Bin 11726 -> 11726 bytes 2 files changed, 35 insertions(+) diff --git a/API_Photo.cpp b/API_Photo.cpp index f670bbb..1ca41a4 100644 --- a/API_Photo.cpp +++ b/API_Photo.cpp @@ -49,3 +49,38 @@ __stdcall EgtChangePhotoPath( int nId, const wchar_t* wsFile) { return ( ExeChangePhotoPath( nId, wstrztoA( wsFile)) ? TRUE : FALSE) ; } + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetPhotoOrigin( int nId, double ptOri[3]) +{ + if ( ptOri == nullptr) + return FALSE ; + Point3d ptTmp ; + if ( ! ExeGetPhotoOrigin( nId, ptTmp)) + return FALSE ; + VEC_FROM_3D( ptOri, ptTmp) + return TRUE ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetPhotoCenter( int nId, double ptCen[3]) +{ + if ( ptCen == nullptr) + return FALSE ; + Point3d ptTmp ; + if ( ! ExeGetPhotoCenter( nId, ptTmp)) + return FALSE ; + VEC_FROM_3D( ptCen, ptTmp) + return TRUE ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetPhotoMMxPixel( int nId, double* pdMMxPixel) +{ + if ( pdMMxPixel == nullptr) + return FALSE ; + return ( ExeGetPhotoMMxPixel( nId, *pdMMxPixel) ? TRUE : FALSE) ; +} diff --git a/EgtInterface.rc b/EgtInterface.rc index ede9920e2c12d1f09f15c334fa1ce728d5461b0c..d16ea8db8d6374990a08b2bad49006ccece8492b 100644 GIT binary patch delta 113 zcmX>XeJ*;#A2vqw%@4(HGEKh5na5~8`6H+9WG^L)&3#f*jGK>e8!&^VPclv3Cs+lM i-t491#khHcFjUGNr~*ls7YjlI&*XKAP&0v=TDSq0S1Anu delta 97 zcmX>XeJ*;#A2vp_%@4(HGEKh5nK!veL}IgpR0iYbBisheV2P7VllKW$fh7WjCa{3T d+?k;YXF&L1H9V8oDMAbg5K3U&JVn`x3jjlaBclKS