Files
EgtInterface/API.h
T
Dario Sassi 4661bb7c66 EgtInterface 1.5k3 :
- esposte ulteriori funzionalità.
2014-11-21 17:46:17 +00:00

91 lines
5.0 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( const std::string& sFilePath) ;
bool __stdcall EgtSaveFile( const std::string& sFilePath, int nFlag) ;
//--------------------------- GeomDB Create ----------------------------------
int __stdcall EgtCreateCurveBezier( int nParentId, int nDegree, const PNTVECTOR& vPnt) ;
int __stdcall EgtCreateCurveBezierRational( int nParentId, int nDegree, const PNTUVECTOR& vPntW) ;
int __stdcall EgtCreateCurveCompo( int nParentId, const INTVECTOR& vIds, bool bErase) ;
int __stdcall EgtCreateCurveCompoByChain( int nParentId, const INTVECTOR& vIds, const Point3d& ptNear, bool bErase) ;
int __stdcall EgtCreateCurveCompoFromPoints( int nParentId, const PolyLine& PL) ;
int __stdcall EgtCreateCurveCompoFromPointBulges( int nParentId, const PolyArc& PA) ;
int __stdcall EgtCreateText( int nParentId, const std::string& sText,
const Point3d& ptP, double dAngRotDeg, double dH) ;
int __stdcall EgtCreateTextEx( 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 nId, const std::string& sNewText) ;
BOOL __stdcall EgtChangeTextFont( int nId, const std::string& sNewFont) ;
//--------------------------- GdbObjAttribs ----------------------------------
BOOL __stdcall EgtStdColor( const std::string& sName, Color& StdCol) ;
BOOL __stdcall EgtSetName( int nId, const std::string& sName) ;
BOOL __stdcall EgtGetName( int nId, std::string& sName) ;
bool __stdcall EgtSetInfo( int nId, const std::string& sKey, const std::string& sInfo) ;
bool __stdcall EgtSetInfo( int nId, const std::string& sKey, int nInfo) ;
bool __stdcall EgtGetInfo( int nId, const std::string& sKey, std::string& sInfo) ;
bool __stdcall EgtGetInfo( int nId, const std::string& sKey, int& nInfo) ;
BOOL __stdcall EgtExistsInfo( int nId, const std::string& sKey) ;
BOOL __stdcall EgtRemoveInfo( int nId, const std::string& sKey) ;
//--------------------------- GeoSnap ----------------------------------------
bool __stdcall EgtStartPoint( int nId, Point3d& ptP) ;
bool __stdcall EgtEndPoint( int nId, Point3d& ptP) ;
bool __stdcall EgtMidPoint( int nId, Point3d& ptP) ;
bool __stdcall EgtCenterPoint( int nId, Point3d& ptP) ;
bool __stdcall EgtAtParamPoint( int nId, double dU, Point3d& ptP) ;
bool __stdcall EgtIntersectionPoint( int nId1, int nId2, const Point3d& ptNear, Point3d& ptP) ;
bool __stdcall EgtStartVector( int nId, Vector3d& vtV) ;
bool __stdcall EgtEndVector( int nId, Vector3d& vtV) ;
bool __stdcall EgtMidVector( int nId, Vector3d& vtV) ;
bool __stdcall EgtAtParamVector( int nId, double dU, int nSide, Vector3d& vtV) ;
bool __stdcall EgtFrame( int nId, Frame3d& frFrame) ;
bool __stdcall EgtCurveExtrusion( int nId, Vector3d& vtExtr) ;
// EgtCurveThickness vedi EinAPI.h
bool __stdcall EgtCurveArcNormVersor( int nId, Vector3d& vtNorm) ;
bool __stdcall EgtExtTextNormVersor( int nId, Vector3d& vtNorm) ;
bool __stdcall EgtPointToIdGlob( Point3d& ptP, int nId) ;
bool __stdcall EgtPointToIdLoc( Point3d& ptP, int nId) ;
bool __stdcall EgtVectorToIdGlob( Vector3d& vtV, int nId) ;
bool __stdcall EgtVectorToIdLoc( Vector3d& vtV, int nId) ;
//--------------------------- Scene ------------------------------------------
BOOL __stdcall EgtSetBackground( Color TopCol, Color BottomCol, BOOL bRedraw) ;
BOOL __stdcall EgtSetMarkAttribs( Color MarkCol) ;
BOOL __stdcall EgtSetSelSurfAttribs( Color SelSurfCol) ;
BOOL __stdcall EgtSetGeoLineAttribs( Color GlCol) ;
BOOL __stdcall EgtSetWinRectAttribs( BOOL bOutline, Color WrCol) ;
//--------------------------- Exchange ---------------------------------------
int __stdcall EgtGetFileType( const std::string& sFilePath) ;
BOOL __stdcall EgtImportDxf( const std::string& sFilePath) ;
BOOL __stdcall EgtImportStl( const std::string& sFilePath) ;
BOOL __stdcall EgtImportCnc( const std::string& sFilePath) ;
BOOL __stdcall EgtExportDxf( int nId, const std::string& sFilePath) ;
BOOL __stdcall EgtExportStl( int nId, const std::string& sFilePath) ;