EditMaterialDlg.h
资源名称:gloop.zip [点击查看]
上传用户:shxiangxiu
上传日期:2007-01-03
资源大小:1101k
文件大小:3k
源码类别:
OpenGL
开发平台:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // EditMaterialDlg.h : Header file; Defines the class definitions
- //
- // glOOP (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1998
- //
- // OpenGL is a registered trademark of Silicon Graphics
- //
- //
- // This program is provided for educational and personal use only and
- // is provided without guarantee or warrantee expressed or implied.
- //
- // Commercial use is strickly prohibited without written permission
- // from ImageWare Development.
- //
- // This program is -not- in the public domain.
- //
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // CEditMaterialDlg dialog
- class AFX_EXT_CLASS CEditMaterialDlg : public CDialog
- {
- // Construction
- public:
- CEditMaterialDlg(C3dMaterialList* pMatlList, C3dColorList* pColorList, CWnd* pParent = NULL); // standard constructor
- void ResetDlg(C3dMaterialList* pMatlList, C3dColorList* pColorList);
- // Dialog Data
- //{{AFX_DATA(CEditMaterialDlg)
- enum { IDD = IDD_EDIT_MATERIAL_DIALOG };
- CComboBox m_ComboEmm;
- CComboBox m_ComboSpc;
- CComboBox m_ComboDif;
- CComboBox m_ComboAmb;
- CListBox m_ListBox;
- float m_fIndexOfRefraction;
- float m_fSpecularPower;
- float m_fTranslucency;
- CString m_szName;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CEditMaterialDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- //Attributes
- public:
- protected:
- C3dMaterialList* m_pMatlList; // Save the list pointer passed at initialization
- C3dColorList* m_pColorList; // Save the color list pointer passed at initialization
- C3dMaterial* m_pLastMatl; // Pointer to last selected material
- CWnd m_wndAmbButtonColor;
- CWnd m_wndDifButtonColor;
- CWnd m_wndSpcButtonColor;
- CWnd m_wndEmmButtonColor;
- CMyMaterialWnd m_wndMaterialPreview;
- // Implementation
- protected:
- void SaveDialogData(C3dMaterial* pMatl);
- void LoadDialogData(C3dMaterial* pMatl);
- void PaintButtonWnd(CWnd* pWnd, C3dColor* pColor);
- // Generated message map functions
- //{{AFX_MSG(CEditMaterialDlg)
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- afx_msg void OnSelchangeMaterialList();
- afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
- afx_msg void OnKillfocusSpcPower();
- afx_msg void OnKillfocusIndexOfRefraction();
- afx_msg void OnKillfocusTranslucency();
- afx_msg void OnNew();
- afx_msg void OnDelete();
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg void OnButtonAmbColor();
- afx_msg void OnButtonDifColor();
- afx_msg void OnButtonSpcColor();
- afx_msg void OnButtonEmmColor();
- afx_msg void OnSelchangeComboAmbColor();
- afx_msg void OnSelchangeComboDifColor();
- afx_msg void OnSelchangeComboSpcColor();
- afx_msg void OnSelchangeComboEmmColor();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };