//---------------------------------------------------------------------------- // EgalTech 2014-2014 //---------------------------------------------------------------------------- // File : TestEGrUtils.cpp Data : 17.02.14 Versione : 1.5b3 // Contenuto : Implementazione funzioni di utilità // // // // Modifiche : 17.02.14 DS Creazione modulo. // // //---------------------------------------------------------------------------- //--------------------------- Include ---------------------------------------- #include "stdafx.h" #include "TestEGrUtils.h" #include "TestEGrDlg.h" using namespace std ; //---------------------------------------------------------------------------- #ifdef _DEBUG #define new DEBUG_NEW #endif //---------------------------------------------------------------------------- void OutInfo( const string& sOut, bool bLog) { ((CTestEGrDlg*)AfxGetMainWnd())->OutInfo( sOut, bLog) ; } //---------------------------------------------------------------------------- bool GetSceneInfo( string& sInfo) { return ((CTestEGrDlg*)AfxGetMainWnd())->GetSceneInfo( sInfo) ; } //---------------------------------------------------------------------------- bool LineExec( const string& sLine) { return ((CTestEGrDlg*)AfxGetMainWnd())->LineExec( sLine) ; } //---------------------------------------------------------------------------- void UpdateButtons( void) { ((CTestEGrDlg*)AfxGetMainWnd())->UpdateShowModeButtons() ; ((CTestEGrDlg*)AfxGetMainWnd())->UpdateShowCurveDir() ; ((CTestEGrDlg*)AfxGetMainWnd())->UpdateViewButtons() ; } //---------------------------------------------------------------------------- bool SelectIdInGeomDbTree( int nId) { return ((CTestEGrDlg*)AfxGetMainWnd())->SelectIdInTree( nId) ; }