EgtInterface 2.6j3 :

- aggiunte in interfaccia funzioni EgtMoveDispAxis, EgtRemoveDispAxis, EgtGetAxisType e EgtGetAxisDir.
This commit is contained in:
Dario Sassi
2024-10-15 17:37:13 +02:00
parent 875656bbed
commit afd3000a27
2 changed files with 40 additions and 0 deletions
+40
View File
@@ -596,6 +596,20 @@ __stdcall EgtShowOnlyTable( BOOL bVal)
return ( ExeShowOnlyTable( ( bVal != FALSE)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMoveDispAxis( const wchar_t* wsName, double dPos)
{
return ( ExeMoveDispAxis( wstrztoA( wsName), dPos) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtRemoveDispAxis( const wchar_t* wsName)
{
return ( ExeRemoveDispAxis( wstrztoA( wsName)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
int
__stdcall EgtAddFixture( const wchar_t* wsName, const double ptPos[3], double dAngRotDeg, double dMov)
@@ -2030,6 +2044,32 @@ __stdcall EgtGetHeadExitCount( const wchar_t* wsHead)
return ExeGetHeadExitCount( wstrztoA( wsHead)) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetAxisType( const wchar_t* wsAxis, BOOL* pbLinear)
{
if ( pbLinear == nullptr)
return FALSE ;
bool bLinear ;
if ( ! ExeGetAxisType( wstrztoA( wsAxis), bLinear))
return FALSE ;
*pbLinear = ( bLinear ? TRUE : FALSE) ;
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetAxisDir( const wchar_t* wsAxis, double vtDir[3])
{
if ( vtDir == nullptr)
return FALSE ;
Vector3d vtTmp ;
if ( ! ExeGetAxisDir( wstrztoA( wsAxis), vtTmp))
return FALSE ;
VEC_FROM_3D( vtDir, vtTmp) ;
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetAxisInvert( const wchar_t* wsAxis, BOOL* pbInvert)
BIN
View File
Binary file not shown.