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
+20 -20
View File
@@ -24,9 +24,9 @@
//----------------------------------------------------------------------------
BOOL
__stdcall EgtInvertCurve( int nGseCtx, int nId)
__stdcall EgtInvertCurve( int nId)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero la curva
ICurve* pCurve = GetCurve( pGeomDB->GetGeoObj( nId)) ;
@@ -38,9 +38,9 @@ __stdcall EgtInvertCurve( int nGseCtx, int nId)
//----------------------------------------------------------------------------
BOOL
__stdcall EgtModifyCurveStartPoint( int nGseCtx, int nId, const double ptP[3])
__stdcall EgtModifyCurveStartPoint( int nId, const double ptP[3])
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero la curva
ICurve* pCurve = GetCurve( pGeomDB->GetGeoObj( nId)) ;
@@ -52,9 +52,9 @@ __stdcall EgtModifyCurveStartPoint( int nGseCtx, int nId, const double ptP[3])
//----------------------------------------------------------------------------
BOOL
__stdcall EgtModifyCurveEndPoint( int nGseCtx, int nId, const double ptP[3])
__stdcall EgtModifyCurveEndPoint( int nId, const double ptP[3])
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero la curva
ICurve* pCurve = GetCurve( pGeomDB->GetGeoObj( nId)) ;
@@ -66,9 +66,9 @@ __stdcall EgtModifyCurveEndPoint( int nGseCtx, int nId, const double ptP[3])
//----------------------------------------------------------------------------
BOOL
__stdcall EgtModifyCurveExtrusion( int nGseCtx, int nId, const double vtExtr[3])
__stdcall EgtModifyCurveExtrusion( int nId, const double vtExtr[3])
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero la curva
ICurve* pCurve = GetCurve( pGeomDB->GetGeoObj( nId)) ;
@@ -80,9 +80,9 @@ __stdcall EgtModifyCurveExtrusion( int nGseCtx, int nId, const double vtExtr[3])
//----------------------------------------------------------------------------
BOOL
__stdcall EgtModifyCurveThickness( int nGseCtx, int nId, double dThick)
__stdcall EgtModifyCurveThickness( int nId, double dThick)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero la curva
ICurve* pCurve = GetCurve( pGeomDB->GetGeoObj( nId)) ;
@@ -94,9 +94,9 @@ __stdcall EgtModifyCurveThickness( int nGseCtx, int nId, double dThick)
//----------------------------------------------------------------------------
BOOL
__stdcall EgtTrimCurveStartAtLen( int nGseCtx, int nId, double dLen)
__stdcall EgtTrimCurveStartAtLen( int nId, double dLen)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero la curva
ICurve* pCurve = GetCurve( pGeomDB->GetGeoObj( nId)) ;
@@ -108,9 +108,9 @@ __stdcall EgtTrimCurveStartAtLen( int nGseCtx, int nId, double dLen)
//----------------------------------------------------------------------------
BOOL
__stdcall EgtTrimCurveEndAtLen( int nGseCtx, int nId, double dLen)
__stdcall EgtTrimCurveEndAtLen( int nId, double dLen)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero la curva
ICurve* pCurve = GetCurve( pGeomDB->GetGeoObj( nId)) ;
@@ -122,9 +122,9 @@ __stdcall EgtTrimCurveEndAtLen( int nGseCtx, int nId, double dLen)
//----------------------------------------------------------------------------
BOOL
__stdcall EgtTrimCurveStartAtParam( int nGseCtx, int nId, double dPar)
__stdcall EgtTrimCurveStartAtParam( int nId, double dPar)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero la curva
ICurve* pCurve = GetCurve( pGeomDB->GetGeoObj( nId)) ;
@@ -136,9 +136,9 @@ __stdcall EgtTrimCurveStartAtParam( int nGseCtx, int nId, double dPar)
//----------------------------------------------------------------------------
BOOL
__stdcall EgtTrimCurveEndAtParam( int nGseCtx, int nId, double dPar)
__stdcall EgtTrimCurveEndAtParam( int nId, double dPar)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero la curva
ICurve* pCurve = GetCurve( pGeomDB->GetGeoObj( nId)) ;
@@ -150,9 +150,9 @@ __stdcall EgtTrimCurveEndAtParam( int nGseCtx, int nId, double dPar)
//----------------------------------------------------------------------------
BOOL
__stdcall EgtTrimCurveStartEndAtParam( int nGseCtx, int nId, double dParS, double dParE)
__stdcall EgtTrimCurveStartEndAtParam( int nId, double dParS, double dParE)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
// recupero la curva
ICurve* pCurve = GetCurve( pGeomDB->GetGeoObj( nId)) ;