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 ede9920..d16ea8d 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ