EgtInterface 2.6j3 :
- aggiunte in interfaccia funzioni EgtMoveDispAxis, EgtRemoveDispAxis, EgtGetAxisType e EgtGetAxisDir.
This commit is contained in:
@@ -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)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user