c28d250749
- agg. gestione attributi per selezione superfici in shading - EgtSplitCurveCompo è diventata EgtSeparateCurveCompo - aggiunta EgtSplitCurveAtPoint - aggiunta EgtFrameFrom3Points
71 lines
3.8 KiB
C++
71 lines
3.8 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 EgtGetInfo( int nId, const std::string& sKey, std::string& sInfo) ;
|
|
BOOL __stdcall EgtExistsInfo( int nId, const std::string& sKey) ;
|
|
BOOL __stdcall EgtRemoveInfo( int nId, const std::string& sKey) ;
|
|
|
|
//--------------------------- GeoSnap ----------------------------------------
|
|
BOOL __stdcall EgtFrame( int nId, Frame3d& frFrame) ;
|
|
|
|
//--------------------------- 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) ;
|