From 254e333d4e344c61e1dfb994dc4c4b712759678a Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 30 Jan 2015 08:16:24 +0000 Subject: [PATCH] Include : - aggiornamento. --- EInAPI.h | 178 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 98 insertions(+), 80 deletions(-) diff --git a/EInAPI.h b/EInAPI.h index 88c2c37..dca8d97 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -45,61 +45,6 @@ EIN_EXPORT BOOL __stdcall EgtGetVersionInfo( wchar_t*& wsVer) ; EIN_EXPORT BOOL __stdcall EgtFreeMemory( void* pMem) ; EIN_EXPORT BOOL __stdcall EgtOutLog( const wchar_t* sMsg) ; -// Geo Base -EIN_EXPORT BOOL __stdcall EgtVectorNormalize( double* pdX, double* pdY, double* pdZ, - double dEps = EPS_SMALL) ; -EIN_EXPORT BOOL __stdcall EgtVectorRotate( double* pdX, double* pdY, double* pdZ, - const double vtAx[3], double dAngRotDeg) ; -EIN_EXPORT BOOL __stdcall EgtVectorScale( double* pdX, double* pdY, double* pdZ, - const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3], - double dCoeffX, double dCoeffY, double dCoeffZ) ; -EIN_EXPORT BOOL __stdcall EgtVectorMirror( double* pdX, double* pdY, double* pdZ, - const double vtNorm[3]) ; -EIN_EXPORT BOOL __stdcall EgtVectorShear( double* pdX, double* pdY, double* pdZ, - const double vtNorm[3], const double vtDir[3], double dCoeff) ; -EIN_EXPORT BOOL __stdcall EgtVectorToGlob( double* pdX, double* pdY, double* pdZ, - const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3]) ; -EIN_EXPORT BOOL __stdcall EgtVectorToLoc( double* pdX, double* pdY, double* pdZ, - const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3]) ; -EIN_EXPORT BOOL __stdcall EgtVectorLocToLoc( double* pdX, double* pdY, double* pdZ, - const double ptO1[3], const double vtX1[3], const double vtY1[3], const double vtZ1[3], - const double ptO2[3], const double vtX2[3], const double vtY2[3], const double vtZ2[3]) ; -EIN_EXPORT BOOL __stdcall EgtGetVectorRotation( const double vtS[3], const double vtE[3], const double vtAx[3], - double* pdAngRotDeg, BOOL* pbDet) ; -EIN_EXPORT BOOL __stdcall EgtPointTranslate( double* pdX, double* pdY, double* pdZ, - const double vtMove[3]) ; -EIN_EXPORT BOOL __stdcall EgtPointRotate( double* pdX, double* pdY, double* pdZ, - const double ptAx[3], const double vtAx[3], double dAngRotDeg) ; -EIN_EXPORT BOOL __stdcall EgtPointScale( double* pdX, double* pdY, double* pdZ, - const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3], - double dCoeffX, double dCoeffY, double dCoeffZ) ; -EIN_EXPORT BOOL __stdcall EgtPointMirror( double* pdX, double* pdY, double* pdZ, - const double ptOn[3], const double vtNorm[3]) ; -EIN_EXPORT BOOL __stdcall EgtPointShear( double* pdX, double* pdY, double* pdZ, - const double ptOn[3], const double vtNorm[3], const double vtDir[3], double dCoeff) ; -EIN_EXPORT BOOL __stdcall EgtPointToGlob( double* pdX, double* pdY, double* pdZ, - const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3]) ; -EIN_EXPORT BOOL __stdcall EgtPointToLoc( double* pdX, double* pdY, double* pdZ, - const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3]) ; -EIN_EXPORT BOOL __stdcall EgtPointLocToLoc( double* pdX, double* pdY, double* pdZ, - const double ptO1[3], const double vtX1[3], const double vtY1[3], const double vtZ1[3], - const double ptO2[3], const double vtX2[3], const double vtY2[3], const double vtZ2[3]) ; -EIN_EXPORT BOOL __stdcall EgtFrameFrom3Points( double ptO[3], double ptOnX[3], double ptNearY[3], - double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3]) ; -EIN_EXPORT BOOL __stdcall EgtFrameOCS( double ptO[3], double vtDirZ[3], - double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3]) ; -EIN_EXPORT BOOL __stdcall EgtFrameTranslate( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], - const double vtMove[3]) ; -EIN_EXPORT BOOL __stdcall EgtFrameRotate( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], - const double ptAx[3], const double vtAx[3], double dAngRotDeg) ; -EIN_EXPORT BOOL __stdcall EgtFrameToGlob( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], - const double ptO1[3], const double vtX1[3], const double vtY1[3], const double vtZ1[3]) ; -EIN_EXPORT BOOL __stdcall EgtFrameToLoc( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], - const double ptO1[3], const double vtX1[3], const double vtY1[3], const double vtZ1[3]) ; -EIN_EXPORT BOOL __stdcall EgtFrameLocToLoc( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], - const double ptO1[3], const double vtX1[3], const double vtY1[3], const double vtZ1[3], - const double ptO2[3], const double vtX2[3], const double vtY2[3], const double vtZ2[3]) ; - // GeomDB EIN_EXPORT int __stdcall EgtInitGeomDB( void) ; EIN_EXPORT BOOL __stdcall EgtSetCurrentContext( int nGseCtx) ; @@ -108,11 +53,39 @@ EIN_EXPORT int __stdcall EgtGetCurrentContext( void) ; EIN_EXPORT BOOL __stdcall EgtSetDefaultMaterial( const int vCol[4]) ; EIN_EXPORT BOOL __stdcall EgtSetGridFrame( const double ptOrig[3], const double vX[3], const double vY[3], const double vZ[3]) ; EIN_EXPORT BOOL __stdcall EgtGetGridFrame( double ptOrig[3], double vX[3], double vY[3], double vZ[3]) ; +EIN_EXPORT BOOL __stdcall EgtSetCurrFilePath( const wchar_t* wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtGetCurrFilePath( wchar_t*& wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtEnableModified( void) ; +EIN_EXPORT BOOL __stdcall EgtDisableModified( void) ; +EIN_EXPORT BOOL __stdcall EgtSetModified( void) ; +EIN_EXPORT BOOL __stdcall EgtResetModified( void) ; +EIN_EXPORT BOOL __stdcall EgtGetModified( void) ; EIN_EXPORT BOOL __stdcall EgtNewFile( void) ; EIN_EXPORT BOOL __stdcall EgtOpenFile( const wchar_t* wsFilePath) ; EIN_EXPORT BOOL __stdcall EgtInsertFile( const wchar_t* wsFilePath) ; EIN_EXPORT BOOL __stdcall EgtSaveFile( const wchar_t* wsFilePath, int nFlag) ; +// Exchange +EIN_EXPORT int __stdcall EgtGetFileType( const wchar_t* wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtImportDxf( const wchar_t* wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtImportStl( const wchar_t* wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtImportCnc( const wchar_t* wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtExportDxf( int nId, const wchar_t* wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtExportStl( int nId, const wchar_t* wsFilePath) ; + +// Tsc Executor +EIN_EXPORT BOOL __stdcall EgtInitTscExec( void) ; +EIN_EXPORT BOOL __stdcall EgtTscExecFile( const wchar_t* wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtTscExecLine( const wchar_t* wsLine) ; + +// LUA Executor +EIN_EXPORT BOOL __stdcall EgtLuaEvalNumExpr( const wchar_t* wsExpr, double* pdVal) ; +EIN_EXPORT BOOL __stdcall EgtLuaEvalStringExpr( const wchar_t* wsExpr, wchar_t*& wsVal) ; +EIN_EXPORT BOOL __stdcall EgtLuaExecLine( const wchar_t* wsLine) ; +EIN_EXPORT BOOL __stdcall EgtLuaExecFile( const wchar_t* wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtLuaRequire( const wchar_t* wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtLuaGetLastError( wchar_t*& wsError) ; + // GeomDB Create EIN_EXPORT int __stdcall EgtCreateGroup( int nParentId, const double vOrig[3], const double vX[3], const double vY[3], const double vZ[3], int nRefType) ; @@ -177,6 +150,20 @@ EIN_EXPORT int __stdcall EgtCreateSurfTriMeshByScrewing( int nParentId, int nCr double dAngRotDeg, double dMove, double dLinTol, int nRefType) ; EIN_EXPORT int __stdcall EgtCreateSurfTriMeshRuled( int nParentId, int nCrvId1, int nCrvId2, double dLinTol) ; +// GeomDB PartLayer +EIN_EXPORT int __stdcall EgtGetCurrPart( void) ; +EIN_EXPORT int __stdcall EgtGetCurrLayer( void) ; +EIN_EXPORT BOOL __stdcall EgtSetCurrPartLayer( int nPartId, int nLayerId) ; +EIN_EXPORT BOOL __stdcall EgtResetCurrPartLayer( void) ; +EIN_EXPORT int __stdcall EgtGetFirstVisiblePart( void) ; +EIN_EXPORT int __stdcall EgtGetNextVisiblePart( int nId) ; +EIN_EXPORT int __stdcall EgtGetFirstVisibleLayer( int nPartId) ; +EIN_EXPORT int __stdcall EgtGetNextVisibleLayer( int nId) ; +EIN_EXPORT BOOL __stdcall EgtSelectPartObjs( int nPartId) ; +EIN_EXPORT BOOL __stdcall EgtDeselectPartObjs( int nPartId) ; +EIN_EXPORT BOOL __stdcall EgtSelectLayerObjs( int nLayerId) ; +EIN_EXPORT BOOL __stdcall EgtDeselectLayerObjs( int nLayerId) ; + // GeomDB Objects EIN_EXPORT BOOL __stdcall EgtExistsObj( int nId) ; EIN_EXPORT int __stdcall EgtGetParent( int nId) ; @@ -241,10 +228,8 @@ EIN_EXPORT BOOL __stdcall EgtSelectObj( int nId) ; EIN_EXPORT BOOL __stdcall EgtDeselectObj( int nId) ; EIN_EXPORT BOOL __stdcall EgtSelectAll( bool bOnlyIfVisible) ; EIN_EXPORT BOOL __stdcall EgtDeselectAll( void) ; -EIN_EXPORT BOOL __stdcall EgtSelectPartObjs( int nPartId) ; -EIN_EXPORT BOOL __stdcall EgtDeselectPartObjs( int nPartId) ; -EIN_EXPORT BOOL __stdcall EgtSelectLayerObjs( int nLayerId) ; -EIN_EXPORT BOOL __stdcall EgtDeselectLayerObjs( int nLayerId) ; +EIN_EXPORT BOOL __stdcall EgtSelectGroupObjs( int nGroupId) ; +EIN_EXPORT BOOL __stdcall EgtDeselectGroupObjs( int nGroupId) ; EIN_EXPORT BOOL __stdcall EgtIsSelectedObj( int nId) ; EIN_EXPORT int __stdcall EgtGetSelectedObjNbr( void) ; EIN_EXPORT int __stdcall EgtGetFirstSelectedObj( void) ; @@ -381,27 +366,60 @@ EIN_EXPORT BOOL __stdcall EgtGetCameraDir( int* pnDir) ; EIN_EXPORT BOOL __stdcall EgtProjectPoint( const double ptP[3], double ptWin[3]) ; EIN_EXPORT BOOL __stdcall EgtUnProjectPoint( int nWinX, int nWinY, double ptP[3]) ; -// Exchange -EIN_EXPORT int __stdcall EgtGetFileType( const wchar_t* wsFilePath) ; -EIN_EXPORT BOOL __stdcall EgtImportDxf( const wchar_t* wsFilePath) ; -EIN_EXPORT BOOL __stdcall EgtImportStl( const wchar_t* wsFilePath) ; -EIN_EXPORT BOOL __stdcall EgtImportCnc( const wchar_t* wsFilePath) ; -EIN_EXPORT BOOL __stdcall EgtExportDxf( int nId, const wchar_t* wsFilePath) ; -EIN_EXPORT BOOL __stdcall EgtExportStl( int nId, const wchar_t* wsFilePath) ; - -// Tsc Executor -EIN_EXPORT BOOL __stdcall EgtInitTscExec( void) ; -EIN_EXPORT BOOL __stdcall EgtTscExecFile( const wchar_t* wsFilePath) ; -EIN_EXPORT BOOL __stdcall EgtTscExecLine( const wchar_t* wsLine) ; - -// LUA Executor -EIN_EXPORT BOOL __stdcall EgtLuaEvalNumExpr( const wchar_t* wsExpr, double* pdVal) ; -EIN_EXPORT BOOL __stdcall EgtLuaEvalStringExpr( const wchar_t* wsExpr, wchar_t*& wsVal) ; -EIN_EXPORT BOOL __stdcall EgtLuaExecLine( const wchar_t* wsLine) ; -EIN_EXPORT BOOL __stdcall EgtLuaExecFile( const wchar_t* wsFilePath) ; -EIN_EXPORT BOOL __stdcall EgtLuaRequire( const wchar_t* wsFilePath) ; -EIN_EXPORT BOOL __stdcall EgtLuaGetLastError( wchar_t*& wsError) ; - +// Geo Base +EIN_EXPORT BOOL __stdcall EgtVectorNormalize( double* pdX, double* pdY, double* pdZ, + double dEps = EPS_SMALL) ; +EIN_EXPORT BOOL __stdcall EgtVectorRotate( double* pdX, double* pdY, double* pdZ, + const double vtAx[3], double dAngRotDeg) ; +EIN_EXPORT BOOL __stdcall EgtVectorScale( double* pdX, double* pdY, double* pdZ, + const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3], + double dCoeffX, double dCoeffY, double dCoeffZ) ; +EIN_EXPORT BOOL __stdcall EgtVectorMirror( double* pdX, double* pdY, double* pdZ, + const double vtNorm[3]) ; +EIN_EXPORT BOOL __stdcall EgtVectorShear( double* pdX, double* pdY, double* pdZ, + const double vtNorm[3], const double vtDir[3], double dCoeff) ; +EIN_EXPORT BOOL __stdcall EgtVectorToGlob( double* pdX, double* pdY, double* pdZ, + const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3]) ; +EIN_EXPORT BOOL __stdcall EgtVectorToLoc( double* pdX, double* pdY, double* pdZ, + const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3]) ; +EIN_EXPORT BOOL __stdcall EgtVectorLocToLoc( double* pdX, double* pdY, double* pdZ, + const double ptO1[3], const double vtX1[3], const double vtY1[3], const double vtZ1[3], + const double ptO2[3], const double vtX2[3], const double vtY2[3], const double vtZ2[3]) ; +EIN_EXPORT BOOL __stdcall EgtGetVectorRotation( const double vtS[3], const double vtE[3], const double vtAx[3], + double* pdAngRotDeg, BOOL* pbDet) ; +EIN_EXPORT BOOL __stdcall EgtPointTranslate( double* pdX, double* pdY, double* pdZ, + const double vtMove[3]) ; +EIN_EXPORT BOOL __stdcall EgtPointRotate( double* pdX, double* pdY, double* pdZ, + const double ptAx[3], const double vtAx[3], double dAngRotDeg) ; +EIN_EXPORT BOOL __stdcall EgtPointScale( double* pdX, double* pdY, double* pdZ, + const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3], + double dCoeffX, double dCoeffY, double dCoeffZ) ; +EIN_EXPORT BOOL __stdcall EgtPointMirror( double* pdX, double* pdY, double* pdZ, + const double ptOn[3], const double vtNorm[3]) ; +EIN_EXPORT BOOL __stdcall EgtPointShear( double* pdX, double* pdY, double* pdZ, + const double ptOn[3], const double vtNorm[3], const double vtDir[3], double dCoeff) ; +EIN_EXPORT BOOL __stdcall EgtPointToGlob( double* pdX, double* pdY, double* pdZ, + const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3]) ; +EIN_EXPORT BOOL __stdcall EgtPointToLoc( double* pdX, double* pdY, double* pdZ, + const double ptOrig[3], const double vtX[3], const double vtY[3], const double vtZ[3]) ; +EIN_EXPORT BOOL __stdcall EgtPointLocToLoc( double* pdX, double* pdY, double* pdZ, + const double ptO1[3], const double vtX1[3], const double vtY1[3], const double vtZ1[3], + const double ptO2[3], const double vtX2[3], const double vtY2[3], const double vtZ2[3]) ; +EIN_EXPORT BOOL __stdcall EgtFrameFrom3Points( double ptO[3], double ptOnX[3], double ptNearY[3], + double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3]) ; +EIN_EXPORT BOOL __stdcall EgtFrameOCS( double ptO[3], double vtDirZ[3], + double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3]) ; +EIN_EXPORT BOOL __stdcall EgtFrameTranslate( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], + const double vtMove[3]) ; +EIN_EXPORT BOOL __stdcall EgtFrameRotate( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], + const double ptAx[3], const double vtAx[3], double dAngRotDeg) ; +EIN_EXPORT BOOL __stdcall EgtFrameToGlob( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], + const double ptO1[3], const double vtX1[3], const double vtY1[3], const double vtZ1[3]) ; +EIN_EXPORT BOOL __stdcall EgtFrameToLoc( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], + const double ptO1[3], const double vtX1[3], const double vtY1[3], const double vtZ1[3]) ; +EIN_EXPORT BOOL __stdcall EgtFrameLocToLoc( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3], + const double ptO1[3], const double vtX1[3], const double vtY1[3], const double vtZ1[3], + const double ptO2[3], const double vtX2[3], const double vtY2[3], const double vtZ2[3]) ; #ifdef __cplusplus }