EgtInterface 1.5j4 :

- ora si imposta un context corrente anche per le API come per LUA
- il context corrente di LUA coincide con quello delle API.
This commit is contained in:
Dario Sassi
2014-10-15 15:31:00 +00:00
parent 3b1e139286
commit 46c5fce044
29 changed files with 594 additions and 528 deletions
+8 -8
View File
@@ -25,9 +25,9 @@ using namespace std ;
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtIsSelectedObj( int nGseCtx, int nId)
__stdcall EgtIsSelectedObj( int nId)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// verifico se l'oggetto è selezionato
return ( pGeomDB->IsSelectedObj( nId) ? TRUE : FALSE) ;
@@ -35,9 +35,9 @@ BOOL
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSelectObj( int nGseCtx, int nId)
__stdcall EgtSelectObj( int nId)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// seleziono l'oggetto
return ( pGeomDB->SelectObj( nId) ? TRUE : FALSE) ;
@@ -45,9 +45,9 @@ BOOL
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtDeselectObj( int nGseCtx, int nId)
__stdcall EgtDeselectObj( int nId)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// deseleziono l'oggetto
return ( pGeomDB->DeselectObj( nId) ? TRUE : FALSE) ;
@@ -55,9 +55,9 @@ BOOL
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtDeselectAll( int nGseCtx)
__stdcall EgtDeselectAll( void)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// deseleziono tutto
return ( pGeomDB->ClearSelection() ? TRUE : FALSE) ;