00001
00002
00003
00004 #if !defined(AFX_SPOT3DDLG_H__9944AD5F_E353_4A7F_B046_876476D9DADD__INCLUDED_)
00005 #define AFX_SPOT3DDLG_H__9944AD5F_E353_4A7F_B046_876476D9DADD__INCLUDED_
00006
00007 #if _MSC_VER > 1000
00008 #pragma once
00009 #endif // _MSC_VER > 1000
00010
00011 #define TEXTUREFILE "gauss.raw"
00012
00013 #define PI 3.14159265358979323846
00014
00015 #define DEG2RAD(x) (float)((float)x/(float)180*PI)
00016 #define RAD2DEG(x) (float)((float)x/PI*180)
00017
00018 struct DIRECTION
00019 {
00020 float x,y,z;
00021
00022 DIRECTION (float xx, float yy, float zz) { x = xx; y = yy; z = zz; }
00023 };
00024
00026
00027
00028 class CSpot3DDlg : public CDialog
00029 {
00030
00031 public:
00032 CSpot3DDlg(CWnd* pParent = NULL);
00033 ~CSpot3DDlg ();
00034
00035
00036
00037 enum { IDD = IDD_SPOT3D_DIALOG };
00038 CButton m_Alpha;
00039 CButton m_Radio1;
00040 CProgressCtrl m_Progress;
00041 CEdit m_Spots;
00042 CStatic m_Picture;
00043 CSliderCtrl m_SliderY;
00044 CSliderCtrl m_SliderZ;
00045 CSliderCtrl m_SliderX;
00046
00047
00048
00049
00050 protected:
00051 virtual void DoDataExchange(CDataExchange* pDX);
00052
00053
00054
00055 protected:
00056 HICON m_hIcon;
00057
00058 HDC m_hDC;
00059 HGLRC m_hGLRC;
00060
00061 short int *pData;
00062 CTexture *pSpot;
00063
00064 enum { PREVIEW, NORMAL, GAUSS, COLOR } m_Mode;
00065 int m_Funktion;
00066
00067 float velocity (float x, float y, float z);
00068 DIRECTION dir (float x, float y, float z);
00069
00070 void Render ();
00071 void Transfer (float v);
00072
00073
00074
00075 virtual BOOL OnInitDialog();
00076 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
00077 afx_msg void OnPaint();
00078 afx_msg HCURSOR OnQueryDragIcon();
00079 afx_msg void OnDestroy();
00080 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00081 afx_msg void OnRadio1();
00082 afx_msg void OnRadio2();
00083 afx_msg void OnRadio3();
00084 afx_msg void OnRefresh();
00085 afx_msg void OnFunktion1();
00086 afx_msg void OnFunktion2();
00087 afx_msg void OnFunktion3();
00088 afx_msg void OnFunktion4();
00089 afx_msg void OnRadio4();
00090
00091 DECLARE_MESSAGE_MAP()
00092 };
00093
00094
00095
00096
00097 #endif // !defined(AFX_SPOT3DDLG_H__9944AD5F_E353_4A7F_B046_876476D9DADD__INCLUDED_)