1 #if !defined(AFX_ColorPropertyPage_H__A815F7A3_D51B_11D1_8DDE_0800369C8A03__INCLUDED_)
2 #define AFX_ColorPropertyPage_H__A815F7A3_D51B_11D1_8DDE_0800369C8A03__INCLUDED_
6 #endif // _MSC_VER >= 1000
7 // ColorPropertyPage.h : header file
9 #include "Aspect_ColorMap.hxx"
11 /////////////////////////////////////////////////////////////////////////////
12 // CColorPropertyPage dialog
14 class CColorPropertyPage : public CPropertyPage
16 DECLARE_DYNCREATE(CColorPropertyPage)
19 Handle(Aspect_ColorMap) myColorMap;
21 Handle(V2d_Viewer) myViewer;
23 void SetViewer(Handle(V2d_Viewer) aViewer) {
25 myColorMap = aViewer->ColorMap();
32 ~CColorPropertyPage();
35 //{{AFX_DATA(CColorPropertyPage)
36 enum { IDD = IDD_DIALOG_Color };
37 CComboBox m_NewEntryColorNameCtrl;
39 CString m_ColorMapSize ;
40 CString m_ColorMapType ;
41 CString m_CurrentEntryRed;
42 CString m_CurrentEntryGreen;
43 CString m_CurrentEntryBlue;
44 CString m_NearsetColorName;
46 double m_NewEntryBlue;
47 double m_NewEntryGreen;
52 // ClassWizard generate virtual function overrides
53 //{{AFX_VIRTUAL(CColorPropertyPage)
55 virtual BOOL OnApply();
57 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
62 // Generated message map functions
63 //{{AFX_MSG(CColorPropertyPage)
64 virtual BOOL OnInitDialog();
65 afx_msg void OnSelchangeColorMapTAB(NMHDR* pNMHDR, LRESULT* pResult);
66 afx_msg void OnSelchangeColorMapCOMBONewEntryColorName();
67 afx_msg void OnColorMapBUTTONUpdateCurrentEntry();
68 afx_msg void OnColorMapBUTTONNewColorCubeColorMap();
69 afx_msg void OnColorMapBUTTONNewGenericColorMap();
70 afx_msg void OnColorMapBUTTONNewColorRampColorMap();
71 afx_msg void OnColorMapBUTTONNewEntryEditColor();
72 afx_msg void OnColorMapBUTTONAddNewEntry();
77 void UpdateDisplay(int CurrentSelectionIndex);
80 //{{AFX_INSERT_LOCATION}}
81 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
83 #endif // !defined(AFX_ColorPropertyPage_H__A815F7A3_D51B_11D1_8DDE_0800369C8A03__INCLUDED_)