Files
Include/EInAPI.h
T
Dario Sassi b577e5ef0f Include :
- aggiornamento interfacce.
2014-09-01 17:07:22 +00:00

84 lines
4.2 KiB
C

//----------------------------------------------------------------------------
// EgalTech 2014-2014
//----------------------------------------------------------------------------
// File : EInAPI.h Data : 26.08.14 Versione : 1.5h1
// Contenuto : API (application programming interface).
//
//
//
// Modifiche : 26.08.14 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include <windows.h>
//----------------------- Macro per import/export ----------------------------
#undef EIN_EXPORT
#if defined( I_AM_EIN) // da definirsi solo nella DLL
#define EIN_EXPORT __declspec( dllexport)
#else
#define EIN_EXPORT __declspec( dllimport)
#endif
//-----------------------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
// API
// General
EIN_EXPORT BOOL __stdcall EgtInit( int nDebug, const wchar_t* sLogFile) ;
EIN_EXPORT BOOL __stdcall EgtExit( void) ;
EIN_EXPORT BOOL __stdcall EgtSetFont( const wchar_t* sNfeFontDir, const wchar_t* sDefaultFont) ;
// GeomDB
EIN_EXPORT int __stdcall EgtInitGeomDB( void) ;
EIN_EXPORT BOOL __stdcall EgtSetDefaultMaterial( int nGseCtx, int nRed, int nGreen, int nBlue) ;
EIN_EXPORT BOOL __stdcall EgtNewFile( int nGseCtx) ;
EIN_EXPORT BOOL __stdcall EgtOpenFile( int nGseCtx, const wchar_t* wsFilePath) ;
EIN_EXPORT BOOL __stdcall EgtSaveFile( int nGseCtx, const wchar_t* wsFilePath, int nFlag) ;
EIN_EXPORT int __stdcall EgtGetFileType( const wchar_t* wsFilePath) ;
EIN_EXPORT BOOL __stdcall EgtImportDxf( int nGseCtx, const wchar_t* wsFilePath) ;
EIN_EXPORT BOOL __stdcall EgtImportStl( int nGseCtx, const wchar_t* wsFilePath) ;
EIN_EXPORT BOOL __stdcall EgtExportDxf( int nGseCtx, int nId, const wchar_t* wsFilePath) ;
EIN_EXPORT BOOL __stdcall EgtExportStl( int nGseCtx, int nId, const wchar_t* wsFilePath) ;
// Scene
EIN_EXPORT BOOL __stdcall EgtInitScene( int nGseCtx, HWND hWnd, int nDriver, int b2Buff, int nColorBits, int nDepthBits) ;
EIN_EXPORT BOOL __stdcall EgtSetBackground( int nGseCtx, int nTopRed, int nTopGreen, int nTopBlue,
int nBottomRed, int nBottomGreen, int nBottomBlue) ;
EIN_EXPORT BOOL __stdcall EgtDraw( int nGseCtx) ;
EIN_EXPORT BOOL __stdcall EgtResize( int nGseCtx, int nW, int nH) ;
EIN_EXPORT BOOL __stdcall EgtSetShowMode( int nGseCtx, int nShowMode, BOOL bRedraw) ;
EIN_EXPORT BOOL __stdcall EgtSetShowCurveDirection( int nGseCtx, int nShow, BOOL bRedraw) ;
EIN_EXPORT BOOL __stdcall EgtZoom( int nGseCtx, int nZoom, BOOL bRedraw) ;
EIN_EXPORT BOOL __stdcall EgtZoomOnPoint( int nGseCtx, int nWinX, int nWinY, double dCoeff, BOOL bRedraw) ;
EIN_EXPORT BOOL __stdcall EgtSetWinRect( int nGseCtx, int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL bRedraw) ;
EIN_EXPORT BOOL __stdcall EgtResetWinRect( int nGseCtx, BOOL bRedraw) ;
EIN_EXPORT BOOL __stdcall EgtZoomWin( int nGseCtx, int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL bRedraw) ;
EIN_EXPORT BOOL __stdcall EgtSetView( int nGseCtx, int nView, BOOL bRedraw) ;
EIN_EXPORT BOOL __stdcall EgtPanCamera( int nGseCtx, int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL bRedraw) ;
EIN_EXPORT BOOL __stdcall EgtRotateCamera( int nGseCtx, int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL bRedraw) ;
EIN_EXPORT BOOL __stdcall EgtGetCameraDir( int nGseCtx, int* pnDir) ;
EIN_EXPORT BOOL __stdcall EgtUnProjectPoint( int nGseCtx, int nWinX, int nWinY, double ptP[3]) ;
// Tsc Executor
EIN_EXPORT BOOL __stdcall EgtInitTscExec( int nGseCtx) ;
EIN_EXPORT BOOL __stdcall EgtTscFileExec( int nGseCtx, const wchar_t* wsFilePath) ;
EIN_EXPORT BOOL __stdcall EgtTscLineExec( int nGseCtx, const wchar_t* wsLine) ;
// API di prova
EIN_EXPORT double __stdcall Summ( double dA, double dB) ;
EIN_EXPORT int __stdcall Summ2( double& dA, double dB) ;
EIN_EXPORT int __stdcall Append( const wchar_t* wsA, wchar_t*& wsB) ;
EIN_EXPORT int __stdcall FreeMemory( void* pMem) ;
EIN_EXPORT int __stdcall SetPoint( double ptP[3]) ;
EIN_EXPORT int __stdcall OutText( HWND hWnd, const wchar_t* wsA) ;
EIN_EXPORT int __stdcall DrawCross( HWND hWnd, int nX, int nY, int nDim) ;
#ifdef __cplusplus
}
#endif