diff --git a/EExImportPly.h b/EExImportPly.h new file mode 100644 index 0000000..513bd5e --- /dev/null +++ b/EExImportPly.h @@ -0,0 +1,38 @@ +//---------------------------------------------------------------------------- +// EgalTech 2025-2025 +//---------------------------------------------------------------------------- +// File : EExImportPly.h Data : 28.02.25 Versione : 2.7b2 +// Contenuto : Dichiarazione della interfaccia IImportPly. +// +// +// +// Modifiche : 28.02.25 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +#pragma once + +#include "/EgtDev/Include/EGkGeomDB.h" +#include + +//----------------------- 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) IImportPly +{ + public : + virtual ~IImportPly( void) {} + virtual bool Import( const std::string& sFile, IGeomDB* pGDB, int nIdGroup, double dScaleFactor = 1) = 0 ; +} ; + +//----------------------------------------------------------------------------- +extern "C" { + EEX_EXPORT IImportPly* CreateImportPly( void) ; +} diff --git a/EInAPI.h b/EInAPI.h index d41c9aa..65a97ad 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -117,6 +117,7 @@ EIN_EXPORT BOOL __stdcall EgtImportDxf( const wchar_t* wsFilePath, double dScale EIN_EXPORT BOOL __stdcall EgtImportPnt( const wchar_t* wsFilePath, int nFlag) ; EIN_EXPORT BOOL __stdcall EgtImportStl( const wchar_t* wsFilePath, double dScaleFactor) ; EIN_EXPORT BOOL __stdcall EgtImportOff( const wchar_t* wsFilePath, double dScaleFactor) ; +EIN_EXPORT BOOL __stdcall EgtImportPly( const wchar_t* wsFilePath, double dScaleFactor) ; EIN_EXPORT BOOL __stdcall EgtImport3MF( const wchar_t* wsFilePath, int nFlag) ; EIN_EXPORT BOOL __stdcall EgtImport3dm( const wchar_t* wsFilePath) ; EIN_EXPORT BOOL __stdcall EgtAdvancedImportIsEnabled( void) ; diff --git a/EXeConst.h b/EXeConst.h index 767b3cd..10974c6 100644 --- a/EXeConst.h +++ b/EXeConst.h @@ -13,6 +13,7 @@ #pragma once +#include //----------------- Costanti per tipo di file ---------------------------------- enum FileType { FT_NULL = 0, @@ -31,6 +32,7 @@ enum FileType { FT_NULL = 0, FT_OBJ = 21, FT_3DM = 22, FT_OFF = 23, + FT_PLY = 24, FT_IGES = 31, FT_STEP = 32, FT_ACIS = 33, diff --git a/EXeExecutor.h b/EXeExecutor.h index b38eaa2..30444b1 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -125,6 +125,7 @@ EXE_EXPORT bool ExeImportDxf( const std::string& sFilePath, double dScaleFactor) EXE_EXPORT bool ExeImportPnt( const std::string& sFilePath, int nFlag) ; EXE_EXPORT bool ExeImportStl( const std::string& sFilePath, double dScaleFactor) ; EXE_EXPORT bool ExeImportOff( const std::string& sFilePath, double dScaleFactor) ; +EXE_EXPORT bool ExeImportPly( const std::string& sFilePath, double dScaleFactor) ; EXE_EXPORT bool ExeImport3MF( const std::string& sFilePath, int nFlag = 0) ; EXE_EXPORT bool ExeImport3dm( const std::string& sFilePath) ; EXE_EXPORT bool ExeAdvancedImportIsEnabled( void) ;