00001 // GlobalState.h: Schnittstelle für die Klasse CGlobalState. 00002 // 00004 00005 #if !defined(AFX_GLOBALSTATE_H__5DEC4B52_5203_4082_BAAA_D49D89567835__INCLUDED_) 00006 #define AFX_GLOBALSTATE_H__5DEC4B52_5203_4082_BAAA_D49D89567835__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 #include "Data.h" 00013 #include "Camera.h" 00014 #include "SL_Base.h" 00015 #include "RenderMode.h" 00016 00017 class CSL_Base; 00018 00019 //class CESSL; 00023 class CGlobalState 00024 { 00025 public: 00026 CGlobalState(); 00027 virtual ~CGlobalState(); 00028 // Getters and Setters 00029 CString GetGridFile(); 00030 CString GetDataFile(); 00031 CFlowData* GetData(); 00032 void SetGridFile(CString filename); 00033 void SetDataFile(CString filename); 00034 00035 void SetDispalyMaxLength( float set) { DispalyMaxLength = set;}; 00036 float GetDispalyMaxLength() { return DispalyMaxLength;}; 00037 00038 // Load data from specified files 00039 bool LoadData(); 00040 00041 bool ViewDataNicest(); 00042 00043 00044 void SetGlyph_show(bool bSet) {Glyph_show = bSet;}; 00045 void SetGlyph_showBackground1(bool bSet) {Glyph_showBackground1 = bSet;}; 00046 void SetGlyph_showBackground2(bool bSet) {Glyph_showBackground2 = bSet;}; 00047 00048 bool GetGlyph_show() {return Glyph_show;}; 00049 bool GetGlyph_showBackground1() {return Glyph_showBackground1;}; 00050 bool GetGlyph_showBackground2() {return Glyph_showBackground2;}; 00051 00052 void SetGlyph_dynamicRedefine(bool bSet) {Glyph_dynamicRedefine=bSet;} 00053 bool GetGlyph_dynamicRedefine() {return Glyph_dynamicRedefine;} 00054 00055 CString GetStatusBarText() {return m_StatusBarText;}; 00056 void SetStatusBarText(CString SetText) {m_StatusBarText = SetText;}; 00057 void SetStatusBarTextAdd(CString SetText) {m_StatusBarText += SetText;}; 00058 void StatusBarRedraw(); 00059 00060 void SetStatusBarText_DrawMode(bool bSet){ m_StatusBarDrawEnable = bSet;}; 00061 bool GetStatusBarText_DrawMode(){return m_StatusBarDrawEnable;}; 00062 00063 void UpdateStreamlines(); 00064 // CESSL *essl; 00065 00066 00067 // camera to save viewpoint 00068 CCamera *cam; 00069 // name of the *.gri - file 00070 CString gridFile; 00071 // name of the *.dat - file 00072 CString dataFile; 00073 00074 // Streamline base class 00075 CSL_Base *StreamLineBase; 00076 00077 // dataclass for loading, destroying, resampling, ... 00078 CFlowData *data; 00079 00080 CRenderMode *rendermode; 00081 00082 00083 00084 private: 00085 00086 float DispalyMaxLength; 00087 00088 bool Glyph_show; 00089 bool Glyph_showBackground1; 00090 bool Glyph_showBackground2; 00091 bool Glyph_dynamicRedefine; 00092 00093 bool m_StatusBarDrawEnable; 00094 CString m_StatusBarText; 00095 00096 }; 00097 00098 #endif // !defined(AFX_GLOBALSTATE_H__5DEC4B52_5203_4082_BAAA_D49D89567835__INCLUDED_)