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:
+22
-22
@@ -24,9 +24,9 @@
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtStartPoint( int nGseCtx, int nId, double ptP[3])
|
||||
__stdcall EgtStartPoint( int nId, double ptP[3])
|
||||
{
|
||||
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// se non è entità geometrica
|
||||
const IGeoObj* pGObj ;
|
||||
@@ -96,9 +96,9 @@ __stdcall EgtStartPoint( int nGseCtx, int nId, double ptP[3])
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtEndPoint( int nGseCtx, int nId, double ptP[3])
|
||||
__stdcall EgtEndPoint( int nId, double ptP[3])
|
||||
{
|
||||
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// se non è entità geometrica
|
||||
const IGeoObj* pGObj ;
|
||||
@@ -135,9 +135,9 @@ __stdcall EgtEndPoint( int nGseCtx, int nId, double ptP[3])
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtMidPoint( int nGseCtx, int nId, double ptP[3])
|
||||
__stdcall EgtMidPoint( int nId, double ptP[3])
|
||||
{
|
||||
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// se non è entità geometrica
|
||||
const IGeoObj* pGObj ;
|
||||
@@ -174,9 +174,9 @@ __stdcall EgtMidPoint( int nGseCtx, int nId, double ptP[3])
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtCenterPoint( int nGseCtx, int nId, double ptP[3])
|
||||
__stdcall EgtCenterPoint( int nId, double ptP[3])
|
||||
{
|
||||
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// se non è entità geometrica
|
||||
const IGeoObj* pGObj ;
|
||||
@@ -213,9 +213,9 @@ __stdcall EgtCenterPoint( int nGseCtx, int nId, double ptP[3])
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtAtParamPoint( int nGseCtx, int nId, double dU, double ptP[3])
|
||||
__stdcall EgtAtParamPoint( int nId, double dU, double ptP[3])
|
||||
{
|
||||
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// se non è entità geometrica
|
||||
const IGeoObj* pGObj ;
|
||||
@@ -239,9 +239,9 @@ __stdcall EgtAtParamPoint( int nGseCtx, int nId, double dU, double ptP[3])
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtStartVector( int nGseCtx, int nId, double vtV[3])
|
||||
__stdcall EgtStartVector( int nId, double vtV[3])
|
||||
{
|
||||
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// se non è entità geometrica
|
||||
const IGeoObj* pGObj ;
|
||||
@@ -276,9 +276,9 @@ __stdcall EgtStartVector( int nGseCtx, int nId, double vtV[3])
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtEndVector( int nGseCtx, int nId, double vtV[3])
|
||||
__stdcall EgtEndVector( int nId, double vtV[3])
|
||||
{
|
||||
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// se non è entità geometrica
|
||||
const IGeoObj* pGObj ;
|
||||
@@ -302,9 +302,9 @@ __stdcall EgtEndVector( int nGseCtx, int nId, double vtV[3])
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtMidVector( int nGseCtx, int nId, double vtV[3])
|
||||
__stdcall EgtMidVector( int nId, double vtV[3])
|
||||
{
|
||||
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// se non è entità geometrica
|
||||
const IGeoObj* pGObj ;
|
||||
@@ -328,9 +328,9 @@ __stdcall EgtMidVector( int nGseCtx, int nId, double vtV[3])
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtAtParamVector( int nGseCtx, int nId, double dU, int nSide, double vtV[3])
|
||||
__stdcall EgtAtParamVector( int nId, double dU, int nSide, double vtV[3])
|
||||
{
|
||||
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// se non è entità geometrica
|
||||
const IGeoObj* pGObj ;
|
||||
@@ -360,11 +360,11 @@ __stdcall EgtAtParamVector( int nGseCtx, int nId, double dU, int nSide, double v
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtFrame( int nGseCtx, int nId, double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3])
|
||||
__stdcall EgtFrame( int nId, double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3])
|
||||
{
|
||||
// recupero il frame
|
||||
Frame3d frFrame ;
|
||||
if ( ! EgtFrame( nGseCtx, nId, frFrame))
|
||||
if ( ! EgtFrame( nId, frFrame))
|
||||
return FALSE ;
|
||||
// assegno l'origine
|
||||
ptOrig[0] = frFrame.Orig().x ;
|
||||
@@ -387,9 +387,9 @@ __stdcall EgtFrame( int nGseCtx, int nId, double ptOrig[3], double vtX[3], doubl
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtFrame( int nGseCtx, int nId, Frame3d& frFrame)
|
||||
__stdcall EgtFrame( int nId, Frame3d& frFrame)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// se gruppo
|
||||
if ( pGeomDB->GetGroupFrame( nId, frFrame))
|
||||
|
||||
Reference in New Issue
Block a user