From fb0e98a96e0262697dc700781234be1b57210579 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 7 Jul 2017 15:59:21 +0000 Subject: [PATCH] Include : - aggiunta interfaccia per gestore immagini. --- EGrImageMgr.h | 37 +++++++++++++++++++++++++++++++++++++ EXeExecutor.h | 3 +++ 2 files changed, 40 insertions(+) create mode 100644 EGrImageMgr.h diff --git a/EGrImageMgr.h b/EGrImageMgr.h new file mode 100644 index 0000000..4c10bfb --- /dev/null +++ b/EGrImageMgr.h @@ -0,0 +1,37 @@ +//---------------------------------------------------------------------------- +// EgalTech 2017-2017 +//---------------------------------------------------------------------------- +// File : EGrImageMgr.h Data : 05.07.17 Versione : 1.8g1 +// Contenuto : Dichiarazione della interfaccia IImageMgr. +// +// +// +// Modifiche : 05.07.17 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +#pragma once + +#include + +//----------------------- Macro per import/export ---------------------------- +#undef EGR_EXPORT +#if defined( I_AM_EGR) // da definirsi solo nella DLL + #define EGR_EXPORT __declspec( dllexport) +#else + #define EGR_EXPORT __declspec( dllimport) +#endif + +//---------------------------------------------------------------------------- +class __declspec( novtable) IEgrImageMgr +{ + public : + virtual ~IEgrImageMgr( void) {} + virtual bool GetImagePixels( const std::string& sFile, int& nPixelX, int& nPixelY) = 0 ; +} ; + +//---------------------------------------------------------------------------- +extern "C" { + EGR_EXPORT IEgrImageMgr* CreateEgrImageMgr( void) ; +} diff --git a/EXeExecutor.h b/EXeExecutor.h index e06f229..d7c1b5e 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -879,6 +879,9 @@ EXE_EXPORT bool ExeChangeTextureDimensions( const std::string& sName, double dDi EXE_EXPORT bool ExeGetImage( int nShowMode, Color colBackTop, Color colBackBottom, int nWidth, int nHeight, const std::string& sFile) ; +// Image +EXE_EXPORT bool ExeGetImagePixels( const std::string& sFile, int& nPixelX, int& nPixelY) ; + // Photo EXE_EXPORT int ExeAddPhoto( const std::string& sName, const std::string& sPath, const Point3d& ptOri, const Point3d& ptCen, double dMMxPixel,