Main Page   Compound List   File List   Compound Members  

FlowVizView.h

00001 // FlowVizView.h : interface of the CFlowVizView class
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 //make m_cellgrid global
00017 //extern CellGrid m_cellgrid;
00018 
00019 //make m_data global
00020 //extern Data m_data;
00021 
00022 
00023 class CFlowVizView : public CView
00024 {
00025 protected: // create from serialization only
00026         CFlowVizView();
00027         DECLARE_DYNCREATE(CFlowVizView)
00028 
00029 // Attributes
00030 public:
00031         CFlowVizDoc* GetDocument();
00032 
00033         Vektor2f m_WindowExtent;
00034 
00035         bool m_ControlPointLocked;
00036         CPoint m_LastMousePos;
00037 
00038 
00039 // Operations
00040 public:
00041 
00042         HGLRC m_hRC; //Rendering Context
00043         CDC* m_pDC;  //Device Context
00044   
00045         BOOL InitializeOpenGL();
00046   
00047         BOOL SetupPixelFormat();
00048 
00049         void RenderScene();
00050 
00051 
00052 // Overrides
00053         // ClassWizard generated virtual function overrides
00054         //{{AFX_VIRTUAL(CFlowVizView)
00055         public:
00056         virtual void OnDraw(CDC* pDC);  // overridden to draw this view
00057         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00058         protected:
00059         //}}AFX_VIRTUAL
00060 
00061 // Implementation
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 // Generated message map functions
00072 protected:
00073         //{{AFX_MSG(CFlowVizView)
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         //}}AFX_MSG
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 //{{AFX_INSERT_LOCATION}}
00103 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00104 
00105 #endif // !defined(AFX_FLOWVIZVIEW_H__7A747DDC_0C52_470C_AA1E_045637ABD60A__INCLUDED_)

Generated on Tue Jan 22 19:13:37 2002 for FlowViz by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001