00001
00002
00004
00005 #if !defined(AFX_FLOWVIZVIEW_H__7A747DDC_0C52_470C_AA1E_045637ABD60A__INCLUDED_)
00006 #define AFX_FLOWVIZVIEW_H__7A747DDC_0C52_470C_AA1E_045637ABD60A__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #include "MyMathUtils.h"
00013 #include "Data.h"
00014 #include "CellGrid.h"
00015
00016
00017
00018
00019
00020
00021
00022
00023 class CFlowVizView : public CView
00024 {
00025 protected:
00026 CFlowVizView();
00027 DECLARE_DYNCREATE(CFlowVizView)
00028
00029
00030 public:
00031 CFlowVizDoc* GetDocument();
00032
00033 Vektor2f m_WindowExtent;
00034
00035 bool m_ControlPointLocked;
00036 CPoint m_LastMousePos;
00037
00038
00039
00040 public:
00041
00042 HGLRC m_hRC;
00043 CDC* m_pDC;
00044
00045 BOOL InitializeOpenGL();
00046
00047 BOOL SetupPixelFormat();
00048
00049 void RenderScene();
00050
00051
00052
00053
00054
00055 public:
00056 virtual void OnDraw(CDC* pDC);
00057 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00058 protected:
00059
00060
00061
00062 public:
00063 virtual ~CFlowVizView();
00064 #ifdef _DEBUG
00065 virtual void AssertValid() const;
00066 virtual void Dump(CDumpContext& dc) const;
00067 #endif
00068
00069 protected:
00070
00071
00072 protected:
00073
00074 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00075 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00076 afx_msg void OnSize(UINT nType, int cx, int cy);
00077 afx_msg void OnDestroy();
00078 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00079 afx_msg void OnDeltaposdsep(NMHDR* pNMHDR, LRESULT* pResult);
00080 afx_msg void OnDeltaposdtest(NMHDR* pNMHDR, LRESULT* pResult);
00081 afx_msg void OnRadio1();
00082 afx_msg void OnRadio2();
00083 afx_msg void OnRadio3();
00084 afx_msg void OnRadio4();
00085 afx_msg void OnRadio5();
00086 afx_msg void OnRadio6();
00087 afx_msg void OnButton1();
00088 afx_msg void OnRadio7();
00089 afx_msg void OnRadio8();
00090 afx_msg void OnCheck1();
00091
00092 DECLARE_MESSAGE_MAP()
00093 };
00094
00095 #ifndef _DEBUG // debug version in FlowVizView.cpp
00096 inline CFlowVizDoc* CFlowVizView::GetDocument()
00097 { return (CFlowVizDoc*)m_pDocument; }
00098 #endif
00099
00101
00102
00103
00104
00105 #endif // !defined(AFX_FLOWVIZVIEW_H__7A747DDC_0C52_470C_AA1E_045637ABD60A__INCLUDED_)