From 3b79e9190be6e1c2be0359c9670708212814d4f2 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 30 Dec 2019 19:04:34 +0000 Subject: [PATCH] EgtInterface : - aggiunta interfaccia per EgtCreateHorizontalDimension, EgtCreateVerticalDimension e EgtCreateAlignedDimension. --- API_GdbCreate.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/API_GdbCreate.cpp b/API_GdbCreate.cpp index dfe7c28..9de5b15 100644 --- a/API_GdbCreate.cpp +++ b/API_GdbCreate.cpp @@ -83,4 +83,28 @@ __stdcall EgtCreateTextAdv( int nParentId, const double ptP[3], double dAngRotDe wstrztoA( wsText), wstrztoA( wsFont), nW, ( bItalic != FALSE), dH, dRat, dAddAdv, nInsPos, nRefType) ; } + +//------------------------------------------------------------------------------- +int +__stdcall EgtCreateHorizontalDimension( int nParentId, const double ptP1[3], const double ptP2[3], + const double ptDim[3], const wchar_t* wsText, int nRefType) +{ + return ExeCreateHorizontalDimension( nParentId, ptP1, ptP2, ptDim, wstrztoA( wsText), nRefType) ; +} + +//------------------------------------------------------------------------------- +int +__stdcall EgtCreateVerticalDimension( int nParentId, const double ptP1[3], const double ptP2[3], + const double ptDim[3], const wchar_t* wsText, int nRefType) +{ + return ExeCreateVerticalDimension( nParentId, ptP1, ptP2, ptDim, wstrztoA( wsText), nRefType) ; +} + +//------------------------------------------------------------------------------- +int +__stdcall EgtCreateAlignedDimension( int nParentId, const double ptP1[3], const double ptP2[3], + const double ptDim[3], const wchar_t* wsText, int nRefType) +{ + return ExeCreateAlignedDimension( nParentId, ptP1, ptP2, ptDim, wstrztoA( wsText), nRefType) ; +}