65ffe82e74
- modifiche per chiave di protezione.
117 lines
6.4 KiB
C
117 lines
6.4 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 EgtSetKey( const wchar_t* sKey) ;
|
|
EIN_EXPORT BOOL __stdcall EgtSetFont( const wchar_t* sNfeFontDir, const wchar_t* sDefaultFont) ;
|
|
EIN_EXPORT BOOL __stdcall EgtFreeMemory( void* pMem) ;
|
|
|
|
// 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) ;
|
|
|
|
// GeomDB Objects
|
|
EIN_EXPORT BOOL __stdcall EgtExistsObj( int nGseCtx, int nId) ;
|
|
EIN_EXPORT int __stdcall EgtGetFirstInGroup( int nGseCtx, int nGroupId) ;
|
|
EIN_EXPORT int __stdcall EgtGetNext( int nGseCtx, int nId) ;
|
|
EIN_EXPORT int __stdcall EgtGetLastInGroup( int nGseCtx, int nGroupId) ;
|
|
EIN_EXPORT int __stdcall EgtGetPrev( int nGseCtx, int nId) ;
|
|
EIN_EXPORT int __stdcall EgtGetType( int nGseCtx, int nId) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetTitle( int nGseCtx, int nId, wchar_t*& wsTitle) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGroupDump( int nGseCtx, int nId, wchar_t*& wsDump) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGeoObjDump( int nGseCtx, int nId, wchar_t*& wsDump) ;
|
|
|
|
// GeomDB Obj Attributes
|
|
EIN_EXPORT BOOL __stdcall EgtSetLevel( int nGseCtx, int nId, int nLevel) ;
|
|
EIN_EXPORT BOOL __stdcall EgtRevertLevel( int nGseCtx, int nId) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetLevel( int nGseCtx, int nId, int* pnLevel) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetCalcLevel( int nGseCtx, int nId, int* pnLevel) ;
|
|
EIN_EXPORT BOOL __stdcall EgtSetMode( int nGseCtx, int nId, int nMode) ;
|
|
EIN_EXPORT BOOL __stdcall EgtRevertMode( int nGseCtx, int nId) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetMode( int nGseCtx, int nId, int* pnMode) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetCalcMode( int nGseCtx, int nId, int* pnMode) ;
|
|
EIN_EXPORT BOOL __stdcall EgtSetStatus( int nGseCtx, int nId, int nStat) ;
|
|
EIN_EXPORT BOOL __stdcall EgtRevertStatus( int nGseCtx, int nId) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetStatus( int nGseCtx, int nId, int* pnStat) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetCalcStatus( int nGseCtx, int nId, int* pnStat) ;
|
|
EIN_EXPORT BOOL __stdcall EgtSetMark( int nGseCtx, int nId) ;
|
|
EIN_EXPORT BOOL __stdcall EgtResetMark( int nGseCtx, int nId) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetMark( int nGseCtx, int nId, BOOL* pnMark) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetCalcMark( int nGseCtx, int nId, BOOL* pnMark) ;
|
|
EIN_EXPORT BOOL __stdcall EgtSetName( int nGseCtx, int nId, const wchar_t* wsName) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetName( int nGseCtx, int nId, wchar_t*& wsName) ;
|
|
EIN_EXPORT BOOL __stdcall EgtExistsName( int nGseCtx, int nId) ;
|
|
EIN_EXPORT BOOL __stdcall EgtRemoveName( int nGseCtx, int nId) ;
|
|
EIN_EXPORT BOOL __stdcall EgtSetInfo( int nGseCtx, int nId, const wchar_t* wsKey, const wchar_t* wsInfo) ;
|
|
EIN_EXPORT BOOL __stdcall EgtGetInfo( int nGseCtx, int nId, const wchar_t* wsKey, wchar_t*& wsInfo) ;
|
|
EIN_EXPORT BOOL __stdcall EgtExistsInfo( int nGseCtx, int nId, const wchar_t* wsKey) ;
|
|
EIN_EXPORT BOOL __stdcall EgtRemoveInfo( int nGseCtx, int nId, const wchar_t* wsKey) ;
|
|
|
|
// 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, BOOL bRedraw) ;
|
|
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) ;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|