EgtInterface 2.2k1 :

- aggiunta interfaccia per funzioni nesting 1D ( EgtMaxFillerStart, EgtMaxFillerAddPart, EgtMaxFillerCompute, EgtMaxFillerGetResults, EgtMaxFillerGetOneResult).
This commit is contained in:
Dario Sassi
2020-11-06 12:15:17 +00:00
parent 3fb2e6bf4e
commit 5e5ab88cc5
4 changed files with 63 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
//----------------------------------------------------------------------------
// EgalTech 2020-2020
//----------------------------------------------------------------------------
// File : API_MaxFiller.cpp Data : 06.11.20 Versione : 2.2k1
// Contenuto : Funzioni nesting per API.
//
//
//
// Modifiche : 31.07.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 EgtMaxFillerStart( void)
{
return ( ExeMaxFillerStart() ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMaxFillerAddPart( int nPartId, double dLen, double dDispLen, int nCount)
{
return ( ExeMaxFillerAddPart( nPartId, dLen, dDispLen, nCount) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMaxFillerCompute( double dLenToFill, double dStartGap, double dMidGap, double dEndGap, int nSortType)
{
return ( ExeMaxFillerCompute( dLenToFill, dStartGap, dMidGap, dEndGap, nSortType) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMaxFillerGetResults( int* pnFilledParts, int* pnDiffParts, double* pdTotFillRatio)
{
if ( pnFilledParts == nullptr || pnDiffParts == nullptr || pdTotFillRatio == nullptr)
return false ;
return ( ExeMaxFillerGetResults( *pnFilledParts, *pnDiffParts, *pdTotFillRatio) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMaxFillerGetOneResult( int nInd, int* pnPartId, int* pnCount)
{
if ( pnPartId == nullptr || pnCount == nullptr)
return false ;
return ( ExeMaxFillerGetOneResult( nInd, *pnPartId, *pnCount) ? TRUE : FALSE) ;
}
BIN
View File
Binary file not shown.
+1
View File
@@ -238,6 +238,7 @@ copy $(TargetPath) \EgtProg\Dll64</Command>
<ClCompile Include="API_Image.cpp" />
<ClCompile Include="API_Lua.cpp" />
<ClCompile Include="API_MachMgr.cpp" />
<ClCompile Include="API_MaxFiller.cpp" />
<ClCompile Include="API_Messages.cpp" />
<ClCompile Include="API_Nesting.cpp" />
<ClCompile Include="API_Photo.cpp" />
+3
View File
@@ -143,6 +143,9 @@
<ClCompile Include="API_BeamMgr.cpp">
<Filter>File di origine\API</Filter>
</ClCompile>
<ClCompile Include="API_MaxFiller.cpp">
<Filter>File di origine\API</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="EgtInterface.rc">