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