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
+30 -30
View File
@@ -22,9 +22,9 @@ using namespace std ;
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtMove( int nGseCtx, int nId, double vVtMove[3])
__stdcall EgtMove( int nId, double vVtMove[3])
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo traslazione
return ( pGeomDB->Translate( nId, Vector3d( vVtMove)) ? TRUE : FALSE) ;
@@ -32,9 +32,9 @@ __stdcall EgtMove( int nGseCtx, int nId, double vVtMove[3])
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtMoveGlob( int nGseCtx, int nId, double vVtMove[3])
__stdcall EgtMoveGlob( int nId, double vVtMove[3])
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo traslazione
return ( pGeomDB->TranslateGlob( nId, Vector3d( vVtMove)) ? TRUE : FALSE) ;
@@ -42,9 +42,9 @@ __stdcall EgtMoveGlob( int nGseCtx, int nId, double vVtMove[3])
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtMoveGroup( int nGseCtx, int nId, double vVtMove[3])
__stdcall EgtMoveGroup( int nId, double vVtMove[3])
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo traslazione
return ( pGeomDB->TranslateGroup( nId, Vector3d( vVtMove)) ? TRUE : FALSE) ;
@@ -52,9 +52,9 @@ __stdcall EgtMoveGroup( int nGseCtx, int nId, double vVtMove[3])
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtRotate( int nGseCtx, int nId, double vPtAx[3], double vVtAx[3], double dAngRotDeg)
__stdcall EgtRotate( int nId, double vPtAx[3], double vVtAx[3], double dAngRotDeg)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo rotazione
return ( pGeomDB->Rotate( nId, Point3d( vPtAx), Vector3d( vVtAx), dAngRotDeg) ? TRUE : FALSE) ;
@@ -62,9 +62,9 @@ __stdcall EgtRotate( int nGseCtx, int nId, double vPtAx[3], double vVtAx[3], dou
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtRotateGlob( int nGseCtx, int nId, double vPtAx[3], double vVtAx[3], double dAngRotDeg)
__stdcall EgtRotateGlob( int nId, double vPtAx[3], double vVtAx[3], double dAngRotDeg)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo rotazione
return ( pGeomDB->RotateGlob( nId, Point3d( vPtAx), Vector3d( vVtAx), dAngRotDeg) ? TRUE : FALSE) ;
@@ -72,9 +72,9 @@ __stdcall EgtRotateGlob( int nGseCtx, int nId, double vPtAx[3], double vVtAx[3],
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtRotateGroup( int nGseCtx, int nId, double vPtAx[3], double vVtAx[3], double dAngRotDeg)
__stdcall EgtRotateGroup( int nId, double vPtAx[3], double vVtAx[3], double dAngRotDeg)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo rotazione
return ( pGeomDB->RotateGroup( nId, Point3d( vPtAx), Vector3d( vVtAx), dAngRotDeg) ? TRUE : FALSE) ;
@@ -82,11 +82,11 @@ __stdcall EgtRotateGroup( int nGseCtx, int nId, double vPtAx[3], double vVtAx[3]
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtScale( int nGseCtx, int nId, const double vOrig[3],
__stdcall EgtScale( int nId, const double vOrig[3],
const double vX[3], const double vY[3], const double vZ[3],
double dCoeffX, double dCoeffY, double dCoeffZ)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo rotazione
Frame3d frFrame ;
@@ -97,11 +97,11 @@ __stdcall EgtScale( int nGseCtx, int nId, const double vOrig[3],
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtScaleGlob( int nGseCtx, int nId, const double vOrig[3],
__stdcall EgtScaleGlob( int nId, const double vOrig[3],
const double vX[3], const double vY[3], const double vZ[3],
double dCoeffX, double dCoeffY, double dCoeffZ)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo rotazione
Frame3d frFrame ;
@@ -112,11 +112,11 @@ __stdcall EgtScaleGlob( int nGseCtx, int nId, const double vOrig[3],
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtScaleGroup( int nGseCtx, int nId, const double vOrig[3],
__stdcall EgtScaleGroup( int nId, const double vOrig[3],
const double vX[3], const double vY[3], const double vZ[3],
double dCoeffX, double dCoeffY, double dCoeffZ)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo rotazione
Frame3d frFrame ;
@@ -127,9 +127,9 @@ __stdcall EgtScaleGroup( int nGseCtx, int nId, const double vOrig[3],
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtMirror( int nGseCtx, int nId, const double vPnt[3], const double vN[3])
__stdcall EgtMirror( int nId, const double vPnt[3], const double vN[3])
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo specularità
return ( pGeomDB->Mirror( nId, Point3d( vPnt), Vector3d( vN)) ? TRUE : FALSE) ;
@@ -137,9 +137,9 @@ __stdcall EgtMirror( int nGseCtx, int nId, const double vPnt[3], const double vN
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtMirrorGlob( int nGseCtx, int nId, const double vPnt[3], const double vN[3])
__stdcall EgtMirrorGlob( int nId, const double vPnt[3], const double vN[3])
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo specularità
return ( pGeomDB->MirrorGlob( nId, Point3d( vPnt), Vector3d( vN)) ? TRUE : FALSE) ;
@@ -147,9 +147,9 @@ __stdcall EgtMirrorGlob( int nGseCtx, int nId, const double vPnt[3], const doubl
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtMirrorGroup( int nGseCtx, int nId, const double vPnt[3], const double vN[3])
__stdcall EgtMirrorGroup( int nId, const double vPnt[3], const double vN[3])
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo specularità
return ( pGeomDB->MirrorGroup( nId, Point3d( vPnt), Vector3d( vN)) ? TRUE : FALSE) ;
@@ -157,10 +157,10 @@ __stdcall EgtMirrorGroup( int nGseCtx, int nId, const double vPnt[3], const doub
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtShear( int nGseCtx, int nId, const double vPnt[3], const double vN[3],
__stdcall EgtShear( int nId, const double vPnt[3], const double vN[3],
const double vDir[3], double dCoeff)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo stiramento
return ( pGeomDB->Shear( nId, Point3d( vPnt), Vector3d( vN), Vector3d( vDir), dCoeff) ? TRUE : FALSE) ;
@@ -168,10 +168,10 @@ __stdcall EgtShear( int nGseCtx, int nId, const double vPnt[3], const double vN[
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtShearGlob( int nGseCtx, int nId, const double vPnt[3], const double vN[3],
__stdcall EgtShearGlob( int nId, const double vPnt[3], const double vN[3],
const double vDir[3], double dCoeff)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo stiramento
return ( pGeomDB->ShearGlob( nId, Point3d( vPnt), Vector3d( vN), Vector3d( vDir), dCoeff) ? TRUE : FALSE) ;
@@ -179,10 +179,10 @@ __stdcall EgtShearGlob( int nGseCtx, int nId, const double vPnt[3], const double
//-------------------------------------------------------------------------------
BOOL
__stdcall EgtShearGroup( int nGseCtx, int nId, const double vPnt[3], const double vN[3],
__stdcall EgtShearGroup( int nId, const double vPnt[3], const double vN[3],
const double vDir[3], double dCoeff)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// eseguo stiramento
return ( pGeomDB->ShearGroup( nId, Point3d( vPnt), Vector3d( vN), Vector3d( vDir), dCoeff) ? TRUE : FALSE) ;