EgtInterface 1.9f2 :

- aggiunte interfacce per EgtSetTableAreaOffset, EgtGetTableAreaOffset e EgtIsOperationEmpty.
This commit is contained in:
Dario Sassi
2018-06-12 06:52:05 +00:00
parent 2a5653e9fc
commit 255226e82a
2 changed files with 30 additions and 0 deletions
+30
View File
@@ -441,6 +441,13 @@ __stdcall EgtSetTable( const wchar_t* wsTable)
return ( ExeSetTable( wstrztoA( wsTable)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetTableAreaOffset( double dOffsXP, double dOffsYP, double dOffsXM, double dOffsYM)
{
return ( ExeSetTableAreaOffset( dOffsXP, dOffsYP, dOffsXM, dOffsYM) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetTableName( wchar_t*& wsTableName)
@@ -483,6 +490,22 @@ __stdcall EgtGetTableArea( int nInd, double ptMin[3], double ptMax[3])
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetTableAreaOffset( int nInd, double ptMinOffs[3], double ptMaxOffs[3])
{
// recupero l'identificativo
BBox3d b3Area ;
if ( ! ExeGetTableAreaOffset( nInd, b3Area))
return FALSE ;
// ritorno i dati
if ( ptMinOffs != nullptr)
VEC_FROM_3D( ptMinOffs, b3Area.GetMin()) ;
if ( ptMaxOffs != nullptr)
VEC_FROM_3D( ptMaxOffs, b3Area.GetMax()) ;
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtShowOnlyTable( bool bVal)
@@ -1123,6 +1146,13 @@ __stdcall EgtGetOperationId( const wchar_t* wsName)
return ExeGetOperationId( wstrztoA( wsName)) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtIsOperationEmpty( int nId)
{
return ( ExeIsOperationEmpty( nId) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtRemoveOperation( int nId)