EgtInterface 1.6k8 :
- aggiornamenti.
This commit is contained in:
+38
-10
@@ -206,11 +206,11 @@ __stdcall EgtSetTable( const wchar_t* wsTable)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetTableRef1( double ptPos[3])
|
||||
__stdcall EgtGetTableRef( int nInd, double ptPos[3])
|
||||
{
|
||||
// recupero il punto
|
||||
Point3d ptTemp ;
|
||||
if ( ! ExeGetTableRef1( ptTemp))
|
||||
if ( ! ExeGetTableRef( nInd, ptTemp))
|
||||
return FALSE ;
|
||||
// ritorno il punto
|
||||
VEC_FROM_3D( ptPos, ptTemp)
|
||||
@@ -219,15 +219,17 @@ __stdcall EgtGetTableRef1( double ptPos[3])
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetTableArea1( int* pnAreaId)
|
||||
__stdcall EgtGetTableArea( int nInd, double ptMin[3], double ptMax[3])
|
||||
{
|
||||
// recupero l'identificativo
|
||||
int nAreaId ;
|
||||
if ( ! ExeGetTableArea1( nAreaId))
|
||||
BBox3d b3Area ;
|
||||
if ( ! ExeGetTableArea( nInd, b3Area))
|
||||
return FALSE ;
|
||||
// ritorno il dato
|
||||
if ( pnAreaId != nullptr)
|
||||
*pnAreaId = nAreaId ;
|
||||
// ritorno i dati
|
||||
if ( ptMin != nullptr)
|
||||
VEC_FROM_3D( ptMin, b3Area.GetMin()) ;
|
||||
if ( ptMax != nullptr)
|
||||
VEC_FROM_3D( ptMax, b3Area.GetMax()) ;
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
@@ -601,6 +603,15 @@ __stdcall EgtMdbGetMachiningDir( wchar_t*& wsMchDir)
|
||||
return (( wsMchDir == nullptr) ? FALSE : TRUE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Operations
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtRemoveAllOperations( void)
|
||||
{
|
||||
return ( ExeRemoveAllOperations() ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Simulation
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -612,9 +623,13 @@ __stdcall EgtSimStart( void)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSimMove( void)
|
||||
__stdcall EgtSimMove( int* pnStatus)
|
||||
{
|
||||
return ( ExeSimMove() ? TRUE : FALSE) ;
|
||||
int nStatus ;
|
||||
bool bOk = ExeSimMove( nStatus) ;
|
||||
if ( pnStatus != nullptr)
|
||||
*pnStatus = nStatus ;
|
||||
return ( bOk ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -624,6 +639,19 @@ __stdcall EgtSimHome( void)
|
||||
return ( ExeSimHome() ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSimGetAxisInfoPos( int nI, wchar_t*& wsName, double* pdVal)
|
||||
{
|
||||
if ( &wsName == nullptr || pdVal == nullptr)
|
||||
return FALSE ;
|
||||
string sName ;
|
||||
if ( ! ExeSimGetAxisInfoPos( nI, sName, *pdVal))
|
||||
return FALSE ;
|
||||
wsName = _wcsdup( stringtoW( sName)) ;
|
||||
return (( wsName == nullptr) ? FALSE : TRUE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSimSetStep( double dStep)
|
||||
|
||||
Reference in New Issue
Block a user