EgtInterface 1.8h2 :
- aggiunte EgtGetRawPartCenter, EgtGetRawPartBBox - aggiunte EgtSetTextureMaxLinPixels e EgtGetTextureImagePixels - aggiunte EgtAddPhoto2, EgtMovePhoto, EgtRotatePhoto e EgtGetPhotoImagePixels - eliminata EgtGetPhotoMMxPixel.
This commit is contained in:
+33
-9
@@ -30,6 +30,30 @@ __stdcall EgtAddPhoto( const wchar_t* wsName, const wchar_t* wsFile,
|
||||
ptOri, ptCen, dMMxPixel, nParentId, ptMin, ptMax) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
__stdcall EgtAddPhoto2( const wchar_t* wsName, const wchar_t* wsFile,
|
||||
const double ptOri[3], const double ptCen[3], double dDimX, double dDimY,
|
||||
int nParentId, const double ptMin[3], const double ptMax[3])
|
||||
{
|
||||
return ExeAddPhoto( wstrztoA( wsName), wstrztoA( wsFile),
|
||||
ptOri, ptCen, dDimX, dDimY, nParentId, ptMin, ptMax) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtMovePhoto( int nId, const double vtMove[3])
|
||||
{
|
||||
return ( ExeMovePhoto( nId, vtMove) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtRotatePhoto( int nId, const double ptAx[3], const double vtAx[3], double dAngDeg)
|
||||
{
|
||||
return ( ExeRotatePhoto( nId, ptAx, vtAx, dAngDeg) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetPhotoPath( int nId, wchar_t*& wsFile)
|
||||
@@ -76,15 +100,6 @@ __stdcall EgtGetPhotoCenter( int nId, double ptCen[3])
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetPhotoMMxPixel( int nId, double* pdMMxPixel)
|
||||
{
|
||||
if ( pdMMxPixel == nullptr)
|
||||
return FALSE ;
|
||||
return ( ExeGetPhotoMMxPixel( nId, *pdMMxPixel) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetPhotoDimensions( int nId, double* pdDimX, double* pdDimY)
|
||||
@@ -102,3 +117,12 @@ __stdcall EgtGetPhotoPixels( int nId, int* pnPixelX, int* pnPixelY)
|
||||
return FALSE ;
|
||||
return ( ExeGetPhotoPixels( nId, *pnPixelX, *pnPixelY) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetPhotoImagePixels( int nId, int* pnPixelX, int* pnPixelY)
|
||||
{
|
||||
if ( pnPixelX == nullptr || pnPixelY == nullptr)
|
||||
return FALSE ;
|
||||
return ( ExeGetPhotoImagePixels( nId, *pnPixelX, *pnPixelY) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user