Include :

- aggiornamento prototipi
- aggiunte costanti per AutoNester.
This commit is contained in:
Dario Sassi
2021-02-14 14:44:57 +00:00
parent cb10b2b449
commit 23ccca2789
2 changed files with 15 additions and 0 deletions
+14
View File
@@ -44,6 +44,7 @@ class __declspec( novtable) IAutoNester
virtual ~IAutoNester( void) {}
virtual bool Start( void) = 0 ;
virtual bool SetGuillotineMode( void) = 0 ;
virtual bool SetStartCorner( int nCorner) = 0 ;
virtual bool AddSheet( int nSheetId, const PolyArc& Outline, double dKerf, int nPriority, int nCount, bool* pbIsRect = nullptr) = 0 ;
virtual bool AddDefectToSheet( int nSheetId, const PolyArc& Outline) = 0 ;
virtual bool AddPart( int nPartId, const PolyArc& Outline, bool bCanFlip, bool bCanRotate, double dRotStep, int nPriority, int nCount) = 0 ;
@@ -63,3 +64,16 @@ class __declspec( novtable) IAutoNester
extern "C" {
ENS_EXPORT IAutoNester* CreateAutoNester(void) ;
}
//-----------------------------------------------------------------------------
const int NST_CORNER_BL = 0 ;
const int NST_CORNER_TL = 1 ;
const int NST_CORNER_BR = 2 ;
const int NST_CORNER_TR = 3 ;
//-----------------------------------------------------------------------------
const int NST_STATUS_ERR = -1 ;
const int NST_STATUS_CANC = 0 ;
const int NST_STATUS_COMP = 1 ;
const int NST_STATUS_INTRES = 2 ;
const int NST_STATUS_OK = 3 ;
+1
View File
@@ -772,6 +772,7 @@ EXE_EXPORT int ExeVerifyCutAsSplitting( int nMchId) ;
// AutoNesting
EXE_EXPORT bool ExeAutoNestStart( void) ;
EXE_EXPORT bool ExeAutoNestSetGuillotineMode( void) ;
EXE_EXPORT bool ExeAutoNestSetStartCorner( int nCorner) ;
EXE_EXPORT bool ExeAutoNestAddSheet( int nSheetId, int nOutlineId, double dKerf, int nPriority, int nCount, bool* pbIsRect = nullptr) ;
EXE_EXPORT bool ExeAutoNestAddDefectToSheet( int nSheetId, int nDefectId) ;
EXE_EXPORT bool ExeAutoNestAddPart( int nPartId, int nOutlineId, bool bCanFlip, bool bCanRotate, double dRotStep, int nPriority, int nCount) ;