EgtInterface 1.5i5 :

- aggiunto interprete Lua
- portate in interfaccia API molte funzioni di base.
This commit is contained in:
Dario Sassi
2014-10-07 07:04:28 +00:00
parent 6735c79753
commit 50b2d271ac
31 changed files with 5816 additions and 42 deletions
+53 -3
View File
@@ -28,8 +28,8 @@ BOOL
__stdcall EgtExistsObj( int nGseCtx, int nId)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero il primo oggetto nel gruppo
VERIFY_GEOMDB( pGeomDB, FALSE)
// verifico se esiste l'oggetto
return ( pGeomDB->ExistsObj( nId) ? TRUE : FALSE) ;
}
@@ -39,7 +39,7 @@ int
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero il primo oggetto nel gruppo
// recupero il numero di oggetti nel gruppo
return ( pGeomDB->GetGroupObjs( nId)) ;
}
@@ -83,6 +83,56 @@ __stdcall EgtGetPrev( int nGseCtx, int nId)
return pGeomDB->GetPrev( nId) ;
}
//-----------------------------------------------------------------------------
int
__stdcall EgtCopy( int nGseCtx, int nSouId, int nRefId, int nSonBeforeAfter)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// eseguo la copia
return pGeomDB->Copy( nSouId, GDB_ID_NULL, nRefId, nSonBeforeAfter) ;
}
//-----------------------------------------------------------------------------
int
__stdcall EgtCopyGlob( int nGseCtx, int nSouId, int nRefId, int nSonBeforeAfter)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// eseguo la copia mantenendo la posizione in globale
return pGeomDB->CopyGlob( nSouId, GDB_ID_NULL, nRefId, nSonBeforeAfter) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtRelocate( int nGseCtx, int nSouId, int nRefId, int nSonBeforeAfter)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// eseguo la rilocazione
return ( pGeomDB->Relocate( nSouId, nRefId, nSonBeforeAfter) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtRelocateGlob( int nGseCtx, int nSouId, int nRefId, int nSonBeforeAfter)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// eseguo la rilocazione mantenendo la posizione in globale
return ( pGeomDB->RelocateGlob( nSouId, nRefId, nSonBeforeAfter) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtErase( int nGseCtx, int nId)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// eseguo la cancellazione
return ( pGeomDB->Erase( nId) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
int
__stdcall EgtGetType( int nGseCtx, int nId)