Files
EgtInterface/API_GdbModify.cpp
T
Dario Sassi f5ca68e41b EgtInterface 1.6v4 :
- aggiunta interfaccia per EgtInvertVector
- EgtInvertCurve ora accetta un array di Id
- corretto parametro di ritorno di EgtDeleteContext da int a BOOL.
2016-10-18 18:40:38 +00:00

96 lines
3.0 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, const double ptOrig[3],
const double vtX[3], const double vtY[3], const 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 EgtInvertVector( int nNumId, const int nIds[])
{
INTVECTOR vIds ;
vIds.reserve( nNumId) ;
for ( int i = 0 ; i < nNumId ; ++i)
vIds.push_back( nIds[i]) ;
return ( ExeInvertVector( vIds) ? 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) ;
}