From f81bf2bb8248299bad6fc656c2e78930f2b350eb Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 16 Sep 2019 15:29:10 +0000 Subject: [PATCH] Include : - aggiornamento interfacce - aggiunte per export SVG. --- EExExportSvg.h | 40 ++++++++++++++++++++++++++++++++++++++++ EInAPI.h | 1 + EXeConst.h | 1 + EXeExecutor.h | 1 + 4 files changed, 43 insertions(+) create mode 100644 EExExportSvg.h diff --git a/EExExportSvg.h b/EExExportSvg.h new file mode 100644 index 0000000..cc572c4 --- /dev/null +++ b/EExExportSvg.h @@ -0,0 +1,40 @@ +//---------------------------------------------------------------------------- +// EgalTech 2019-2019 +//---------------------------------------------------------------------------- +// File : EExExportSvg.h Data : 15.09.19 Versione : 2.1i2 +// Contenuto : Dichiarazione della interfaccia IExportSvg. +// +// +// +// Modifiche : 15.09.19 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +#pragma once + +#include "/EgtDev/Include/EgkGeomDB.h" +#include "/EgtDev/Include/EExExportConst.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) IExportSvg +{ + public : + virtual ~IExportSvg( void) {} + virtual bool SetOptions( int nFilter) = 0 ; + virtual bool Export( IGeomDB* pGDB, int nId, const std::string& sFile) = 0 ; +} ; + +//----------------------------------------------------------------------------- +extern "C" { + EEX_EXPORT IExportSvg* CreateExportSvg(void) ; +} diff --git a/EInAPI.h b/EInAPI.h index 0280bca..fc67dd6 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -106,6 +106,7 @@ 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 EgtExportDxf( int nId, const wchar_t* wsFilePath) ; EIN_EXPORT BOOL __stdcall EgtExportStl( int nId, const wchar_t* wsFilePath) ; +EIN_EXPORT BOOL __stdcall EgtExportSvg( int nId, const wchar_t* wsFilePath) ; // Tsc Executor EIN_EXPORT BOOL __stdcall EgtInitTscExec( void) ; diff --git a/EXeConst.h b/EXeConst.h index ff26d66..92360ed 100644 --- a/EXeConst.h +++ b/EXeConst.h @@ -25,6 +25,7 @@ enum FileType { FT_NULL = 0, FT_BTL = 15, FT_IMG = 16, FT_PNT = 17, + FT_SVG = 18, FT_TSC = 101, FT_LUA = 102} ; diff --git a/EXeExecutor.h b/EXeExecutor.h index 7d71654..5b7f9c4 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -112,6 +112,7 @@ EXE_EXPORT bool ExeImportPnt( const std::string& sFilePath, int nFlag) ; EXE_EXPORT bool ExeImportStl( const std::string& sFilePath, double dScaleFactor) ; EXE_EXPORT bool ExeExportDxf( int nId, const std::string& sFilePath) ; EXE_EXPORT bool ExeExportStl( int nId, const std::string& sFilePath) ; +EXE_EXPORT bool ExeExportSvg( int nId, const std::string& sFilePath) ; // Tsc Executor EXE_EXPORT bool ExeInitTscExec( void) ;