EgtInterface :
- aggiunta interfaccia per EgtCreateCurveCompoByReorder - aggiunte EgtGetPhotoDimensions e EgtGetPhotoPixels.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user