Include :

- aggiornamento prototipi e nuovo file prototipi per ImportBTLx
- aggiunta costante FT_BTLX = 19.
This commit is contained in:
Dario Sassi
2020-12-14 11:42:54 +00:00
parent 104aa840bc
commit 114c76814b
5 changed files with 65 additions and 1 deletions
+12 -1
View File
@@ -32,9 +32,20 @@ class __declspec( novtable) IBeamMgr
virtual ~IBeamMgr( void) {}
virtual bool Init( IGeomDB* pGDB, int nFlag = 0) = 0 ;
virtual int CreatePart( void) = 0 ;
virtual bool SetPart( int nPartId) = 0 ;
virtual bool ErasePart( void) = 0 ;
virtual bool SetPartProdNbr( int nProdNbr) = 0 ;
virtual bool SetPartName( const std::string& sName) = 0 ;
virtual bool SetPartCount( int nCount) = 0 ;
virtual bool SetPartBox( double dLength, double dHeight, double dWidth) = 0 ;
virtual int AddProcess( int nGroup, int nProc, int nSide, const std::string& sDes, int nProcId,
const Frame3d& frRef, const DBLVECTOR& vdPar, const std::string& sPar) = 0 ;
virtual bool CalcSolid( int nPartId, bool bRecalc = false) = 0 ;
virtual int GetSolid( int nPartId) = 0 ;
virtual int GetSolid( int nPartId) const = 0 ;
virtual bool ShowSolid( int nPartId, bool bShow) = 0 ;
virtual bool GetBuildingIsOn( void) const = 0 ;
virtual bool ShowBuilding( bool bShow) = 0 ;
} ;
+39
View File
@@ -0,0 +1,39 @@
//----------------------------------------------------------------------------
// EgalTech 2020-2020
//----------------------------------------------------------------------------
// File : EExImportBtlx.h Data : 14.12.20 Versione : 2.2l1
// Contenuto : Dichiarazione della interfaccia IImportBtl.
//
//
//
// Modifiche : 14.12.20 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "/EgtDev/Include/EGkGeomDB.h"
#include "/EgtDev/Include/EExBeamConst.h"
#include <string>
//----------------------- Macro per import/export ----------------------------
#undef EEK_EXPORT
#if defined( I_AM_EEX) // da definirsi solo nella DLL
#define EEX_EXPORT __declspec( dllexport)
#else
#define EEX_EXPORT __declspec( dllimport)
#endif
//-----------------------------------------------------------------------------
class __declspec( novtable) IImportBtlx
{
public :
virtual ~IImportBtlx( void) {}
virtual bool Import( const std::string& sFile, IGeomDB* pGDB, int nFlag = 0) = 0 ;
} ;
//-----------------------------------------------------------------------------
extern "C" {
EEX_EXPORT IImportBtlx* CreateImportBtlx( void) ;
}
+1
View File
@@ -101,6 +101,7 @@ EIN_EXPORT BOOL __stdcall EgtSaveMachGroupToFile( int nMGroupId, const wchar_t*
// Exchange
EIN_EXPORT int __stdcall EgtGetFileType( const wchar_t* wsFilePath) ;
EIN_EXPORT BOOL __stdcall EgtImportBtl( const wchar_t* wsFilePath, int nFlag) ;
EIN_EXPORT BOOL __stdcall EgtImportBtlx( const wchar_t* wsFilePath, int nFlag) ;
EIN_EXPORT BOOL __stdcall EgtImportCnc( const wchar_t* wsFilePath, int nFlag) ;
EIN_EXPORT BOOL __stdcall EgtImportCsf( const wchar_t* wsFilePath) ;
EIN_EXPORT BOOL __stdcall EgtImportDxf( const wchar_t* wsFilePath, double dScaleFactor) ;
+1
View File
@@ -26,6 +26,7 @@ enum FileType { FT_NULL = 0,
FT_IMG = 16,
FT_PNT = 17,
FT_SVG = 18,
FT_BTLX = 19,
FT_IGES = 31,
FT_STEP = 32,
FT_ACIS = 33,
+12
View File
@@ -107,6 +107,7 @@ EXE_EXPORT bool ExeSaveMachGroupToFile( int nMGroupId, const std::string& sFileP
// Exchange
EXE_EXPORT int ExeGetFileType( const std::string& sFilePath) ;
EXE_EXPORT bool ExeImportBtl( const std::string& sFilePath, int nFlag) ;
EXE_EXPORT bool ExeImportBtlx( const std::string& sFilePath, int nFlag) ;
EXE_EXPORT bool ExeImportCnc( const std::string& sFilePath, int nFlag) ;
EXE_EXPORT bool ExeImportCsf( const std::string& sFilePath) ;
EXE_EXPORT bool ExeImportDxf( const std::string& sFilePath, double dScaleFactor) ;
@@ -120,9 +121,20 @@ EXE_EXPORT bool ExeExportSvg( int nId, const std::string& sFilePath, int nFilter
// BeamManager
EXE_EXPORT bool ExeInitBeamMgr( int nFlag) ;
EXE_EXPORT int ExeBeamCreatePart( void) ;
EXE_EXPORT bool ExeBeamSetPart( int nPartId) ;
EXE_EXPORT bool ExeBeamErasePart( void) ;
EXE_EXPORT bool ExeBeamSetPartProdNbr( int nProdNbr) ;
EXE_EXPORT bool ExeBeamSetPartName( const std::string& sName) ;
EXE_EXPORT bool ExeBeamSetPartCount( int nCount) ;
EXE_EXPORT bool ExeBeamSetPartBox( double dLength, double dHeight, double dWidth) ;
EXE_EXPORT int ExeBeamAddProcess( int nGroup, int nProc, int nSide, const std::string& sDes, int nProcId,
const Frame3d& frRef, const DBLVECTOR& vdPar, const std::string& sPar) ;
EXE_EXPORT bool ExeBeamCalcSolid( int nPartId, bool bRecalc = false) ;
EXE_EXPORT int ExeBeamGetSolid( int nPartId) ;
EXE_EXPORT bool ExeBeamShowSolid( int nPartId, bool bShow) ;
EXE_EXPORT bool ExeBeamGetBuildingIsOn( void) ;
EXE_EXPORT bool ExeBeamShowBuilding( bool bShow) ;
// Tsc Executor
EXE_EXPORT bool ExeInitTscExec( void) ;