04839b037b
- aggiornamenti per cambio nome include di base.
85 lines
2.6 KiB
C++
85 lines
2.6 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2014-2014
|
|
//----------------------------------------------------------------------------
|
|
// File : API_GdbModify.cpp Data : 06.10.14 Versione : 1.5i5
|
|
// Contenuto : Funzioni di modifica geometrica per API.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 06.10.14 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
//--------------------------- Include ----------------------------------------
|
|
#include "stdafx.h"
|
|
#include "API.h"
|
|
#include "/EgtDev/Include/EInAPI.h"
|
|
#include "/EgtDev/Include/EXeExecutor.h"
|
|
#include "/EgtDev/Include/EgtStringConverter.h"
|
|
|
|
using namespace std ;
|
|
|
|
//-------------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtChangeGroupFrame( int nId, double ptOrig[3],
|
|
double vtX[3], double vtY[3], double vtZ[3], int nRefType)
|
|
{
|
|
// costruisco il riferimento
|
|
Frame3d frFrame ;
|
|
if ( ! frFrame.Set( ptOrig, vtX, vtY, vtZ))
|
|
return FALSE ;
|
|
// eseguo
|
|
return ( ExeChangeGroupFrame( nId, frFrame, nRefType) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-------------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtChangeVectorBase( int nId, const double ptB[3], int nRefType)
|
|
{
|
|
return ( ExeChangeVectorBase( nId, ptB, nRefType) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-------------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtModifyText( int nId, const wchar_t* wsNewText)
|
|
{
|
|
return ( ExeModifyText( nId, wstrztoA( wsNewText)) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-------------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtChangeTextFont( int nId, const wchar_t* wsNewFont)
|
|
{
|
|
return ( ExeChangeTextFont( nId, wstrztoA( wsNewFont)) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-------------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtFlipText( int nId)
|
|
{
|
|
return ( ExeFlipText( nId) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-------------------------------------------------------------------------------
|
|
BOOL
|
|
__stdcall EgtMirrorText( int nId, BOOL bOnL)
|
|
{
|
|
return ( ExeMirrorText( nId, ( bOnL != FALSE)) ? TRUE : FALSE) ;
|
|
}
|
|
|
|
//-------------------------------------------------------------------------------
|
|
int
|
|
__stdcall EgtExplodeText( int nId, int* pnCount)
|
|
{
|
|
return ExeExplodeText( nId, pnCount) ;
|
|
}
|
|
|
|
//-------------------------------------------------------------------------------
|
|
int
|
|
__stdcall EgtSplitText( int nId, int* pnCount)
|
|
{
|
|
return ExeSplitText( nId, pnCount) ;
|
|
}
|