00001 #if !defined(AFX_MYEDITREGIONSDIALOG_H__907C80AB_28DD_4EE1_882A_B88E8683D87E__INCLUDED_)
00002 #define AFX_MYEDITREGIONSDIALOG_H__907C80AB_28DD_4EE1_882A_B88E8683D87E__INCLUDED_
00003
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007
00008
00009
00011
00012 #include "MyMaterialDialog.h"
00013 #include "Defines.h"
00014 #include "StreamlineMaterial.h"
00015 #include "MyHisto1Dialog.h"
00016 #include "MyRegPropDialog.h"
00017
00019 class MyEditRegionsDialog : public CDialog
00020 {
00021
00022 public:
00024 void SetDefaultProp(RegProp &prop);
00026 void SetRegProp(int index, RegProp &prop);
00028 void GetRegProp(int index, RegProp &prop);
00029
00031 void SetMaterial(int index, CStreamlineMaterial material);
00033 CStreamlineMaterial GetMaterial(int index);
00034
00036 static int MapValue2PropNr(RegProp *prop, int maxIndex, float value,
00037 float minValue, float maxValue);
00038
00040 void SetRegionPos(int index, float pos);
00042 float GetRegionPos(int index);
00043
00045 int GetRes(int index);
00047 void SetRes(int index, int res);
00048
00050 MyRegPropDialog m_RegPropDialog[DEF_REGIONS_NUM];
00052 MyHisto1Dialog m_Histo1Dialog;
00053
00054 RegProp m_DefaultProp;
00055
00056 MyEditRegionsDialog(CWnd* pParent = NULL);
00057
00058
00059
00060 enum { IDD = IDD_EDITREGIONSDIALOG };
00061 int m_Region2;
00062 int m_Region3;
00063 int m_Region4;
00064 int m_Region5;
00065 int m_Region1;
00066
00067
00068
00069
00070
00071
00072 protected:
00073 virtual void DoDataExchange(CDataExchange* pDX);
00074
00075
00076
00077 protected:
00078
00079
00080
00081 afx_msg void OnPaint();
00082 virtual BOOL OnInitDialog();
00083 afx_msg void OnReleasedcaptureRegion1slider(NMHDR* pNMHDR, LRESULT* pResult);
00084 afx_msg void OnReleasedcaptureRegion2slider(NMHDR* pNMHDR, LRESULT* pResult);
00085 afx_msg void OnReleasedcaptureRegion3slider(NMHDR* pNMHDR, LRESULT* pResult);
00086 afx_msg void OnReleasedcaptureRegion4slider(NMHDR* pNMHDR, LRESULT* pResult);
00087 afx_msg void OnReleasedcaptureRegion5slider(NMHDR* pNMHDR, LRESULT* pResult);
00088 afx_msg void OnHistoButton();
00089 afx_msg void OnPropReg1Button();
00090 afx_msg void OnPropReg2Button();
00091 afx_msg void OnPropReg3Button();
00092 afx_msg void OnPropReg4Button();
00093 afx_msg void OnPropReg5Button();
00094
00095 DECLARE_MESSAGE_MAP()
00096 };
00097
00098
00099
00100
00101 #endif // !defined(AFX_MYEDITREGIONSDIALOG_H__907C80AB_28DD_4EE1_882A_B88E8683D87E__INCLUDED_)