EgtInterface 1.5k3 :
- esposte ulteriori funzionalità.
This commit is contained in:
@@ -318,6 +318,32 @@ __stdcall EgtGetGridSnapPointZ( BOOL bSketch, int nWinX, int nWinY, const double
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
__stdcall EgtGetLastSnapId( void)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_SCENE( pGseCtx, FALSE)
|
||||
// restituisco Id di ultima entità generatrice di punto snap
|
||||
return pGseCtx->m_pScene->GetLastSnapId() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetLastSnapDir( double vtV[3])
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_SCENE( pGseCtx, FALSE)
|
||||
// restituisco, se definita, direzione associata ad ultimo punto di snap
|
||||
Vector3d vtDir ;
|
||||
if ( pGseCtx->m_pScene->GetLastSnapDir( vtDir)) {
|
||||
VEC_FROM_3D( vtV, vtDir)
|
||||
return TRUE ;
|
||||
}
|
||||
else
|
||||
return FALSE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetShowMode( int nShowMode, BOOL bRedraw)
|
||||
|
||||
Reference in New Issue
Block a user