Files
EgtInterface/API.h
T
Dario Sassi 50b2d271ac EgtInterface 1.5i5 :
- aggiunto interprete Lua
- portate in interfaccia API molte funzioni di base.
2014-10-07 07:04:28 +00:00

63 lines
3.6 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2014-2014
//----------------------------------------------------------------------------
// File : API.h Data : 01.09.14 Versione : 1.5i1
// Contenuto : Dichiarazioni locali per moduli API.
//
//
//
// Modifiche : 01.09.14 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "GseContext.h"
#include "/EgtDev/Include/EGkGeoCollection.h"
#include "/EgtDev/Include/EGkPolyArc.h"
#include "/EgtDev/Include/EgtILogger.h"
//----------------------------------------------------------------------------
ILogger* GetLogger( void) ;
//--------------------------- GeomDB -----------------------------------------
BOOL __stdcall EgtOpenFile( int nGseCtx, const std::string& sFilePath) ;
BOOL __stdcall EgtSaveFile( int nGseCtx, const std::string& sFilePath, int nFlag) ;
//--------------------------- GeomDB Create ----------------------------------
int __stdcall EgtCreateCurveBezier( int nGseCtx, int nParentId, int nDegree, const PNTVECTOR& vPnt) ;
int __stdcall EgtCreateCurveBezierRational( int nGseCtx, int nParentId, int nDegree, const PNTUVECTOR& vPntW) ;
int __stdcall EgtCreateCurveCompo( int nGseCtx, int nParentId, const INTVECTOR& vIds, bool bErase) ;
int __stdcall EgtCreateCurveCompoFromPoints( int nGseCtx, int nParentId, const PolyLine& PL) ;
int __stdcall EgtCreateCurveCompoFromPointBulges( int nGseCtx, int nParentId, const PolyArc& PA) ;
int __stdcall EgtCreateText( int nGseCtx, int nParentId, const std::string& sText,
const Point3d& ptP, double dAngRotDeg, double dH) ;
int __stdcall EgtCreateTextEx( int nGseCtx, int nParentId, const std::string& sText,
const Point3d& ptP, double dAngRotDeg, const std::string& sFont,
int nW, bool bItalic, double dH, double dRat, double dAddAdv, int nInsPos) ;
//--------------------------- GdbModify --------------------------------------
BOOL __stdcall EgtModifyText( int nGseCtx, int nId, const std::string& sNewText) ;
BOOL __stdcall EgtChangeTextFont( int nGseCtx, int nId, const std::string& sNewFont) ;
//--------------------------- GdbObjAttribs ----------------------------------
BOOL __stdcall EgtStdColor( const std::string& sName, int& nRed, int& nGreen, int& nBlue, int& nAlpha) ;
BOOL __stdcall EgtSetName( int nGseCtx, int nId, const std::string& sName) ;
BOOL __stdcall EgtGetName( int nGseCtx, int nId, std::string& sName) ;
BOOL __stdcall EgtSetInfo( int nGseCtx, int nId, const std::string& sKey, const std::string& sInfo) ;
BOOL __stdcall EgtGetInfo( int nGseCtx, int nId, const std::string& sKey, std::string& sInfo) ;
BOOL __stdcall EgtExistsInfo( int nGseCtx, int nId, const std::string& sKey) ;
BOOL __stdcall EgtRemoveInfo( int nGseCtx, int nId, const std::string& sKey) ;
//--------------------------- GeoSnap ----------------------------------------
BOOL __stdcall EgtFrame( int nGseCtx, int nId, Frame3d& frFrame) ;
//--------------------------- Exchange ---------------------------------------
int __stdcall EgtGetFileType( const std::string& sFilePath) ;
BOOL __stdcall EgtImportDxf( int nGseCtx, const std::string& sFilePath) ;
BOOL __stdcall EgtImportStl( int nGseCtx, const std::string& sFilePath) ;
BOOL __stdcall EgtImportCnc( int nGseCtx, const std::string& sFilePath) ;
BOOL __stdcall EgtExportDxf( int nGseCtx, int nId, const std::string& sFilePath) ;
BOOL __stdcall EgtExportStl( int nGseCtx, int nId, const std::string& sFilePath) ;