//---------------------------------------------------------------------------- // EgalTech 2015-2015 //---------------------------------------------------------------------------- // File : EXcExecutor.h Data : 04.05.15 Versione : 1.6e1 // Contenuto : Interfaccia Executor. // // // // Modifiche : 04.05.15 DS Creazione modulo. // // //---------------------------------------------------------------------------- #pragma once #include "/EgtDev/Include/EGkFrame3d.h" #include "/EgtDev/Include/EGkColor.h" #include "/EgtDev/Include/EGkPolyLine.h" #include "/EgtDev/Include/EGkPolyArc.h" #include "/EgtDev/Include/EGkSelection.h" #define NOMINMAX #include #undef GetClassName class LuaMgr ; //----------------------- Macro per import/export ---------------------------- #undef EXE_EXPORT #if defined( I_AM_EXE) // da definirsi solo nella DLL #define EXE_EXPORT __declspec( dllexport) #else #define EXE_EXPORT __declspec( dllimport) #endif //----------------------------------------------------------------------------- // General EXE_EXPORT bool ExeInit( int nDebug, const std::string& sLogFile, const std::string& sLogMsg) ; EXE_EXPORT bool ExeExit( void) ; EXE_EXPORT bool ExeSetKey( const std::string& sKey) ; EXE_EXPORT bool ExeSetFont( const std::string& sNfeFontDir, const std::string& sDefaultFont) ; EXE_EXPORT bool ExeGetNfeFontDir( std::string& sNfeFontDir) ; EXE_EXPORT bool ExeGetDefaultFont( std::string& sDefaultFont) ; EXE_EXPORT bool ExeSetLuaLibs( const std::string& sLuaLibsDir) ; EXE_EXPORT bool ExeSetCommandLogger( const std::string& sLogFile) ; EXE_EXPORT bool ExeEnableCommandLogger( void) ; EXE_EXPORT bool ExeDisableCommandLogger( void) ; EXE_EXPORT bool ExeGetVersionInfo( std::string& sVer, const char* szNewLine) ; EXE_EXPORT bool ExeGetKeyInfo( std::string& sKey) ; EXE_EXPORT bool ExeGetKeyOptions( int nProd, int nVer, int nLev, unsigned int& nOpt2) ; EXE_EXPORT bool ExeGetOsInfo( std::string& sOs) ; EXE_EXPORT bool ExeGetCpuInfo( std::string& sCpu) ; EXE_EXPORT bool ExeGetMemoryInfo( std::string& sMem) ; EXE_EXPORT bool ExeOutLog( const std::string& sMsg) ; typedef int (__stdcall * pfProcEvents) (int, int) ; EXE_EXPORT bool ExeSetProcessEvents( pfProcEvents pFun) ; EXE_EXPORT int ExeProcessEvents( int nProg, int nPause) ; typedef bool (__stdcall * pfOutText) ( const std::string&) ; EXE_EXPORT bool ExeSetOutText( pfOutText pFun) ; EXE_EXPORT bool ExeOutText( const std::string& sText) ; // UiUnits EXE_EXPORT bool ExeSetUiUnits( bool bMM) ; EXE_EXPORT bool ExeUiUnitsAreMM( void) ; EXE_EXPORT double ExeFromUiUnits( double dVal) ; EXE_EXPORT double ExeToUiUnits( double dVal) ; // GeomDB EXE_EXPORT int ExeInitContext( void) ; EXE_EXPORT int ExeDeleteContext( int nGseCtx) ; EXE_EXPORT bool ExeSetCurrentContext( int nGseCtx) ; EXE_EXPORT bool ExeResetCurrentContext( void) ; EXE_EXPORT int ExeGetCurrentContext( void) ; EXE_EXPORT bool ExeSetDefaultMaterial( Color ColDef) ; EXE_EXPORT bool ExeSetGridFrame( const Frame3d& frFrame) ; EXE_EXPORT bool ExeGetGridFrame( int nRefId, Frame3d& frFrame) ; EXE_EXPORT bool ExeGetGridVersZ( int nRefId, Vector3d& vtVersZ) ; EXE_EXPORT bool ExeSetCurrFilePath( const std::string& sFilePath) ; EXE_EXPORT bool ExeGetCurrFilePath( std::string& sFilePath) ; EXE_EXPORT bool ExeEnableModified( void) ; EXE_EXPORT bool ExeDisableModified( void) ; EXE_EXPORT bool ExeGetEnableModified( void) ; EXE_EXPORT bool ExeSetModified( void) ; EXE_EXPORT bool ExeResetModified( void) ; EXE_EXPORT bool ExeGetModified( void) ; EXE_EXPORT bool ExeNewFile( void) ; EXE_EXPORT bool ExeOpenFile( const std::string& sFilePath) ; EXE_EXPORT bool ExeInsertFile( const std::string& sFilePath) ; EXE_EXPORT bool ExeSaveFile( const std::string& sFilePath, int nFlag) ; EXE_EXPORT bool ExeSaveObjToFile( int nId, const std::string& sFilePath, int nFlag) ; // Exchange EXE_EXPORT int ExeGetFileType( const std::string& sFilePath) ; EXE_EXPORT bool ExeImportDxf( const std::string& sFilePath, double dScaleFactor) ; EXE_EXPORT bool ExeImportStl( const std::string& sFilePath, double dScaleFactor) ; EXE_EXPORT bool ExeImportCnc( const std::string& sFilePath) ; EXE_EXPORT bool ExeImportCsf( const std::string& sFilePath) ; EXE_EXPORT bool ExeImportBtl( const std::string& sFilePath, bool bFlatPos, bool bSpecialTrim) ; EXE_EXPORT bool ExeExportDxf( int nId, const std::string& sFilePath) ; EXE_EXPORT bool ExeExportStl( int nId, const std::string& sFilePath) ; // Tsc Executor EXE_EXPORT bool ExeInitTscExec( void) ; EXE_EXPORT bool ExeTscExecFile( const std::string& sFilePath) ; EXE_EXPORT bool ExeTscExecLine( const std::string& sLine) ; // LUA Executor EXE_EXPORT bool ExeLuaCreateGlobTable( const std::string& sVar) ; EXE_EXPORT bool ExeLuaSetGlobBoolVar( const std::string& sVar, bool bVal) ; EXE_EXPORT bool ExeLuaSetGlobIntVar( const std::string& sVar, int nVal) ; EXE_EXPORT bool ExeLuaSetGlobNumVar( const std::string& sVar, double dVal) ; EXE_EXPORT bool ExeLuaSetGlobStringVar( const std::string& sVar, const std::string& sVal) ; EXE_EXPORT bool ExeLuaGetGlobBoolVar( const std::string& sVar, bool* pbVal) ; EXE_EXPORT bool ExeLuaGetGlobIntVar( const std::string& sVar, int* pnVal) ; EXE_EXPORT bool ExeLuaGetGlobNumVar( const std::string& sVar, double* pdVal) ; EXE_EXPORT bool ExeLuaGetGlobStringVar( const std::string& sVar, std::string& sVal) ; EXE_EXPORT bool ExeLuaResetGlobVar( const std::string& sVar) ; EXE_EXPORT bool ExeLuaCallFunction( const std::string& sFun) ; EXE_EXPORT bool ExeLuaEvalNumExpr( const std::string& sExpr, double* pdVal) ; EXE_EXPORT bool ExeLuaEvalStringExpr( const std::string& sExpr, std::string& sVal) ; EXE_EXPORT bool ExeLuaExecLine( const std::string& sLine) ; EXE_EXPORT bool ExeLuaExecFile( const std::string& sFilePath) ; EXE_EXPORT bool ExeLuaRequire( const std::string& sFilePath) ; EXE_EXPORT bool ExeLuaGetLastError( std::string& sError) ; // LUA Base EXE_EXPORT bool LuaInstallEgtFunctions( LuaMgr& LuaMgr) ; // ShortestPath EXE_EXPORT bool ExeSpInit( void) ; EXE_EXPORT bool ExeSpTerminate( void) ; EXE_EXPORT bool ExeSpAddPoint( double dXi, double dYi, double dZi, double dHi, double dVi, double dXf, double dYf, double dZf, double dHf, double dVf) ; EXE_EXPORT bool ExeSpSetOpenBound( bool bStartVsEnd, int nFlag, double dX, double dY, double dZ, double dH, double dV) ; EXE_EXPORT bool ExeSpSetAngularParams( double dAngHAdd, double dAngHMul, double dAngVAdd, double dAngVMul) ; EXE_EXPORT bool ExeSpSetZzOwStep( double dStep) ; EXE_EXPORT bool ExeSpCalculate( int nType) ; EXE_EXPORT bool ExeSpGetOrder( INTVECTOR& vOrder) ; EXE_EXPORT bool ExeSpGetMinLength( double& dMinLen) ; // GeomDB Create EXE_EXPORT int ExeCreateGroup( int nParentId, const Frame3d& frFrame, int nRefType) ; EXE_EXPORT int ExeCreateGeoPoint( int nParentId, const Point3d& ptP, int nRefType) ; EXE_EXPORT int ExeCreateGeoVector( int nParentId, const Vector3d& vtV, const Point3d& ptB, int nRefType) ; EXE_EXPORT int ExeCreateGeoFrame( int nParentId, const Frame3d& frFrame, int nRefType) ; EXE_EXPORT int ExeCreateText( int nParentId, const Point3d& ptP, const std::string& sText, double dH, int nRefType) ; EXE_EXPORT int ExeCreateTextEx( int nParentId, const Point3d& ptP, double dAngRotDeg, const std::string& sText, const std::string& sFont, bool bItalic, double dH, int nRefType) ; EXE_EXPORT int ExeCreateTextAdv( int nParentId, const Point3d& ptP, double dAngRotDeg, const std::string& sText, const std::string& sFont, int nW, bool bItalic, double dH, double dRat, double dAddAdv, int nInsPos, int nRefType) ; // GeomDB Create Curve EXE_EXPORT int ExeCreateLine( int nParentId, const Point3d& ptIni, const Point3d& ptFin, int nRefType) ; EXE_EXPORT int ExeCreateLineEx( int nParentId, const Point3d& ptIni, int nSepI, int nIdI, const Point3d& ptFin, int nSepF, int nIdF, int nRefType) ; EXE_EXPORT int ExeCreateLinePDL( int nParentId, const Point3d& ptIni, double dDirDeg, double dLen, int nRefType) ; EXE_EXPORT int ExeCreateLinePVL( int nParentId, const Point3d& ptIni, const Vector3d& vtDir, double dLen, int nRefType) ; EXE_EXPORT int ExeCreateLineMinPointCurve( int nParentId, const Point3d& ptStart, int nCrvId, double dNearPar, int nRefType) ; EXE_EXPORT int ExeCreateCircle( int nParentId, const Point3d& ptCen, double dRad, int nRefType) ; EXE_EXPORT int ExeCreateCircleCP( int nParentId, const Point3d& ptCen, const Point3d& ptOn, int nRefType) ; EXE_EXPORT int ExeCreateCircleCPEx( int nParentId, const Point3d& ptCen, const Point3d& ptOn, int nSepO, int nIdO, int nRefType) ; EXE_EXPORT int ExeCreateCircle3P( int nParentId, const Point3d& ptP1, const Point3d& ptP2, const Point3d& ptP3, int nRefType) ; EXE_EXPORT int ExeCreateArc( int nParentId, const Point3d& ptCen, double dRad, double dAngIniDeg, double dAngCenDeg, double dDeltaN, int nRefType) ; EXE_EXPORT int ExeCreateArcCPA( int nParentId, const Point3d& ptCen, const Point3d& ptStart, double dAngCenDeg, double dDeltaN, int nRefType) ; EXE_EXPORT int ExeCreateArcC2P( int nParentId, const Point3d& ptCen, const Point3d& ptStart, const Point3d& ptNearEnd, int nRefType) ; EXE_EXPORT int ExeCreateArcC2PEx( int nParentId, const Point3d& ptCen, const Point3d& ptStart, int nSepS, int nIdS, const Point3d& ptNearEnd, int nRefType) ; EXE_EXPORT int ExeCreateArc3P( int nParentId, const Point3d& ptP1, const Point3d& ptP2, const Point3d& ptP3, int nRefType) ; EXE_EXPORT int ExeCreateArc2PD( int nParentId, const Point3d& ptStart, const Point3d& ptEnd, double dDirSDeg, int nRefType) ; EXE_EXPORT int ExeCreateArc2PDEx( int nParentId, const Point3d& ptStart, const Point3d& ptEnd, int nSep, int nId, double dDirSDeg, int nRefType) ; EXE_EXPORT int ExeCreateArc2PV( int nParentId, const Point3d& ptStart, const Point3d& ptEnd, const Vector3d& vtDirS, int nRefType) ; EXE_EXPORT int ExeCreateBiArc( int nParentId, const Point3d& ptStart, const Point3d& ptEnd, double dDirSDeg, double dDirEDeg, double dPar, int nRefType) ; EXE_EXPORT int ExeCreateCurveFillet( int nParentId, int nCrv1, const Point3d& ptNear1, int nCrv2, const Point3d& ptNear2, double dRad, bool bTrim, int nRefType) ; EXE_EXPORT int ExeCreateCurveChamfer( int nParentId, int nCrv1, const Point3d& ptNear1, int nCrv2, const Point3d& ptNear2, double dDist, bool bTrim, int nRefType) ; EXE_EXPORT int ExeCreateCurveBezier( int nParentId, int nDegree, const PNTVECTOR& vPnt, int nRefType) ; EXE_EXPORT int ExeCreateCurveBezierRational( int nParentId, int nDegree, const PNTUVECTOR& vPntW, int nRefType) ; EXE_EXPORT int ExeCreateCurveBezierFromArc( int nParentId, int nArcId, bool bErase) ; EXE_EXPORT int ExeCreateCurveCompo( int nParentId, const INTVECTOR& vIds, bool bErase) ; EXE_EXPORT int ExeCreateCurveCompoByChain( int nParentId, const INTVECTOR& vIds, const Point3d& ptNear, bool bErase, int nRefType, int* pnCount) ; EXE_EXPORT int ExeCreateCurveCompoByReorder( int nParentId, const INTVECTOR& vIds, const Point3d& ptNear, bool bErase, int nRefType, int* pnCount) ; EXE_EXPORT int ExeCreateCurveCompoByInterpolation( int nParentId, const PolyLine& PL, int nType, int nRefType) ; EXE_EXPORT int ExeCreateCurveCompoByApproximation( int nParentId, const PolyLine& PL, int nType, double dLinTol, int nRefType) ; EXE_EXPORT int ExeCreateCurveCompoFromPoints( int nParentId, const PolyLine& PL, int nRefType) ; EXE_EXPORT int ExeCreateCurveCompoFromPointBulges( int nParentId, const PolyArc& PA, int nRefType) ; EXE_EXPORT int ExeCreateRectangle2P( int nParentId, const Point3d& ptIni, const Point3d& ptCross, int nRefType) ; EXE_EXPORT int ExeCreateRectangle3P( int nParentId, const Point3d& ptIni, const Point3d& ptCross, const Point3d& ptDir, int nRefType) ; EXE_EXPORT int ExeCreatePolygonFromRadius( int nParentId, int nNumSides, const Point3d& ptCen, const Point3d& ptCorn, int nRefType) ; EXE_EXPORT int ExeCreatePolygonFromApothem( int nParentId, int nNumSides, const Point3d& ptCen, const Point3d& ptMid, int nRefType) ; EXE_EXPORT int ExeCreatePolygonFromSide( int nParentId, int nNumSides, const Point3d& ptIni, const Point3d& ptFin, int nRefType) ; EXE_EXPORT int ExeCreateCirclesAlongCurve( int nParentId, int nCrvId, double dOffset, double dOverlap, double dStartAdd, double dEndAdd, double dDiam, int* pnCount) ; // GeomDB Create Surf EXE_EXPORT int ExeCreateSurfFlatRegion( int nParentId, INTVECTOR& vCrvIds, int* pnCount) ; EXE_EXPORT int ExeCreateSurfFrFatCurve( int nParentId, int nCrvId, double dRad, bool bSquared) ; EXE_EXPORT int ExeCreateSurfFrRectangle( int nParentId, const Point3d& ptIni, const Point3d& ptCross, int nRefType) ; EXE_EXPORT int ExeCreateSurfFrRectangle3P( int nParentId, const Point3d& ptIni, const Point3d& ptCross, const Point3d& ptDir, int nRefType) ; EXE_EXPORT int ExeCreateSurfFrStadium( int nParentId, const Point3d& ptIni, const Point3d& ptCross, int nRefType) ; EXE_EXPORT int ExeCreateSurfFrDisk( int nParentId, const Point3d& ptOrig, double dRad, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmBBox( int nParentId, const BBox3d& b3Box, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmBox( int nParentId, const Point3d& ptIni, const Point3d& ptCross, const Point3d& ptDir, double dHeight, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmPyramid( int nParentId, const Point3d& ptIni, const Point3d& ptCross, const Point3d& ptDir, double dHeight, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmCylinder( int nParentId, const Point3d& ptOrig, const Vector3d& vtN, double dRad, double dHeight, double dLinTol, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmCone( int nParentId, const Point3d& ptOrig, const Vector3d& vtN, double dRad, double dHeight, double dLinTol, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmSphere( int nParentId, const Point3d& ptOrig, double dRad, double dLinTol, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmByFlatContour( int nParentId, int nCrvId, double dLinTol) ; EXE_EXPORT int ExeCreateSurfTmByRegion( int nParentId, INTVECTOR& vCrvIds, double dLinTol) ; EXE_EXPORT int ExeCreateSurfTmByExtrusion( int nParentId, INTVECTOR& vCrvIds, const Vector3d& vtExtr, double dLinTol, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmByRegionExtrusion( int nParentId, INTVECTOR& vCrvIds, const Vector3d& vtExtr, double dLinTol, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmByRevolve( int nParentId, int nCrvId, const Point3d& ptAx, const Vector3d& vtAx, bool bCapEnds, double dLinTol, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmByScrewing( int nParentId, int nCrvId, const Point3d& ptAx, const Vector3d& vtAx, double dAngRotDeg, double dMove, double dLinTol, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmRuled( int nParentId, int nPtOrCrvId1, int nPtOrCrvId2, double dLinTol) ; EXE_EXPORT int ExeCreateSurfTmByTriangles( int nParentId, const INTVECTOR& vIds, bool bErase) ; EXE_EXPORT int ExeCreateSurfTmBySewing( int nParentId, const INTVECTOR& vIds, bool bErase) ; // GeomDB PartLayer EXE_EXPORT bool ExeIsPart( int nPartId) ; EXE_EXPORT bool ExeIsLayer( int nLayerId) ; EXE_EXPORT int ExeGetCurrPart( void) ; EXE_EXPORT int ExeGetCurrLayer( void) ; EXE_EXPORT bool ExeSetCurrPartLayer( int nPartId, int nLayerId) ; EXE_EXPORT bool ExeResetCurrPartLayer( void) ; EXE_EXPORT int ExeGetPartCount( bool bOnlyVisible) ; EXE_EXPORT int ExeGetFirstPart( bool bOnlyVisible) ; EXE_EXPORT int ExeGetNextPart( int nId, bool bOnlyVisible) ; EXE_EXPORT int ExeGetLastPart( bool bOnlyVisible) ; EXE_EXPORT int ExeGetPrevPart( int nId, bool bOnlyVisible) ; EXE_EXPORT int ExeGetFirstLayer( int nPartId, bool bOnlyVisible) ; EXE_EXPORT int ExeGetNextLayer( int nId, bool bOnlyVisible) ; EXE_EXPORT int ExeGetLastLayer( int nPartId, bool bOnlyVisible) ; EXE_EXPORT int ExeGetPrevLayer( int nId, bool bOnlyVisible) ; EXE_EXPORT bool ExeEraseEmptyParts( void) ; EXE_EXPORT bool ExeSelectPartObjs( int nPartId) ; EXE_EXPORT bool ExeDeselectPartObjs( int nPartId) ; EXE_EXPORT bool ExeSelectLayerObjs( int nLayerId) ; EXE_EXPORT bool ExeDeselectLayerObjs( int nLayerId) ; EXE_EXPORT bool ExeSelectPathObjs( int nId, bool bHaltOnFork) ; // GeomDB Objects EXE_EXPORT bool ExeExistsObj( int nId) ; EXE_EXPORT int ExeGetParent( int nId) ; EXE_EXPORT bool ExeGetGroupGlobFrame( int nId, Frame3d& frGlob) ; EXE_EXPORT int ExeGetGroupObjs( int nId) ; EXE_EXPORT int ExeGetFirstInGroup( int nGroupId) ; EXE_EXPORT int ExeGetNext( int nId) ; EXE_EXPORT int ExeGetLastInGroup( int nGroupId) ; EXE_EXPORT int ExeGetPrev( int nId) ; EXE_EXPORT int ExeGetFirstGroupInGroup( int nGroupId) ; EXE_EXPORT int ExeGetNextGroup( int nId) ; EXE_EXPORT int ExeGetLastGroupInGroup( int nGroupId) ; EXE_EXPORT int ExeGetPrevGroup( int nId) ; EXE_EXPORT int ExeGetFirstNameInGroup( int nGroupId, const std::string& sName) ; EXE_EXPORT int ExeGetNextName( int nId, const std::string& sName) ; EXE_EXPORT int ExeGetLastNameInGroup( int nGroupId, const std::string& sName) ; EXE_EXPORT int ExeGetPrevName( int nId, const std::string& sName) ; EXE_EXPORT bool ExeGetBBox( int nId, int nFlag, BBox3d& b3Box) ; EXE_EXPORT bool ExeGetBBoxGlob( int nId, int nFlag, BBox3d& b3Box) ; EXE_EXPORT bool ExeGetBBoxRef( int nId, int nFlag, const Frame3d& frRef, BBox3d& b3Box) ; EXE_EXPORT int ExeCopy( int nSouId, int nRefId, int nSonBeforeAfter) ; EXE_EXPORT int ExeCopyGlob( int nSouId, int nRefId, int nSonBeforeAfter) ; EXE_EXPORT bool ExeRelocate( int nSouId, int nRefId, int nSonBeforeAfter) ; EXE_EXPORT bool ExeRelocateGlob( int nSouId, int nRefId, int nSonBeforeAfter) ; EXE_EXPORT int ExeGetNewId( void) ; EXE_EXPORT bool ExeChangeId( int nId, int nNewId) ; EXE_EXPORT bool ExeErase( const INTVECTOR& vIds) ; EXE_EXPORT bool ExeEmptyGroup( int nId) ; EXE_EXPORT int ExeGetType( int nId) ; EXE_EXPORT bool ExeGetTitle( int nId, std::string& sTitle) ; EXE_EXPORT bool ExeGroupDump( int nId, std::string& sDump) ; EXE_EXPORT bool ExeGeoObjDump( int nId, std::string& sDump) ; // GeomDB Obj Attributes EXE_EXPORT bool ExeSetLevel( int nId, int nLevel) ; EXE_EXPORT bool ExeRevertLevel( int nId) ; EXE_EXPORT bool ExeGetLevel( int nId, int* pnLevel) ; EXE_EXPORT bool ExeGetCalcLevel( int nId, int* pnLevel) ; EXE_EXPORT bool ExeSetMode( int nId, int nMode) ; EXE_EXPORT bool ExeRevertMode( int nId) ; EXE_EXPORT bool ExeGetMode( int nId, int* pnMode) ; EXE_EXPORT bool ExeGetCalcMode( int nId, int* pnMode) ; EXE_EXPORT bool ExeSetStatus( const INTVECTOR& vIds, int nStat) ; EXE_EXPORT bool ExeRevertStatus( int nId) ; EXE_EXPORT bool ExeGetStatus( int nId, int* pnStat) ; EXE_EXPORT bool ExeGetCalcStatus( int nId, int* pnStat) ; EXE_EXPORT bool ExeSetMark( int nId) ; EXE_EXPORT bool ExeResetMark( int nId) ; EXE_EXPORT bool ExeGetMark( int nId, int* pnMark) ; EXE_EXPORT bool ExeGetCalcMark( int nId, int* pnMark) ; EXE_EXPORT bool ExeStdColor( const std::string& sName, Color& ColStd) ; EXE_EXPORT bool ExeSetColor( const INTVECTOR& vIds, const Color& cCol, bool bSetAlpha) ; EXE_EXPORT bool ExeSetAlpha( const INTVECTOR& vIds, int nAlpha) ; EXE_EXPORT bool ExeResetColor( const INTVECTOR& vIds) ; EXE_EXPORT bool ExeGetColor( int nId, Color& cCol) ; EXE_EXPORT bool ExeGetCalcColor( int nId, Color& cCol) ; EXE_EXPORT bool ExeSetName( int nId, const std::string& sName) ; EXE_EXPORT bool ExeGetName( int nId, std::string& sName) ; EXE_EXPORT bool ExeExistsName( int nId) ; EXE_EXPORT bool ExeRemoveName( int nId) ; EXE_EXPORT bool ExeSetInfo( int nId, const std::string& sKey, int nInfo) ; EXE_EXPORT bool ExeSetInfo( int nId, const std::string& sKey, double dInfo) ; EXE_EXPORT bool ExeSetInfo( int nId, const std::string& sKey, const std::string& sInfo) ; EXE_EXPORT bool ExeSetInfo( int nId, const std::string& sKey, const Frame3d& frFrame) ; EXE_EXPORT bool ExeGetInfo( int nId, const std::string& sKey, int& nInfo) ; EXE_EXPORT bool ExeGetInfo( int nId, const std::string& sKey, double& dInfo) ; EXE_EXPORT bool ExeGetInfo( int nId, const std::string& sKey, std::string& sInfo) ; EXE_EXPORT bool ExeGetInfo( int nId, const std::string& sKey, Frame3d& frFrame) ; EXE_EXPORT bool ExeExistsInfo( int nId, const std::string& sKey) ; EXE_EXPORT bool ExeRemoveInfo( int nId, const std::string& sKey) ; EXE_EXPORT bool ExeSetTextureName( int nId, const std::string& sTxrName) ; EXE_EXPORT bool ExeSetTextureFrame( int nId, const Frame3d& frTxrRef, int nRefType) ; EXE_EXPORT bool ExeRemoveTextureData( int nId) ; EXE_EXPORT bool ExeGetTextureName( int nId, std::string& sTxrName) ; EXE_EXPORT bool ExeGetTextureFrame( int nId, int nRefId, Frame3d& frTxrRef) ; // GeomDb Obj Selection EXE_EXPORT bool ExeSelectObj( int nId) ; EXE_EXPORT bool ExeDeselectObj( int nId) ; EXE_EXPORT bool ExeSelectAll( bool bOnlyIfVisible) ; EXE_EXPORT bool ExeDeselectAll( void) ; EXE_EXPORT bool ExeSelectGroupObjs( int nGroupId) ; EXE_EXPORT bool ExeDeselectGroupObjs( int nGroupId) ; EXE_EXPORT bool ExeIsSelectedObj( int nId) ; EXE_EXPORT int ExeGetSelectedObjCount( void) ; EXE_EXPORT int ExeGetFirstSelectedObj( void) ; EXE_EXPORT int ExeGetNextSelectedObj( void) ; EXE_EXPORT int ExeGetLastSelectedObj( void) ; EXE_EXPORT int ExeGetPrevSelectedObj( void) ; // GeomDB Modify EXE_EXPORT bool ExeChangeGroupFrame( int nId, const Frame3d& frNewRef, int nRefType) ; EXE_EXPORT bool ExeChangeVectorBase( int nId, const Point3d& ptB, int nRefType) ; EXE_EXPORT bool ExeModifyText( int nId, const std::string& sNewText) ; EXE_EXPORT bool ExeChangeTextFont( int nId, const std::string& sNewFont) ; EXE_EXPORT bool ExeFlipText( int nId) ; EXE_EXPORT bool ExeMirrorText( int nId, bool bOnL) ; EXE_EXPORT int ExeExplodeText( int nId, int* pnCount) ; EXE_EXPORT int ExeSplitText( int nId, int* pnCount) ; // GeomDb Curve Modify EXE_EXPORT bool ExeInvertCurve( const INTVECTOR& vIds) ; EXE_EXPORT bool ExeOffsetCurve( int nId, double dDist, int nType) ; EXE_EXPORT int ExeOffsetCurveAdv( int nId, double dDist, int nType, int* pnCount) ; EXE_EXPORT bool ExeApproxCurve( int nId, int nApprType, double dLinTol) ; EXE_EXPORT bool ExeProjectCurveOnPlane( int nId, const Point3d& ptOn, const Vector3d& vtN, int nRefType) ; EXE_EXPORT bool ExeChangeClosedCurveStartPoint( int nId, const Point3d& ptP, int nRefType) ; EXE_EXPORT bool ExeModifyCurveStartPoint( int nId, const Point3d& ptP, int nRefType) ; EXE_EXPORT bool ExeModifyCurveEndPoint( int nId, const Point3d& ptP, int nRefType) ; EXE_EXPORT bool ExeModifyCurveExtrusion( const INTVECTOR& vIds, const Vector3d& vtExtr, int nRefType) ; EXE_EXPORT bool ExeModifyCurveThickness( const INTVECTOR& vIds, double dThick) ; EXE_EXPORT bool ExeTrimCurveStartAtLen( int nId, double dLen) ; EXE_EXPORT bool ExeTrimCurveEndAtLen( int nId, double dLen) ; EXE_EXPORT bool ExeTrimCurveStartAtParam( int nId, double dPar) ; EXE_EXPORT bool ExeTrimCurveEndAtParam( int nId, double dPar) ; EXE_EXPORT bool ExeTrimCurveStartEndAtParam( int nId, double dParS, double dParE) ; EXE_EXPORT bool ExeExtendCurveStartByLen( int nId, double dLen) ; EXE_EXPORT bool ExeExtendCurveEndByLen( int nId, double dLen) ; EXE_EXPORT bool ExeTrimExtendCurveByLen( int nId, double dLen, const Point3d& ptNear, int nRefType) ; EXE_EXPORT int ExeTrimCurveWithRegion( int nCrvId, int nRegId, bool bInVsOut, bool bOn, int* pnCount) ; EXE_EXPORT int ExeSplitCurve( int nId, int nParts) ; EXE_EXPORT int ExeSplitCurveAtPoint( int nId, const Point3d& ptOn, int nRefType) ; EXE_EXPORT int ExeSplitCurveAtParam( int nId, double dParam) ; EXE_EXPORT int ExeSplitCurveAtCorners( int nId, double dTgAngToler, int* pnCount) ; EXE_EXPORT int ExeSplitCurveAtSelfInters( int nId, int* pnCount) ; EXE_EXPORT bool ExeModifyCircleCP( int nId, const Point3d& ptOn, int nRefType) ; EXE_EXPORT bool ExeModifyArcRadius( int nId, double dRad) ; EXE_EXPORT bool ExeModifyArcC2P( int nId, const Point3d& ptEnd, int nRefType) ; EXE_EXPORT bool ExeModifyArc3P( int nId, const Point3d& ptMid, int nRefType) ; EXE_EXPORT bool ExeModifyArcToExplementary( int nId) ; EXE_EXPORT bool ExeModifyArcByFlip( int nId) ; EXE_EXPORT bool ExeCloseCurveCompo( int nId) ; EXE_EXPORT bool ExeAddCurveCompoLine( int nId, const Point3d& ptP, int nRefType) ; EXE_EXPORT bool ExeAddCurveCompoArcTg( int nId, const Point3d& ptP, int nRefType) ; EXE_EXPORT bool ExeAddCurveCompoArc2P( int nId, const Point3d& ptMid, const Point3d& ptP, int nRefType) ; EXE_EXPORT bool ExeAddCurveCompoJoint( int nId, double dU) ; EXE_EXPORT bool ExeModifyCurveCompoJoint( int nId, int nU, const Point3d& ptP, int nRefType) ; EXE_EXPORT int ExeGetCurveCompoJointCount( int nId) ; EXE_EXPORT bool ExeRemoveCurveCompoJoint( int nId, int nU) ; EXE_EXPORT int ExeExplodeCurveCompo( int nId, int* pnCount) ; EXE_EXPORT bool ExeMergeCurvesInCurveCompo( int nId, double dLinTol, bool bStartEnd) ; EXE_EXPORT bool ExeRemoveCurveCompoUndercutOnY( int nId, double dLinTol) ; EXE_EXPORT bool ExeChainCurvesInGroup( int nGroupId, const Point3d& ptNear, int nRefType) ; EXE_EXPORT bool ExeReorderCurvesInGroup( int nGroupId, const Point3d& ptNear, int nRefType) ; // GeomDb Surf Modify EXE_EXPORT bool ExeInvertSurface( const INTVECTOR& vIds) ; EXE_EXPORT int ExeExplodeSurface( int nId, int* pnCount) ; EXE_EXPORT bool ExeSurfFrAdd( int nId1, int nId2) ; EXE_EXPORT bool ExeSurfFrSubtract( int nId1, int nId2) ; EXE_EXPORT bool ExeSurfFrIntersect( int nId1, int nId2) ; EXE_EXPORT bool ExeSurfFrOffset( int nId, double dDist, int nType) ; EXE_EXPORT int ExeExtractSurfFrChunkLoops( int nId, int nChunk, int nDestGrpId, int* pnCount) ; EXE_EXPORT bool ExeSurfFrMoveSimpleNoCollision( int nId1, int nId2, const Vector3d& vtDir, double& dLen, int nRefType) ; EXE_EXPORT bool ExeSurfFrRotateSimpleNoCollision( int nId1, int nId2, const Point3d& ptCen, double& dAngDeg, int nRefType) ; EXE_EXPORT int ExeExtractSurfTmLoops( int nId, int nDestGrpId, int* pnCount) ; EXE_EXPORT int ExeGetSurfTmSilhouette( int nId, const Vector3d& vtDir, int nDestGrpId, int nRefType, int* pnCount) ; EXE_EXPORT int ExeExtractSurfTmFacetLoops( int nId, int nFacet, int nDestGrpId, int* pnCount) ; // Geo Snap Vector/Point/Frame EXE_EXPORT bool ExeStartPoint( int nId, int nRefId, Point3d& ptP) ; EXE_EXPORT bool ExeEndPoint( int nId, int nRefId, Point3d& ptP) ; EXE_EXPORT bool ExeMidPoint( int nId, int nRefId, Point3d& ptP) ; EXE_EXPORT bool ExeCenterPoint( int nId, int nRefId, Point3d& ptP) ; EXE_EXPORT bool ExeCentroid( int nId, int nRefId, Point3d& ptP) ; EXE_EXPORT bool ExeAtParamPoint( int nId, double dU, int nRefId, Point3d& ptP) ; EXE_EXPORT bool ExeNearPoint( int nId, const Point3d& ptNear, int nRefId, Point3d& ptP) ; EXE_EXPORT bool ExeIntersectionPoint( int nId1, int nId2, const Point3d& ptNear, int nRefId, Point3d& ptP) ; EXE_EXPORT bool ExeStartVector( int nId, int nRefId, Vector3d& vtV) ; EXE_EXPORT bool ExeEndVector( int nId, int nRefId, Vector3d& vtV) ; EXE_EXPORT bool ExeMidVector( int nId, int nRefId, Vector3d& vtV) ; EXE_EXPORT bool ExeAtParamVector( int nId, double dU, int nSide, int nRefId, Vector3d& vtV) ; EXE_EXPORT bool ExeFrame( int nId, int nRefId, Frame3d& frFrame) ; EXE_EXPORT bool ExeCurveDomain( int nId, double* pdStart, double* pdEnd) ; EXE_EXPORT bool ExeCurveLength( int nId, double* pdLen) ; EXE_EXPORT bool ExeCurveLengthAtPoint( int nId, const Point3d& ptOn, double dExtend, double* pdLen) ; EXE_EXPORT bool ExeCurveIsClosed( int nId) ; EXE_EXPORT bool ExeCurveIsFlat( int nId, Plane3d& Plane) ; EXE_EXPORT bool ExeCurveAreaXY( int nId, double& dArea) ; EXE_EXPORT bool ExeCurveArea( int nId, Plane3d& Plane, double& dArea) ; EXE_EXPORT bool ExeCurveNearestExtremityToPoint( int nId, const Point3d& ptP, bool& bStart) ; EXE_EXPORT bool ExeCurveExtrusion( int nId, int nRefId, Vector3d& vtExtr) ; EXE_EXPORT bool ExeCurveThickness( int nId, double* pdThick) ; EXE_EXPORT bool ExeCurveSelfIntersCount( int nId, int* pnCount) ; EXE_EXPORT bool ExeGetMinDistPointCurve( const Point3d& ptP, int nId, double* pdDist, double* pdU) ; EXE_EXPORT bool ExeGetMinDistPntSidePointCurve( const Point3d& ptP, int nId, const Vector3d& vtN, double* pdDist, Point3d& ptMin, int* pnSide) ; EXE_EXPORT bool ExeArcRadius( int nId, double* pdRad) ; EXE_EXPORT bool ExeArcAngCenter( int nId, double* pdAngDeg) ; EXE_EXPORT bool ExeArcDeltaN( int nId, double* pdDeltaN) ; EXE_EXPORT bool ExeArcNormVersor( int nId, int nRefId, Vector3d& vtNorm) ; EXE_EXPORT bool ExeCurveCompoCenter( int nId, int nSimpCrv, int nRefId, Point3d& ptCen) ; EXE_EXPORT bool ExeSurfFrNormVersor( int nId, int nRefId, Vector3d& vtNorm) ; EXE_EXPORT int ExeSurfFrChunkCount( int nId) ; EXE_EXPORT int ExeSurfFrChunkSimpleClassify( int nId1, int nChunk1, int nId2, int nChunk2) ; EXE_EXPORT int ExeSurfTmFacetCount( int nId) ; EXE_EXPORT int ExeSurfTmFacetFromTria( int nId, int nT) ; EXE_EXPORT bool ExeSurfTmFacetNearestEndPoint( int nId, int nFacet, const Point3d& ptNear, int nRefId, Point3d& ptEnd, Vector3d& vtN) ; EXE_EXPORT bool ExeSurfTmFacetNearestMidPoint( int nId, int nFacet, const Point3d& ptNear, int nRefId, Point3d& ptMid, Vector3d& vtN) ; EXE_EXPORT bool ExeSurfTmFacetCenter( int nId, int nFacet, int nRefId, Point3d& ptCen, Vector3d& vtN) ; EXE_EXPORT bool ExeSurfTmFacetNormVersor( int nId, int nFacet, int nRefId, Vector3d& vtNorm) ; EXE_EXPORT bool ExeTextNormVersor( int nId, int nRefId, Vector3d& vtNorm) ; EXE_EXPORT bool ExePointToIdGlob( Point3d& ptP, int nId) ; EXE_EXPORT bool ExePointToIdLoc( Point3d& ptP, int nId) ; EXE_EXPORT bool ExeVectorToIdGlob( Vector3d& vtV, int nId) ; EXE_EXPORT bool ExeVectorToIdLoc( Vector3d& vtV, int nId) ; // Geo Transform EXE_EXPORT bool ExeMove( INTVECTOR& vIds, const Vector3d& vtMove, int nRefType) ; EXE_EXPORT bool ExeRotate( INTVECTOR& vIds, const Point3d& ptAx, const Vector3d& vtAx, double dAngRotDeg, int nRefType) ; EXE_EXPORT bool ExeScale( INTVECTOR& vIds, const Frame3d& frRef, double dCoeffX, double dCoeffY, double dCoeffZ, int nRefType) ; EXE_EXPORT bool ExeMirror( INTVECTOR& vIds, const Point3d& ptP, const Vector3d& vtN, int nRefType) ; EXE_EXPORT bool ExeShear( INTVECTOR& vIds, const Point3d& ptP, const Vector3d& vtN, const Vector3d& vtDir, double dCoeff, int nRefType) ; EXE_EXPORT bool ExeMoveGroup( int nId, const Vector3d& vtMove) ; EXE_EXPORT bool ExeRotateGroup( int nId, const Point3d& ptAx, const Vector3d& vtAx, double dAngRotDeg) ; EXE_EXPORT bool ExeScaleGroup( int nId, const Frame3d& frFrame, double dCoeffX, double dCoeffY, double dCoeffZ) ; EXE_EXPORT bool ExeMirrorGroup( int nId, const Point3d& ptP, const Vector3d& vtN) ; EXE_EXPORT bool ExeShearGroup( int nId, const Point3d& ptP, const Vector3d& vtN, const Vector3d& vtDir, double dCoeff) ; // Nesting // CreateFlatParts EXE_EXPORT bool ExeCreateFlatParts( int nType) ; EXE_EXPORT bool ExeAdjustFlatPartLayer( int nLayerId) ; EXE_EXPORT bool ExeCalcFlatPartDownRegion( int nPartId, double dH) ; // Box Nesting EXE_EXPORT bool ExePackBox( int nId, double dXmin, double dYmin, double dXmax, double dYmax, double dOffs, bool bBottomUp) ; EXE_EXPORT bool ExePackBoxCluster( const INTVECTOR& vIds, double dXmin, double dYmin, double dXmax, double dYmax, double dOffs, bool bBottomUp) ; EXE_EXPORT bool ExeMoveBoxCluster( const INTVECTOR& vIds, Vector3d& vtMove, double dXmin, double dYmin, double dXmax, double dYmax, double dOffs) ; EXE_EXPORT bool ExeGetClusterBBoxGlob( const INTVECTOR& vIds, BBox3d& b3Box) ; // Part Nesting EXE_EXPORT bool ExeCreateOutRegion( int nParentId, double dXmin, double dYmin, double dXmax, double dYmax, double dZ) ; EXE_EXPORT bool ExeCreateOutRegion( int nParentId, int nOutCrvId) ; EXE_EXPORT bool ExeCreateDamagedRegion( int nParentId, int nDmgCrvId) ; EXE_EXPORT bool ExeVerifyPartCluster( const INTVECTOR& vIds, bool bReducedCut) ; EXE_EXPORT bool ExePackPartClusterInRectangle( const INTVECTOR& vIds, bool bReducedCut, bool bBottomUp) ; EXE_EXPORT bool ExePackPartCluster( const INTVECTOR& vIds, bool bReducedCut, bool bBottomUp) ; EXE_EXPORT bool ExeMovePartCluster( const INTVECTOR& vIds, bool bReducedCut, Vector3d& vtMove) ; EXE_EXPORT bool ExeRotatePartCluster( const INTVECTOR& vIds, bool bReducedCut, const Point3d& ptCen, double& dRotAngDeg) ; EXE_EXPORT bool ExeTgMovePartClusterOnCollision( const INTVECTOR& vIds, bool bReducedCut, Vector3d& vtMove) ; EXE_EXPORT bool ExeAlignPartClusterOnCollision( const INTVECTOR& vIds, bool bReducedCut, bool& bMoved) ; EXE_EXPORT bool ExeMoveToSnapPointOnCollision( const INTVECTOR& vIds, bool bReducedCut, double dMaxMove, bool& bMoved) ; EXE_EXPORT void ExeSaveCollInfo( void) ; EXE_EXPORT void ExeRestoreCollInfo( void) ; EXE_EXPORT bool ExeGetPartClusterCenterGlob( const INTVECTOR& vIds, Point3d& ptCen) ; // Machining Nest EXE_EXPORT bool ExeVerifyMachining( int nMchId, int& nResult) ; EXE_EXPORT int ExeVerifyCutAsSplitting( int nMchId) ; // Machining EXE_EXPORT bool ExeInitMachMgr( const std::string& sMachinesDir) ; EXE_EXPORT bool ExeUpdateMachMgr( void) ; EXE_EXPORT bool ExeInsertMachMgr( int nInsGrp) ; // Machines EXE_EXPORT bool ExeSetCurrMachine( const std::string& sMachineName) ; EXE_EXPORT bool ExeGetCurrMachineName( std::string& sMachineName) ; // Machining Groups EXE_EXPORT int ExeGetMachGroupCount( void) ; EXE_EXPORT int ExeGetFirstMachGroup( void) ; EXE_EXPORT int ExeGetNextMachGroup( int nId) ; EXE_EXPORT int ExeAddMachGroup( const std::string& sName, const std::string& sMachineName) ; EXE_EXPORT bool ExeRemoveMachGroup( int nMGroupId) ; EXE_EXPORT bool ExeGetMachGroupName( int nId, std::string& sName) ; EXE_EXPORT int ExeGetMachGroupId( const std::string& sName) ; EXE_EXPORT bool ExeSetCurrMachGroup( int nMGroupId) ; EXE_EXPORT bool ExeResetCurrMachGroup( void) ; EXE_EXPORT int ExeGetCurrMachGroup( void) ; // Phases EXE_EXPORT int ExeAddPhase( void) ; EXE_EXPORT bool ExeSetCurrPhase( int nPhase, bool bForced) ; EXE_EXPORT int ExeGetCurrPhase( void) ; EXE_EXPORT bool ExeRemoveLastPhase( void) ; EXE_EXPORT int ExeGetPhaseCount( void) ; // Raw Parts & Parts EXE_EXPORT int ExeGetRawPartCount( void) ; EXE_EXPORT int ExeGetFirstRawPart( void) ; EXE_EXPORT int ExeGetNextRawPart( int nRawId) ; EXE_EXPORT int ExeAddRawPart( Point3d ptOrig, double dLength, double dWidth, double dHeight, Color cCol) ; EXE_EXPORT int ExeAddRawPartWithPart( int nPartId, int nCrvId, double dOverMat, Color cCol) ; EXE_EXPORT bool ExeModifyRawPart( int nRawId, Point3d ptOrig, double dLength, double dWidth, double dHeight, Color cCol) ; EXE_EXPORT bool ExeModifyRawPart( int nRawId, int nCrvId, double dOverMat, double dZmin, double dHeight, Color cCol) ; EXE_EXPORT bool ExeModifyRawPartSize( int nRawId, double dLength, double dWidth, double dHeight) ; EXE_EXPORT bool ExeModifyRawPartHeight( int nRawId, double dHeight) ; EXE_EXPORT bool ExeKeepRawPart( int nRawId) ; EXE_EXPORT bool ExeVerifyRawPartPhase( int nRawId, int nPhase) ; EXE_EXPORT bool ExeRemoveRawPartFromCurrPhase( int nRawId) ; EXE_EXPORT bool ExeRemoveRawPart( int nRawId) ; EXE_EXPORT bool ExeRotateRawPart( int nRawId, const Vector3d& vtAx, double dAngRotDeg) ; EXE_EXPORT bool ExeMoveToCornerRawPart( int nRawId, const Point3d& ptCorner, int nFlag) ; EXE_EXPORT bool ExeMoveToCenterRawPart( int nRawId, const Point3d& ptCenter, int nFlag) ; EXE_EXPORT bool ExeMoveRawPart( int nRawId, const Vector3d& vtMove) ; EXE_EXPORT int ExeSplitFlatRawPartWithMachinings( int nRawId, const INTVECTOR& vMchId) ; EXE_EXPORT int ExeGetPartInRawPartCount( int nRawId) ; EXE_EXPORT int ExeGetFirstPartInRawPart( int nRawId) ; EXE_EXPORT int ExeGetNextPartInRawPart( int nPartId) ; EXE_EXPORT bool ExeAddPartToRawPart( int nPartId, const Point3d& ptPos, int nRawId) ; EXE_EXPORT bool ExeRemovePartFromRawPart( int nPartId) ; EXE_EXPORT bool ExeTranslatePartInRawPart( int nPartId, const Vector3d& vtMove) ; EXE_EXPORT bool ExeRotatePartInRawPart( int nPartId, const Vector3d& vtAx, double dAngRotDeg) ; // Table & Disposition EXE_EXPORT bool ExeSetTable( const std::string& sTable) ; EXE_EXPORT bool ExeGetTableRef( int nInd, Point3d& ptPos) ; EXE_EXPORT bool ExeGetTableArea( int nInd, BBox3d& b3Area) ; EXE_EXPORT bool ExeShowOnlyTable( bool bVal) ; EXE_EXPORT int ExeAddFixture( const std::string& sName, const Point3d& ptPos, double dAngRotDeg) ; EXE_EXPORT int ExeGetFirstFixture( void) ; EXE_EXPORT int ExeGetNextFixture( int nFxtId) ; // Tools Database EXE_EXPORT bool ExeTdbGetToolNewName( std::string& sName) ; EXE_EXPORT bool ExeTdbAddTool( const std::string& sName, int nType) ; EXE_EXPORT bool ExeTdbCopyTool( const std::string& sSource, const std::string& sName) ; EXE_EXPORT bool ExeTdbRemoveTool( const std::string& sName) ; EXE_EXPORT bool ExeTdbGetFirstTool( int nFamily, std::string& sName, int& nType) ; EXE_EXPORT bool ExeTdbGetNextTool( int nFamily, std::string& sName, int& nType) ; EXE_EXPORT bool ExeTdbSetCurrTool( const std::string& sName) ; EXE_EXPORT bool ExeTdbSaveCurrTool( void) ; EXE_EXPORT bool ExeTdbIsCurrToolModified( void) ; EXE_EXPORT bool ExeTdbSetCurrToolParam( int nType, bool bVal) ; EXE_EXPORT bool ExeTdbSetCurrToolParam( int nType, int nVal) ; EXE_EXPORT bool ExeTdbSetCurrToolParam( int nType, double dVal) ; EXE_EXPORT bool ExeTdbSetCurrToolParam( int nType, const std::string& sVal) ; EXE_EXPORT bool ExeTdbGetCurrToolParam( int nType, bool& nVal) ; EXE_EXPORT bool ExeTdbGetCurrToolParam( int nType, int& nVal) ; EXE_EXPORT bool ExeTdbGetCurrToolParam( int nType, double& dVal) ; EXE_EXPORT bool ExeTdbGetCurrToolParam( int nType, std::string& sVal) ; EXE_EXPORT bool ExeTdbSave( void) ; EXE_EXPORT bool ExeTdbGetToolDir( std::string& sToolDir) ; EXE_EXPORT bool ExeTdbGetToolHolderDir( std::string& sTHolderDir) ; // Machinings Database EXE_EXPORT bool ExeMdbGetMachiningNewName( std::string& sName) ; EXE_EXPORT bool ExeMdbAddMachining( const std::string& sName, int nType) ; EXE_EXPORT bool ExeMdbCopyMachining( const std::string& sSource, const std::string& sName) ; EXE_EXPORT bool ExeMdbRemoveMachining( const std::string& sName) ; EXE_EXPORT bool ExeMdbGetFirstMachining( int nType, std::string& sName) ; EXE_EXPORT bool ExeMdbGetNextMachining( int nType, std::string& sName) ; EXE_EXPORT bool ExeMdbSetCurrMachining( const std::string& sName) ; EXE_EXPORT bool ExeMdbSaveCurrMachining( void) ; EXE_EXPORT bool ExeMdbIsCurrMachiningModified( void) ; EXE_EXPORT bool ExeMdbSetCurrMachiningParam( int nType, bool bVal) ; EXE_EXPORT bool ExeMdbSetCurrMachiningParam( int nType, int nVal) ; EXE_EXPORT bool ExeMdbSetCurrMachiningParam( int nType, double dVal) ; EXE_EXPORT bool ExeMdbSetCurrMachiningParam( int nType, const std::string& sVal) ; EXE_EXPORT bool ExeMdbGetCurrMachiningParam( int nType, bool& nVal) ; EXE_EXPORT bool ExeMdbGetCurrMachiningParam( int nType, int& nVal) ; EXE_EXPORT bool ExeMdbGetCurrMachiningParam( int nType, double& dVal) ; EXE_EXPORT bool ExeMdbGetCurrMachiningParam( int nType, std::string& sVal) ; EXE_EXPORT bool ExeMdbSetGeneralParam( int nType, double dVal) ; EXE_EXPORT bool ExeMdbGetGeneralParam( int nType, double& dVal) ; EXE_EXPORT bool ExeMdbSave( void) ; EXE_EXPORT bool ExeMdbGetMachiningDir( std::string& sMchDir) ; // Operations EXE_EXPORT int ExeGetFirstOperation( void) ; EXE_EXPORT int ExeGetNextOperation( int nId) ; EXE_EXPORT int ExeGetOperationType( int nId) ; EXE_EXPORT int ExeGetOperationPhase( int nId) ; EXE_EXPORT bool ExeGetOperationName( int nId, std::string& sName) ; EXE_EXPORT int ExeGetOperationId( const std::string& sName) ; EXE_EXPORT bool ExeIsOperationEmpty( int nId) ; EXE_EXPORT bool ExeRemoveOperation( int nId) ; EXE_EXPORT bool ExeRemoveAllPhaseOperations( int nPhase) ; EXE_EXPORT bool ExeRemoveAllOperations( void) ; EXE_EXPORT bool ExeSetOperationMode( int nId, bool bActive) ; EXE_EXPORT bool ExeGetOperationMode( int nId, bool& bActive) ; EXE_EXPORT bool ExeSetAllOperationsMode( bool bActive) ; EXE_EXPORT bool ExeSetOperationStatus( int nId, bool bShow) ; EXE_EXPORT bool ExeGetOperationStatus( int nId, bool& bShow) ; EXE_EXPORT bool ExeSetAllOperationsStatus( bool bShow) ; EXE_EXPORT bool ExeChangeOperationPhase( int nId, int nNewPhase) ; // Dispositions EXE_EXPORT int ExeGetPhaseDisposition( int nPhase) ; EXE_EXPORT bool ExeSpecialApplyDisposition( int nId, bool bRecalc) ; // Machinings EXE_EXPORT int ExeAddMachining( const std::string& sName, const std::string& sMachining) ; EXE_EXPORT int ExeAddMachining( const std::string& sName, int nMchType, const std::string& sTool) ; EXE_EXPORT bool ExeSetCurrMachining( int nId) ; EXE_EXPORT bool ExeResetCurrMachining( void) ; EXE_EXPORT int ExeGetCurrMachining( void) ; EXE_EXPORT bool ExeSetMachiningParam( int nType, bool bVal) ; EXE_EXPORT bool ExeSetMachiningParam( int nType, int nVal) ; EXE_EXPORT bool ExeSetMachiningParam( int nType, double dVal) ; EXE_EXPORT bool ExeSetMachiningParam( int nType, const std::string& sVal) ; EXE_EXPORT bool ExeSetMachiningGeometry( const SELVECTOR& vIds) ; EXE_EXPORT bool ExePreviewMachining( bool bRecalc) ; EXE_EXPORT bool ExeApplyMachining( bool bRecalc) ; EXE_EXPORT bool ExeGetMachiningParam( int nType, bool& bVal) ; EXE_EXPORT bool ExeGetMachiningParam( int nType, int& nVal) ; EXE_EXPORT bool ExeGetMachiningParam( int nType, double& dVal) ; EXE_EXPORT bool ExeGetMachiningParam( int nType, std::string& sVal) ; EXE_EXPORT bool ExeGetMachiningGeometry( SELVECTOR& vIds) ; EXE_EXPORT bool ExeIsMachiningEmpty( void) ; // Simulation EXE_EXPORT bool ExeSimStart( void) ; EXE_EXPORT bool ExeSimMove( int& nStatus) ; EXE_EXPORT bool ExeSimHome( void) ; EXE_EXPORT bool ExeSimGetAxisInfoPos( int nI, std::string& sName, double& dVal) ; EXE_EXPORT bool ExeSimGetToolInfo( std::string& sName, double& dSpeed) ; EXE_EXPORT bool ExeSimGetMoveInfo( int& nGmove, double& dFeed) ; EXE_EXPORT bool ExeSimSetStep( double dStep) ; EXE_EXPORT bool ExeSimStop( void) ; // Generation EXE_EXPORT bool ExeGenerate( const std::string& sCncFile, const std::string& sInfo) ; // Machine EXE_EXPORT int ExeGetBaseId( const std::string& sBase) ; EXE_EXPORT int ExeGetTableId( const std::string& sTable) ; EXE_EXPORT int ExeGetAxisId( const std::string& sAxis) ; EXE_EXPORT int ExeGetHeadId( const std::string& sHead) ; // Machine Calc EXE_EXPORT bool ExeSetCalcTable( const std::string& sTable) ; EXE_EXPORT bool ExeSetCalcTool( const std::string& sTool, const std::string& sHead, int nExit) ; EXE_EXPORT bool ExeSetRotAxisBlock( const std::string& sAxis, double dVal) ; EXE_EXPORT bool ExeGetCalcTool( std::string& sTool) ; EXE_EXPORT bool ExeGetCalcAngles( const Vector3d& vtDirT, const Vector3d& vtDirA, int& nStat, double& dAngA1, double& dAngB1, double& dAngA2, double& dAngB2) ; EXE_EXPORT bool ExeGetCalcPositions( const Point3d& ptP, double dAngA, double dAngB, int& nStat, double& dX, double& dY, double& dZ) ; EXE_EXPORT bool ExeGetCalcTipFromPositions( double dX, double dY, double dZ, double dAngA, double dAngB, bool bBottom, Point3d& ptTip) ; EXE_EXPORT bool ExeGetCalcToolDirFromAngles( double dAngA, double dAngB, Vector3d& vtDir) ; EXE_EXPORT bool ExeVerifyOutstroke( double dX, double dY, double dZ, double dAngA, double dAngB, int& nStat) ; EXE_EXPORT bool ExeGetOutstrokeInfo( std::string& sInfo) ; // Machine Move EXE_EXPORT bool ExeSetAxisPos( const std::string& sAxis, double dVal) ; EXE_EXPORT bool ExeGetAxisPos( const std::string& sAxis, double* pdVal) ; EXE_EXPORT bool ExeGetAxisHomePos( const std::string& sAxis, double* pdHomeVal) ; EXE_EXPORT bool ExeResetAxisPos( const std::string& sAxis) ; EXE_EXPORT bool ExeLoadTool( const std::string& sHead, int nExit, const std::string& sTool) ; EXE_EXPORT bool ExeGetLoadedTool( const std::string& sHead, int nExit, std::string& sTool) ; EXE_EXPORT bool ExeUnloadTool( const std::string& sHead, int nExit) ; EXE_EXPORT bool ExeResetHeadSet( const std::string& sHead) ; EXE_EXPORT bool ExeSetMachineLook( int nFlag) ; // Scene EXE_EXPORT bool ExeInitScene( HWND hWnd, int nDriver, bool b2Buff, int nColorBits, int nDepthBits) ; EXE_EXPORT bool ExeGetSceneInfo( std::string& sInfo) ; EXE_EXPORT bool ExeSetBackground( Color TopCol, Color BottomCol, bool bRedraw) ; EXE_EXPORT bool ExeSetMarkAttribs( Color MarkCol) ; EXE_EXPORT bool ExeSetSelSurfAttribs( Color SelSurfCol) ; EXE_EXPORT bool ExeSetGeoLineAttribs( Color GlCol) ; EXE_EXPORT bool ExeSetGeoTriaAttribs( Color GtCol) ; EXE_EXPORT bool ExeSetWinRectAttribs( bool bOutline, Color WrCol) ; EXE_EXPORT bool ExeSetGlobFrameShow( bool bShow) ; EXE_EXPORT bool ExeSetGridShow( bool bShowGrid, bool bShowFrame) ; EXE_EXPORT bool ExeSetGridGeo( double dSnapStep, int nMinLineSstep, int nMajLineSstep, int nExtSstep) ; EXE_EXPORT bool ExeSetGridColor( Color colMin, Color colMaj) ; EXE_EXPORT bool ExeResize( int nW, int nH) ; EXE_EXPORT bool ExeDraw( void) ; EXE_EXPORT bool ExeSelect( int nWinX, int nWinY, int nSelW, int nSelH, int* pnSel) ; EXE_EXPORT bool ExeSetObjFilterForSelect( bool bZerodim, bool bCurve, bool bSurf, bool bVolume, bool bExtra) ; EXE_EXPORT bool ExeUnselectableRemove( int nId) ; EXE_EXPORT bool ExeUnselectableAdd( int nId) ; EXE_EXPORT bool ExeUnselectableClearAll( void) ; EXE_EXPORT int ExeGetFirstObjInSelWin( void) ; EXE_EXPORT int ExeGetNextObjInSelWin( void) ; EXE_EXPORT bool ExeGetPointFromSelect( int nSelId, int nWinX, int nWinY, Point3d& ptSel, int* pnAux) ; EXE_EXPORT bool ExeGetGraphicSnapPoint( int nSnap, int nWinX, int nWinY, int nSelW, int nSelH, Point3d& ptP) ; EXE_EXPORT bool ExeGetGridSnapPointZ( bool bSketch, int nWinX, int nWinY, const Point3d& ptGrid, Point3d& ptP) ; EXE_EXPORT int ExeGetLastSnapId( void) ; EXE_EXPORT bool ExeGetLastSnapDir( Vector3d& vtV) ; EXE_EXPORT bool ExeSetShowMode( int nShowMode, bool bRedraw) ; EXE_EXPORT int ExeGetShowMode( void) ; EXE_EXPORT bool ExeSetShowCurveDirection( bool bShow, bool bRedraw) ; EXE_EXPORT bool ExeGetShowCurveDirection( void) ; EXE_EXPORT bool ExeSetShowTriaAdv( bool bAdvanced, bool bRedraw) ; EXE_EXPORT bool ExeGetShowTriaAdv( void) ; EXE_EXPORT bool ExeSetShowZmap( int nMode, bool bRedraw) ; EXE_EXPORT int ExeGetShowZmap( void) ; EXE_EXPORT bool ExeZoomRadius( double dRadius, bool bRedraw) ; EXE_EXPORT bool ExeZoom( int nZoom, bool bRedraw) ; EXE_EXPORT bool ExeZoomOnPoint( int nWinX, int nWinY, double dCoeff, bool bRedraw) ; EXE_EXPORT bool ExeSetGeoLine( const Point3d& ptP1, const Point3d& ptP2, bool bRedraw) ; EXE_EXPORT bool ExeResetGeoLine( bool bRedraw) ; EXE_EXPORT bool ExeSetGeoTria( const Point3d& ptP1, const Point3d& ptP2, const Point3d& ptP3, bool bRedraw) ; EXE_EXPORT bool ExeResetGeoTria( bool bRedraw) ; EXE_EXPORT bool ExeSetWinRect( int nPrevX, int nPrevY, int nCurrX, int nCurrY, bool bRedraw) ; EXE_EXPORT bool ExeResetWinRect( bool bRedraw) ; EXE_EXPORT bool ExeZoomWin( int nPrevX, int nPrevY, int nCurrX, int nCurrY, bool bRedraw) ; EXE_EXPORT bool ExeSetView( int nDir, bool bRedraw) ; EXE_EXPORT bool ExeSetGenericView( double dAngVertDeg, double dAngHorizDeg, bool bRedraw) ; EXE_EXPORT bool ExeSetViewCenter( const Point3d& ptP, bool bRedraw) ; EXE_EXPORT bool ExePanView( int nPrevX, int nPrevY, int nCurrX, int nCurrY, bool bRedraw) ; EXE_EXPORT bool ExeRotateView( int nPrevX, int nPrevY, int nCurrX, int nCurrY, bool bRedraw) ; EXE_EXPORT bool ExeGetView( int* pnDir) ; EXE_EXPORT bool ExeGetGenericView( double* pdAngVertDeg, double* pdAngHorizDeg) ; EXE_EXPORT bool ExeProjectPoint( const Point3d& ptP, Point3d& ptWin) ; EXE_EXPORT bool ExeUnProjectPoint( int nWinX, int nWinY, Point3d& ptP) ; EXE_EXPORT bool ExeLoadTexture( const std::string& sName, const std::string& sFile, double dMMxPix, double dDimX, double dDimY, int nRepeat) ; EXE_EXPORT bool ExeUnloadTexture( const std::string& sName) ; EXE_EXPORT bool ExeExistsTexture( const std::string& sName) ; EXE_EXPORT bool ExeGetTexturePixels( const std::string& sName, int& nWidth, int& nHeight) ; EXE_EXPORT bool ExeGetTextureDimensions( const std::string& sName, double& dDimX, double& dDimY) ; EXE_EXPORT bool ExeChangeTextureDimensions( const std::string& sName, double dDimX, double dDimY) ; // Photo EXE_EXPORT int ExeAddPhoto( const std::string& sName, const std::string& sPath, const Point3d& ptOri, const Point3d& ptCen, double dMMxPixel, int nParentId, const Point3d& ptMin, const Point3d& ptMax) ; EXE_EXPORT bool ExeGetPhotoPath( int nId, std::string& sPath) ; EXE_EXPORT bool ExeChangePhotoPath( int nId, const std::string& sPath) ; EXE_EXPORT bool ExeGetPhotoOrigin( int nId, Point3d& ptOri) ; EXE_EXPORT bool ExeGetPhotoCenter( int nId, Point3d& ptCen) ; EXE_EXPORT bool ExeGetPhotoMMxPixel( int nId, double& dMMxPixel) ; // Messages EXE_EXPORT bool ExeLoadMessages( const std::string& sMsgFilePath) ; EXE_EXPORT const std::string& ExeGetLanguage( void) ; EXE_EXPORT const std::string& ExeGetMsg( int nMsg) ;