1 // ColorPropertyPage.h : header file
4 #if !defined(AFX_ColorPropertyPage_H__A815F7A3_D51B_11D1_8DDE_0800369C8A03__INCLUDED_)
5 #define AFX_ColorPropertyPage_H__A815F7A3_D51B_11D1_8DDE_0800369C8A03__INCLUDED_
9 #endif // _MSC_VER >= 1000
11 #include "Aspect_ColorMap.hxx"
14 /////////////////////////////////////////////////////////////////////////////
15 // CColorPropertyPage dialog
17 class CColorPropertyPage : public CPropertyPage
19 DECLARE_DYNCREATE(CColorPropertyPage)
22 Handle(Aspect_ColorMap) myColorMap;
24 Handle(V2d_Viewer) myViewer;
26 void SetViewer(Handle(V2d_Viewer) aViewer) {
28 myColorMap = aViewer->ColorMap();
35 ~CColorPropertyPage();
38 //{{AFX_DATA(CColorPropertyPage)
39 enum { IDD = IDD_DIALOG_Color };
40 CComboBox m_NewEntryColorNameCtrl;
42 CString m_ColorMapSize ;
43 CString m_ColorMapType ;
44 CString m_CurrentEntryRed;
45 CString m_CurrentEntryGreen;
46 CString m_CurrentEntryBlue;
47 CString m_NearsetColorName;
49 double m_NewEntryBlue;
50 double m_NewEntryGreen;
55 // ClassWizard generate virtual function overrides
56 //{{AFX_VIRTUAL(CColorPropertyPage)
58 virtual BOOL OnApply();
60 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
65 // Generated message map functions
66 //{{AFX_MSG(CColorPropertyPage)
67 virtual BOOL OnInitDialog();
68 afx_msg void OnSelchangeColorMapTAB(NMHDR* pNMHDR, LRESULT* pResult);
69 afx_msg void OnSelchangeColorMapCOMBONewEntryColorName();
70 afx_msg void OnColorMapBUTTONUpdateCurrentEntry();
71 afx_msg void OnColorMapBUTTONNewColorCubeColorMap();
72 afx_msg void OnColorMapBUTTONNewGenericColorMap();
73 afx_msg void OnColorMapBUTTONNewColorRampColorMap();
74 afx_msg void OnColorMapBUTTONNewEntryEditColor();
75 afx_msg void OnColorMapBUTTONAddNewEntry();
80 void UpdateDisplay(int CurrentSelectionIndex);
83 //{{AFX_INSERT_LOCATION}}
84 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
86 #endif // !defined(AFX_ColorPropertyPage_H__A815F7A3_D51B_11D1_8DDE_0800369C8A03__INCLUDED_)