EgtInterface 1.6v4 :

- aggiunta interfaccia per EgtInvertVector
- EgtInvertCurve ora accetta un array di Id
- corretto parametro di ritorno di EgtDeleteContext da int a BOOL.
This commit is contained in:
Dario Sassi
2016-10-18 18:40:38 +00:00
parent 28dabdccc8
commit f5ca68e41b
5 changed files with 18 additions and 6 deletions
+1 -2
View File
@@ -212,9 +212,8 @@ __stdcall EgtCreateCurveCompo( int nParentId, int nNumId, const int nIds[], BOOL
{
INTVECTOR vIds ;
vIds.reserve( nNumId) ;
for ( int i = 0 ; i < nNumId ; ++i) {
for ( int i = 0 ; i < nNumId ; ++i)
vIds.push_back( nIds[i]) ;
}
return ExeCreateCurveCompo( nParentId, vIds, ( bErase != FALSE)) ;
}
+11
View File
@@ -41,6 +41,17 @@ __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)
+4 -2
View File
@@ -21,10 +21,12 @@ using namespace std ;
//----------------------------------------------------------------------------
BOOL
__stdcall EgtInvertCurve( int nId)
__stdcall EgtInvertCurve( int nNumId, const int nIds[])
{
INTVECTOR vIds ;
vIds.push_back( nId) ;
vIds.reserve( nNumId) ;
for ( int i = 0 ; i < nNumId ; ++i)
vIds.push_back( nIds[i]) ;
return ( ExeInvertCurve( vIds) ? TRUE : FALSE) ;
}
+2 -2
View File
@@ -28,10 +28,10 @@ __stdcall EgtInitContext( void)
}
//-----------------------------------------------------------------------------
int
BOOL
__stdcall EgtDeleteContext( int nGseCtx)
{
return ExeDeleteContext( nGseCtx) ;
return ( ExeDeleteContext( nGseCtx) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BIN
View File
Binary file not shown.