Main Page   Compound List   File List   Compound Members  

FourierVolumeRendererView.h

00001 // FourierVolumeRendererView.h : interface of the CFourierVolumeRendererView class
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 //make m_data global
00016 extern CCTData m_data;
00017 
00018 //prevent user from using the right mouse button (rmb) BEFORE any data is obtained from a file
00019 extern bool rmb_action_locked;
00020 
00021 
00022 class CFourierVolumeRendererView : public CView
00023 {
00024 protected: // create from serialization only
00025         CFourierVolumeRendererView();
00026         DECLARE_DYNCREATE(CFourierVolumeRendererView)
00027 
00028 // Attributes
00029 public:
00030         CFourierVolumeRendererDoc* GetDocument();
00031 
00032 
00033         Vektor2f m_WindowExtent;
00034 
00035 //      CCTData m_data;
00036 //      CCTData* m_data;
00037         bool m_ControlPointLocked;
00038 //      bool LMButton;
00039 //      int m_PointX, m_PointY;
00040         CPoint m_LastMousePos;
00041 
00042 
00043 // Operations
00044 public:
00045 
00046   HGLRC m_hRC; //Rendering Context
00047   CDC* m_pDC;  //Device Context
00048   
00049   BOOL InitializeOpenGL();
00050   
00051   BOOL SetupPixelFormat();
00052 
00053   void RenderScene();
00054 
00055 
00056 // Overrides
00057         // ClassWizard generated virtual function overrides
00058         //{{AFX_VIRTUAL(CFourierVolumeRendererView)
00059         public:
00060         virtual void OnDraw(CDC* pDC);  // overridden to draw this view
00061         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00062         protected:
00063         //}}AFX_VIRTUAL
00064 
00065 // Implementation
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 // Generated message map functions
00076 protected:
00077         //{{AFX_MSG(CFourierVolumeRendererView)
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         //}}AFX_MSG
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 //{{AFX_INSERT_LOCATION}}
00097 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00098 
00099 #endif // !defined(AFX_FOURIERVOLUMERENDERERVIEW_H__2E53CC5A_B35E_4179_A697_933CFBA58762__INCLUDED_)

Generated on Sun Dec 16 15:49:30 2001 for Fourier Volume Renderer by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001