diff --git a/API_GdbCreateCurve.cpp b/API_GdbCreateCurve.cpp index 37ad491..a6e20a3 100644 --- a/API_GdbCreateCurve.cpp +++ b/API_GdbCreateCurve.cpp @@ -230,6 +230,19 @@ __stdcall EgtCreateCurveCompoByChain( int nParentId, int nNumId, const int nIds[ return ExeCreateCurveCompoByChain( nParentId, vIds, ptNear, ( bErase != FALSE), nRefType, nullptr) ; } +//------------------------------------------------------------------------------- +int +__stdcall EgtCreateCurveCompoByReorder( int nParentId, int nNumId, const int nIds[], + const double ptNear[3], BOOL bErase, int nRefType) +{ + INTVECTOR vIds ; + vIds.reserve( nNumId) ; + for ( int i = 0 ; i < nNumId ; ++i) { + vIds.push_back( nIds[i]) ; + } + return ExeCreateCurveCompoByReorder( nParentId, vIds, ptNear, ( bErase != FALSE), nRefType, nullptr) ; +} + //------------------------------------------------------------------------------- int __stdcall EgtCreateCurveCompoFromPoints( int nParentId, int nP, const double ptPs[], int nRefType) diff --git a/API_Photo.cpp b/API_Photo.cpp index 1ca41a4..9766a23 100644 --- a/API_Photo.cpp +++ b/API_Photo.cpp @@ -84,3 +84,21 @@ __stdcall EgtGetPhotoMMxPixel( int nId, double* pdMMxPixel) return FALSE ; return ( ExeGetPhotoMMxPixel( nId, *pdMMxPixel) ? TRUE : FALSE) ; } + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetPhotoDimensions( int nId, double* pdDimX, double* pdDimY) +{ + if ( pdDimX == nullptr || pdDimY == nullptr) + return FALSE ; + return ( ExeGetPhotoDimensions( nId, *pdDimX, *pdDimY) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetPhotoPixels( int nId, int* pnPixelX, int* pnPixelY) +{ + if ( pnPixelX == nullptr || pnPixelY == nullptr) + return FALSE ; + return ( ExeGetPhotoPixels( nId, *pnPixelX, *pnPixelY) ? TRUE : FALSE) ; +}