EgtGraphics 1.5d4 :

- aggiunto comando TSC ShowMode
- correzione a GetCamera.
This commit is contained in:
Dario Sassi
2014-04-15 14:22:27 +00:00
parent 4364e26928
commit 401b66cc0e
4 changed files with 26 additions and 5 deletions
+22 -2
View File
@@ -1,13 +1,13 @@
//----------------------------------------------------------------------------
// EgalTech 2013-2014
//----------------------------------------------------------------------------
// File : GraExecutor.cpp Data : 18.02.14 Versione : 1.5b3
// File : GraExecutor.cpp Data : 15.04.14 Versione : 1.5d4
// Contenuto : Implementazione della classe GraExecutor.
//
//
//
// Modifiche : 18.02.14 DS Creazione modulo.
//
// 15.04.14 DS Agg. ExecuteShowMode.
//
//----------------------------------------------------------------------------
@@ -41,6 +41,8 @@ SceExecutor::SceExecutor( void)
m_ExecMgr.Insert( "ZOOM", &SceExecutor::ExecuteZoom) ;
m_ExecMgr.Insert( "CENTER", &SceExecutor::ExecuteCenter) ;
m_ExecMgr.Insert( "CAMERA", &SceExecutor::ExecuteCamera) ;
m_ExecMgr.Insert( "SM", &SceExecutor::ExecuteShowMode) ;
m_ExecMgr.Insert( "SHOWMODE", &SceExecutor::ExecuteShowMode) ;
}
//----------------------------------------------------------------------------
@@ -176,6 +178,24 @@ SceExecutor::ExecuteCamera( const string& sCmd2, const STRVECTOR& vsParams)
// eseguo
m_pScene->SetCamera( dAngVertDeg, dAngOrizzDeg, 0) ;
}
else
return false ;
return true ;
}
//----------------------------------------------------------------------------
bool
SceExecutor::ExecuteShowMode( const string& sCmd2, const STRVECTOR& vsParams)
{
if ( sCmd2 == "WF" || sCmd2 == "WIREFRTAME")
m_pScene->SetShowMode( SM_WIREFRAME) ;
else if ( sCmd2 == "HL" || sCmd2 == "HIDDENLINE")
m_pScene->SetShowMode( SM_HIDDENLINE) ;
else if ( sCmd2 == "SH" || sCmd2 == "SHADING")
m_pScene->SetShowMode( SM_SHADING) ;
else
return false ;
return true ;
}