ffc8d4e51e
- aggiornata interfaccia di Scene - aggiunte interfacce per EgtInterface.
73 lines
3.2 KiB
C
73 lines
3.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
|
|
EIN_EXPORT int __stdcall EgtSetLog( int nDebug, const wchar_t* sLogFile) ;
|
|
EIN_EXPORT int __stdcall EgtSetFont( const wchar_t* sNfeFontDir, const wchar_t* sDefaultFont) ;
|
|
EIN_EXPORT int __stdcall EgtInit( HWND hWnd, int nDriver, int b2Buff, int nColorBits, int nDepthBits) ;
|
|
EIN_EXPORT int __stdcall EgtExit( void) ;
|
|
EIN_EXPORT int __stdcall EgtSetDefaultMaterial( int nRed, int nGreen, int nBlue) ;
|
|
EIN_EXPORT int __stdcall EgtSetBackground( int nTopRed, int nTopGreen, int nTopBlue,
|
|
int nBottomRed, int nBottomGreen, int nBottomBlue) ;
|
|
EIN_EXPORT int __stdcall EgtNewFile( void) ;
|
|
EIN_EXPORT int __stdcall EgtOpenFile( const wchar_t* sFilePath) ;
|
|
EIN_EXPORT int __stdcall EgtTestImportExt( const wchar_t* sFilePath) ;
|
|
EIN_EXPORT int __stdcall EgtImportDxf( const wchar_t* sFilePath) ;
|
|
EIN_EXPORT int __stdcall EgtImportStl( const wchar_t* sFilePath) ;
|
|
EIN_EXPORT int __stdcall EgtDraw( void) ;
|
|
EIN_EXPORT int __stdcall EgtResize( int nW, int nH) ;
|
|
EIN_EXPORT int __stdcall EgtSetShowMode( int nShowMode) ;
|
|
EIN_EXPORT int __stdcall EgtSetShowCurveDirection( int nShow) ;
|
|
EIN_EXPORT int __stdcall EgtZoom( int nZoom) ;
|
|
EIN_EXPORT int __stdcall EgtZoomOnPoint( int nWinX, int nWinY, double dCoeff) ;
|
|
EIN_EXPORT int __stdcall EgtSetWinRect( int nPrevX, int nPrevY, int nCurrX, int nCurrY) ;
|
|
EIN_EXPORT int __stdcall EgtResetWinRect( void) ;
|
|
EIN_EXPORT int __stdcall EgtZoomWin( int nPrevX, int nPrevY, int nCurrX, int nCurrY) ;
|
|
EIN_EXPORT int __stdcall EgtSetView( int nView) ;
|
|
EIN_EXPORT int __stdcall EgtPanCamera( int nPrevX, int nPrevY, int nCurrX, int nCurrY) ;
|
|
EIN_EXPORT int __stdcall EgtRotateCamera( int nPrevX, int nPrevY, int nCurrX, int nCurrY) ;
|
|
EIN_EXPORT int __stdcall EgtGetCameraDir( int* pnDir) ;
|
|
EIN_EXPORT int __stdcall EgtUnProject( int nWinX, int nWinY, double ptP[3]) ;
|
|
|
|
|
|
// 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
|
|
|