Files
EgtInterface/API_GdbPartLayers.cpp
T
Dario Sassi e363ee8432 EgtInterface 1.6g4 :
- aggiunta EgtEraseEmptyParts.
2015-07-15 13:40:53 +00:00

140 lines
4.0 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2015-2015
//----------------------------------------------------------------------------
// File : API_GdbPartLayers.cpp Data : 29.01.15 Versione : 1.6a7
// Contenuto : Funzioni di gestione pezzi e layer relativi.
//
//
//
// Modifiche : 29.01.15 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
//--------------------------- Include ----------------------------------------
#include "stdafx.h"
#include "API.h"
#include "/EgtDev/Include/EInAPI.h"
#include "/EgtDev/Include/EXeExecutor.h"
using namespace std ;
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtIsPart( int nPartId)
{
return ( ExeIsPart( nPartId) ? TRUE : FALSE) ;
}
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtIsLayer( int nLayerId)
{
return ( ExeIsLayer( nLayerId) ? TRUE : FALSE) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtGetCurrPart( void)
{
return ExeGetCurrPart() ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtGetCurrLayer( void)
{
return ExeGetCurrLayer() ;
}
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtSetCurrPartLayer( int nPartId, int nLayerId)
{
return ( ExeSetCurrPartLayer( nPartId, nLayerId) ? TRUE : FALSE) ;
}
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtResetCurrPartLayer( void)
{
return ( ExeResetCurrPartLayer() ? TRUE : FALSE) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtGetPartNbr( BOOL bOnlyVisible)
{
return ExeGetPartNbr( ( bOnlyVisible != FALSE)) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtGetFirstPart( BOOL bOnlyVisible)
{
return ExeGetFirstPart( ( bOnlyVisible != FALSE)) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtGetNextPart( int nId, BOOL bOnlyVisible)
{
return ExeGetNextPart( nId, ( bOnlyVisible != FALSE)) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtGetFirstLayer( int nPartId, BOOL bOnlyVisible)
{
return ExeGetFirstLayer( nPartId, ( bOnlyVisible != FALSE)) ;
}
//-------------------------------------------------------------------------------
int
__stdcall EgtGetNextLayer( int nId, BOOL bOnlyVisible)
{
return ExeGetNextLayer( nId, ( bOnlyVisible != FALSE)) ;
}
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtEraseEmptyParts( void)
{
return ( ExeEraseEmptyParts() ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSelectPartObjs( int nPartId)
{
return ( ExeSelectPartObjs( nPartId) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtDeselectPartObjs( int nPartId)
{
return ( ExeDeselectPartObjs( nPartId) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSelectLayerObjs( int nLayerId)
{
return ( ExeSelectLayerObjs( nLayerId) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtDeselectLayerObjs( int nLayerId)
{
return ( ExeDeselectLayerObjs( nLayerId) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSelectPathObjs( int nId, BOOL bHaltOnFork)
{
return ( ExeSelectPathObjs( nId, ( bHaltOnFork != FALSE)) ? TRUE : FALSE) ;
}