7 #include "SrcProperty.h"
10 #include <OpenThreads/Thread>
11 #include <OpenThreads/Mutex>
12 #include <osg/FrameStamp>
34 virtual void OnDraw(CDC* pdc,
const CRect& rcBounds,
const CRect& rcInvalid);
35 virtual void DoPropExchange(CPropExchange* pPX);
36 virtual void OnResetState();
37 virtual BOOL OnSetExtent(LPSIZEL lpSizeL);
52 DECLARE_DISPATCH_MAP()
54 afx_msg
void AboutBox();
56 bool SetupGLContext(
void);
65 dispidContextMenu = 22,
70 dispidFullscreen = 16,
73 dispidTerrainPaths = 13,
74 dispidTerrainFile = 12,
79 void frame(CDC *pdc = NULL);
80 void resize(
const long w,
const long h);
81 bool rendering() {
return _rendering; }
84 bool LoadTerrain(
const char *terrain_file);
85 void Cleanup3DScene();
86 void AddTerrainPaths(
const CString &terr_paths);
88 void PrepareToRender(HDC dc);
91 void OnProgress(
int pos) { m_Progress.SetPos(pos); }
106 bool m_bKeyState[512];
108 CProgressCtrl m_Progress;
111 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
112 afx_msg
void OnDestroy();
113 afx_msg
void OnSize(UINT nType,
int cx,
int cy);
114 afx_msg
void OnPaint();
115 afx_msg
void OnContextMenu(CWnd* , CPoint );
116 afx_msg
void OnTimer(UINT_PTR nIDEvent);
117 virtual BOOL OnIdle(LONG lCount);
120 void OnClearColorChanged(
void);
121 OLE_COLOR m_ClearColor;
122 void OnStereoChanged(
void);
124 void OnScreenChanged(
void);
126 BSTR GetTerrainFile(
void);
127 void SetTerrainFile(LPCTSTR newVal);
128 CString m_TerrainFile;
130 BSTR GetTerrainPaths(
void);
131 void SetTerrainPaths(LPCTSTR newVal);
132 CString m_TerrainPaths;
135 void SetSrc(LPCTSTR newVal);
138 BSTR GetLocalSrc(
void);
139 void SetLocalSrc(LPCTSTR newVal);
142 void OnFullscreenChanged(
void);
144 void OnPositionChanged(
void);
149 afx_msg
void OnShowWindow(BOOL bShow, UINT nStatus);
151 void OnNavSpeedChanged(
void);
153 void JumpToNo(LONG vp);
155 void OnContextMenuChanged(
void);
158 afx_msg
void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
159 afx_msg
void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
160 afx_msg
void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);