EgtInterface :

- aggiornamento.
This commit is contained in:
Dario Sassi
2016-09-07 14:14:32 +00:00
parent a44f58b3e2
commit 5ebe665bde
+40
View File
@@ -280,6 +280,20 @@ __stdcall EgtSetInfoDouble( int nId, const wchar_t* wsKey, double dInfo)
return ( ExeSetInfo( nId, wstrztoA( wsKey), dInfo) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetInfoVector( int nId, const wchar_t* wsKey, const double vtV[3])
{
return ( ExeSetInfo( nId, wstrztoA( wsKey), Vector3d( vtV)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetInfoPoint( int nId, const wchar_t* wsKey, const double ptP[3])
{
return ( ExeSetInfo( nId, wstrztoA( wsKey), Point3d( ptP)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetInfoFrame( int nId, const wchar_t* wsKey, const double ptOrig[3],
@@ -341,6 +355,32 @@ __stdcall EgtGetInfoDouble( int nId, const wchar_t* wsKey, double* pdInfo)
return ( ExeGetInfo( nId, wstrztoA( wsKey), *pdInfo) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetInfoVector( int nId, const wchar_t* wsKey, double vtV[3])
{
// recupero il vettore
Vector3d vtVett ;
if ( ! ExeGetInfo( nId, wstrztoA( wsKey), vtVett))
return FALSE ;
// assegno il vettore
VEC_FROM_3D( vtV, vtVett)
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetInfoPoint( int nId, const wchar_t* wsKey, double ptP[3])
{
// recupero il punto
Point3d ptPoint ;
if ( ! ExeGetInfo( nId, wstrztoA( wsKey), ptPoint))
return FALSE ;
// assegno il punto
VEC_FROM_3D( ptP, ptPoint)
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetInfoFrame( int nId, const wchar_t* wsKey, double ptOrig[3],