00001 #if !defined(AFX_MYFOCUSCONTEXTDIALOG_H__392D60D0_DB97_44AF_B5D7_1FC520EAD7D7__INCLUDED_) 00002 #define AFX_MYFOCUSCONTEXTDIALOG_H__392D60D0_DB97_44AF_B5D7_1FC520EAD7D7__INCLUDED_ 00003 00004 #if _MSC_VER > 1000 00005 #pragma once 00006 #endif // _MSC_VER > 1000 00007 // MyFocusContextDialog.h : header file 00008 // 00009 #include "gl/gl.h" 00010 #include "MyObject.h" 00011 #include "MyCube.h" 00012 #include "MySphere.h" 00013 #include "MyRectangle.h" 00014 #include "MyMaterialDialog.h" // Added by ClassView 00015 00017 // MyFocusContextDialog dialog 00018 00020 struct ContextProp 00021 { 00022 // Context streamlines linewidth. 00023 float lineWidth; 00025 int resIndex; 00027 GLubyte opacity; 00029 CStreamlineMaterial material; 00031 int lineWidthPerc; 00033 int opacityPerc; 00035 int resPerc; 00036 }; 00037 00039 class MyFocusContextDialog : public CDialog 00040 { 00041 // Construction 00042 public: 00044 int GetRecalcType(); 00046 void SetRecalcType(int recalcType); 00047 00049 void GetContextProp(ContextProp &prop); 00050 00052 void SetContextProp(ContextProp &prop); 00053 00055 void SetLineWidth(int lineWidth); 00056 00058 int GetLineWidth(); 00059 00061 static MyObject * CreateMagicVol(int magicVolType, CPoint3D pos, float size, 00062 float radius, float length, float height, float width); 00063 00065 int GetMagicVolType(); 00066 00068 int GetContextRes(); 00069 00071 bool GetIsCutLines(); 00072 00074 void SetIsCutLines(bool isCutLines); 00075 00077 void SetOpacity(int opacity); 00078 00080 void SetContextRes(int contextRes); 00081 00083 void SetMagicVolType(int magicVolType); 00085 int GetOpacity(); 00087 bool m_IsIncremential; 00088 00090 MyMaterialDialog m_MaterialDialog; 00091 MyFocusContextDialog(CWnd* pParent = NULL); // standard constructor 00092 00093 // Dialog Data 00094 //{{AFX_DATA(MyFocusContextDialog) 00095 enum { IDD = IDD_FOCUS_CONTEXTDIALOG }; 00096 int m_Opacity; 00097 BOOL m_IsCutLines; 00098 int m_MagicVolType; 00099 int m_ContextRes; 00100 int m_LineWidth; 00101 int m_RecalcType; 00102 //}}AFX_DATA 00103 00104 00105 // Overrides 00106 // ClassWizard generated virtual function overrides 00107 //{{AFX_VIRTUAL(MyFocusContextDialog) 00108 protected: 00109 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00110 //}}AFX_VIRTUAL 00111 00112 // Implementation 00113 protected: 00114 00115 // Generated message map functions 00116 //{{AFX_MSG(MyFocusContextDialog) 00117 virtual BOOL OnInitDialog(); 00118 afx_msg void OnMaterialButton(); 00119 //}}AFX_MSG 00120 DECLARE_MESSAGE_MAP() 00121 }; 00122 00123 //{{AFX_INSERT_LOCATION}} 00124 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00125 00126 #endif // !defined(AFX_MYFOCUSCONTEXTDIALOG_H__392D60D0_DB97_44AF_B5D7_1FC520EAD7D7__INCLUDED_)