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:
@@ -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)) ;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
@@ -28,10 +28,10 @@ __stdcall EgtInitContext( void)
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
BOOL
|
||||
__stdcall EgtDeleteContext( int nGseCtx)
|
||||
{
|
||||
return ExeDeleteContext( nGseCtx) ;
|
||||
return ( ExeDeleteContext( nGseCtx) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user