EgtInterface :

- aggiunta interfaccia per EgtCreateCurveCompoByReorder
- aggiunte EgtGetPhotoDimensions e EgtGetPhotoPixels.
This commit is contained in:
Dario Sassi
2017-01-14 11:18:25 +00:00
parent 998ca87697
commit e0ffed2ac3
2 changed files with 31 additions and 0 deletions
+13
View File
@@ -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)
+18
View File
@@ -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) ;
}