EgtInterface 1.6b3 :
- aggiunta gestione messaggi da file per le diverse lingue - aggiunta gestione visualizzazione avanzata di triangoli si SurfTM - aggiunta creazione poligoni regolari da raggio e da apotema - cambiato nome di alcune funzioni di scena per gestire punto di vista.
This commit is contained in:
+42
-6
@@ -423,6 +423,29 @@ __stdcall EgtGetShowCurveDirection( void)
|
||||
return pGseCtx->m_pScene->GetShowCurveDirection() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetShowTriaAdv( BOOL bAdvanced, BOOL bRedraw)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_SCENE( pGseCtx, FALSE)
|
||||
// imposto stato
|
||||
pGseCtx->m_pScene->SetShowTriaAdvanced( bAdvanced != FALSE) ;
|
||||
if ( bRedraw)
|
||||
pGseCtx->m_pScene->RedrawWindow() ;
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetShowTriaAdv( void)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_SCENE( pGseCtx, FALSE)
|
||||
// recupero lo stato
|
||||
return pGseCtx->m_pScene->GetShowTriaAdvanced() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtZoom( int nZoom, BOOL bRedraw)
|
||||
@@ -563,13 +586,13 @@ __stdcall EgtZoomWin( int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL bRedr
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetView( int nView, BOOL bRedraw)
|
||||
__stdcall EgtSetView( int nDir, BOOL bRedraw)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_SCENE( pGseCtx, FALSE)
|
||||
// imposto vista
|
||||
if ( nView >= CT_TOP && nView <= CT_CPLANE) {
|
||||
pGseCtx->m_pScene->SetCamera( nView) ;
|
||||
if ( nDir >= CT_TOP && nDir <= CT_CPLANE) {
|
||||
pGseCtx->m_pScene->SetCamera( nDir) ;
|
||||
if ( bRedraw)
|
||||
pGseCtx->m_pScene->RedrawWindow() ;
|
||||
return TRUE ;
|
||||
@@ -606,7 +629,7 @@ __stdcall EgtSetViewCenter( const double ptP[3], BOOL bRedraw)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtPanCamera( int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL bRedraw)
|
||||
__stdcall EgtPanView( int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL bRedraw)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_SCENE( pGseCtx, FALSE)
|
||||
@@ -619,7 +642,7 @@ __stdcall EgtPanCamera( int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL bRe
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtRotateCamera( int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL bRedraw)
|
||||
__stdcall EgtRotateView( int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL bRedraw)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_SCENE( pGseCtx, FALSE)
|
||||
@@ -632,7 +655,7 @@ __stdcall EgtRotateCamera( int nPrevX, int nPrevY, int nCurrX, int nCurrY, BOOL
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetCameraDir( int* pnDir)
|
||||
__stdcall EgtGetView( int* pnDir)
|
||||
{
|
||||
IEGrScene* pScene = GetCurrScene() ;
|
||||
VERIFY_SCENE( pScene, FALSE)
|
||||
@@ -643,6 +666,19 @@ __stdcall EgtGetCameraDir( int* pnDir)
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetGenericView( double* pdAngVertDeg, double* pdAngHorizDeg)
|
||||
{
|
||||
IEGrScene* pScene = GetCurrScene() ;
|
||||
VERIFY_SCENE( pScene, FALSE)
|
||||
// recupero direzione di vista
|
||||
if ( pdAngVertDeg == nullptr || pdAngHorizDeg == nullptr)
|
||||
return FALSE ;
|
||||
pScene->GetCamera( pdAngVertDeg, pdAngHorizDeg) ;
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtProjectPoint( const double ptP[3], double ptWin[3])
|
||||
|
||||
Reference in New Issue
Block a user