Main Page   Class Hierarchy   Compound List   File List   Compound Members  

MyMaterialDialog.h

00001 #if !defined(AFX_MYMATERIALDIALOG_H__E8B9FADF_53F4_47C4_8F70_7F685C050ADF__INCLUDED_)
00002 #define AFX_MYMATERIALDIALOG_H__E8B9FADF_53F4_47C4_8F70_7F685C050ADF__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 // MyMaterialDialog.h : header file
00008 //
00009 #include "gl/glu.h"
00010 #include "gl/gl.h"
00011 #include "StreamlineMaterial.h"
00012 
00014 // MyMaterialDialog dialog
00015 
00017 class MyMaterialDialog : public CDialog
00018 {
00019 // Construction
00020 public:
00022         GLubyte GetOpacity();
00024         void SetOpacity(GLubyte opacity);
00026         void SetSpecularRGB(GLubyte *specularRGB);
00028         void SetDiffuseRGB(GLubyte *diffuseRGB);
00030         void SetAmbientRGB(GLubyte *ambientRGB);
00032         void GetSpecularRGB(GLubyte *specularRGB);
00034         void GetDiffuseRGB(GLubyte *diffuseRGB);
00036         void GetAmbientRGB(GLubyte *ambientRGB);
00037         
00039         void SetMaterial(CStreamlineMaterial material);
00041         CStreamlineMaterial GetMaterial();
00042 
00044         CColorDialog m_SpecularDialog;
00046         CColorDialog m_DiffuseDialog;
00048         CColorDialog m_AmbientDialog;
00049         
00051         MyMaterialDialog(CWnd* pParent = NULL);   // standard constructor
00052 
00053 // Dialog Data
00054         //{{AFX_DATA(MyMaterialDialog)
00055         enum { IDD = IDD_MATERIALDIALOG };
00056         int             m_Opacity;
00057         //}}AFX_DATA
00058 
00059 
00060 // Overrides
00061         // ClassWizard generated virtual function overrides
00062         //{{AFX_VIRTUAL(MyMaterialDialog)
00063         protected:
00064         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00065         //}}AFX_VIRTUAL
00066 
00067 // Implementation
00068 protected:
00069 
00070         // Generated message map functions
00071         //{{AFX_MSG(MyMaterialDialog)
00072         afx_msg void OnAmbientbutton();
00073         afx_msg void OnDiffusebutton();
00074         afx_msg void OnSpecularbutton();
00075         virtual BOOL OnInitDialog();
00076         afx_msg void OnPaint();
00077         //}}AFX_MSG
00078         DECLARE_MESSAGE_MAP()
00079 };
00080 
00081 //{{AFX_INSERT_LOCATION}}
00082 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00083 
00084 #endif // !defined(AFX_MYMATERIALDIALOG_H__E8B9FADF_53F4_47C4_8F70_7F685C050ADF__INCLUDED_)

Generated on Fri Aug 9 10:12:39 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002