EgtInterface :
- modifiche varie per OmagCut.
This commit is contained in:
@@ -102,3 +102,101 @@ __stdcall EgtGetCurrMachGroup( void)
|
||||
{
|
||||
return ExeGetCurrMachGroup() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
__stdcall EgtGetRawPartCount( void)
|
||||
{
|
||||
return ExeGetRawPartCount() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
__stdcall EgtGetFirstRawPart( void)
|
||||
{
|
||||
return ExeGetFirstRawPart() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
__stdcall EgtGetNextRawPart( int nRawId)
|
||||
{
|
||||
return ExeGetNextRawPart( nRawId) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
__stdcall EgtAddRawPart( const double ptOrig[3],
|
||||
double dLength, double dWidth, double dHeight, const int vCol[4])
|
||||
{
|
||||
return ExeAddRawPart( ptOrig, dLength, dWidth, dHeight, vCol) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtModifyRawPartSize( int nRawId, double dLength, double dWidth, double dHeight)
|
||||
{
|
||||
return ( ExeModifyRawPartSize( nRawId, dLength, dWidth, dHeight) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtModifyRawPartHeight( int nRawId, double dHeight)
|
||||
{
|
||||
return ( ExeModifyRawPartHeight( nRawId, dHeight) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtRemoveRawPart( int nRawId)
|
||||
{
|
||||
return ( ExeRemoveRawPart( nRawId) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtMoveToCornerRawPart( int nRawId, const double ptCorner[3], int nFlag)
|
||||
{
|
||||
return ( ExeMoveToCornerRawPart( nRawId, ptCorner, nFlag) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtAddPartToRawPart( int nPartId, const double ptPos[3], int nRawId)
|
||||
{
|
||||
return ( ExeAddPartToRawPart( nPartId, ptPos, nRawId) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtRemovePartFromRawPart( int nPartId)
|
||||
{
|
||||
return ( ExeRemovePartFromRawPart( nPartId) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetTable( const wchar_t* wsTable)
|
||||
{
|
||||
return ( ExeSetTable( wstrztoA( wsTable)) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetTableRef1( double ptPos[3])
|
||||
{
|
||||
// recupero il punto
|
||||
Point3d ptTemp ;
|
||||
if ( ! ExeGetTableRef1( ptTemp))
|
||||
return FALSE ;
|
||||
// ritorno il punto
|
||||
VEC_FROM_3D( ptPos, ptTemp)
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtShowOnlyTable( bool bVal)
|
||||
{
|
||||
return ( ExeShowOnlyTable( bVal) ? TRUE : FALSE) ;
|
||||
}
|
||||
Reference in New Issue
Block a user