Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MaterialDialog Class Reference

#include <MaterialDialog.h>

List of all members.

Public Types

enum  { IDD = IDD_MODIFY_MATERIAL }

Public Member Functions

 MaterialDialog (MagicView *pParent=NULL)
virtual ~MaterialDialog ()

Public Attributes

CComboBox mShadowList
CComboBox mBlendModeList
CListBox mMaterialList
CStatic mMaterialThumb
CStatic mSpecularColor
CStatic mEmissiveColor
CStatic mDiffuseColor
CStatic mAmbientColor
float mAmbientValue
float mBrillianceValue
float mBumpValue
float mDiffuseValue
float mEmissiveValue
CString mMaterialName
float mPowerValue
float mSpecularValue
CString mSpecularTexture
CString mDiffuseTexture
CString mBumpTexture
CString mEmissiveTexture
CString mMaterialShader

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
void UpdateMaterial ()
void OnFileTexture (int type)
void ChangeFileTexture (char *fname, int type)
virtual BOOL OnInitDialog ()
afx_msg void OnPaint ()
afx_msg void OnAmbientColor ()
afx_msg void OnDiffuseColor ()
afx_msg void OnEmissiveColor ()
afx_msg void OnSpecularColor ()
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnChangeMaterialValue ()
afx_msg void OnFileDiffuse ()
afx_msg void OnFileSpecular ()
afx_msg void OnFileEmissive ()
afx_msg void OnFileBump ()
afx_msg void OnChangeDiffuseTexture ()
afx_msg void OnChangeSpecularTexture ()
afx_msg void OnChangeEmissiveTexture ()
afx_msg void OnChangeBumpTexture ()
afx_msg void OnChangeMaterialName ()
afx_msg void OnSelectMaterial ()
afx_msg void OnSelectPolys ()
afx_msg void OnNewMaterial ()
afx_msg void OnDelMaterial ()
afx_msg void OnSelectBlendMode ()
afx_msg void OnSelectShadow ()
virtual void OnOK ()
afx_msg void OnChangeMaterialShader ()

Protected Attributes

MagicDocdoc
Solidsolid
Materialmaterial

Detailed Description

Definition at line 32 of file MaterialDialog.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 41 of file MaterialDialog.h.


Constructor & Destructor Documentation

MaterialDialog::MaterialDialog ( MagicView pParent = NULL)

Definition at line 63 of file MaterialDialog.cpp.

MaterialDialog::~MaterialDialog ( )
virtual

Definition at line 95 of file MaterialDialog.cpp.


Member Function Documentation

void MaterialDialog::ChangeFileTexture ( char *  fname,
int  type 
)
protected

Definition at line 389 of file MaterialDialog.cpp.

void MaterialDialog::DoDataExchange ( CDataExchange *  pDX)
protectedvirtual

Definition at line 100 of file MaterialDialog.cpp.

void MaterialDialog::OnAmbientColor ( )
protected

Definition at line 270 of file MaterialDialog.cpp.

void MaterialDialog::OnChangeBumpTexture ( )
protected

Definition at line 494 of file MaterialDialog.cpp.

void MaterialDialog::OnChangeDiffuseTexture ( )
protected

Definition at line 443 of file MaterialDialog.cpp.

void MaterialDialog::OnChangeEmissiveTexture ( )
protected

Definition at line 477 of file MaterialDialog.cpp.

void MaterialDialog::OnChangeMaterialName ( )
protected

Definition at line 513 of file MaterialDialog.cpp.

void MaterialDialog::OnChangeMaterialShader ( )
protected

Definition at line 521 of file MaterialDialog.cpp.

void MaterialDialog::OnChangeMaterialValue ( )
protected

Definition at line 360 of file MaterialDialog.cpp.

void MaterialDialog::OnChangeSpecularTexture ( )
protected

Definition at line 460 of file MaterialDialog.cpp.

void MaterialDialog::OnDelMaterial ( )
protected

Definition at line 616 of file MaterialDialog.cpp.

void MaterialDialog::OnDiffuseColor ( )
protected

Definition at line 285 of file MaterialDialog.cpp.

void MaterialDialog::OnDrawItem ( int  nIDCtl,
LPDRAWITEMSTRUCT  lpDrawItemStruct 
)
protected

Definition at line 330 of file MaterialDialog.cpp.

void MaterialDialog::OnEmissiveColor ( )
protected

Definition at line 315 of file MaterialDialog.cpp.

void MaterialDialog::OnFileBump ( )
protected

Definition at line 438 of file MaterialDialog.cpp.

void MaterialDialog::OnFileDiffuse ( )
protected

Definition at line 423 of file MaterialDialog.cpp.

void MaterialDialog::OnFileEmissive ( )
protected

Definition at line 433 of file MaterialDialog.cpp.

void MaterialDialog::OnFileSpecular ( )
protected

Definition at line 428 of file MaterialDialog.cpp.

void MaterialDialog::OnFileTexture ( int  type)
protected

Definition at line 367 of file MaterialDialog.cpp.

BOOL MaterialDialog::OnInitDialog ( )
protectedvirtual

Definition at line 219 of file MaterialDialog.cpp.

void MaterialDialog::OnNewMaterial ( )
protected

Definition at line 582 of file MaterialDialog.cpp.

void MaterialDialog::OnOK ( )
protectedvirtual

Definition at line 686 of file MaterialDialog.cpp.

void MaterialDialog::OnPaint ( )
protected

Definition at line 261 of file MaterialDialog.cpp.

void MaterialDialog::OnSelectBlendMode ( )
protected

Definition at line 674 of file MaterialDialog.cpp.

void MaterialDialog::OnSelectMaterial ( )
protected

Definition at line 529 of file MaterialDialog.cpp.

void MaterialDialog::OnSelectPolys ( )
protected

Definition at line 662 of file MaterialDialog.cpp.

void MaterialDialog::OnSelectShadow ( )
protected

Definition at line 680 of file MaterialDialog.cpp.

void MaterialDialog::OnSpecularColor ( )
protected

Definition at line 300 of file MaterialDialog.cpp.

void MaterialDialog::UpdateMaterial ( )
protected

Definition at line 186 of file MaterialDialog.cpp.


Member Data Documentation

MagicDoc* MaterialDialog::doc
protected

Definition at line 79 of file MaterialDialog.h.

CStatic MaterialDialog::mAmbientColor

Definition at line 49 of file MaterialDialog.h.

float MaterialDialog::mAmbientValue

Definition at line 50 of file MaterialDialog.h.

Material* MaterialDialog::material
protected

Definition at line 81 of file MaterialDialog.h.

CComboBox MaterialDialog::mBlendModeList

Definition at line 43 of file MaterialDialog.h.

float MaterialDialog::mBrillianceValue

Definition at line 51 of file MaterialDialog.h.

CString MaterialDialog::mBumpTexture

Definition at line 60 of file MaterialDialog.h.

float MaterialDialog::mBumpValue

Definition at line 52 of file MaterialDialog.h.

CStatic MaterialDialog::mDiffuseColor

Definition at line 48 of file MaterialDialog.h.

CString MaterialDialog::mDiffuseTexture

Definition at line 59 of file MaterialDialog.h.

float MaterialDialog::mDiffuseValue

Definition at line 53 of file MaterialDialog.h.

CStatic MaterialDialog::mEmissiveColor

Definition at line 47 of file MaterialDialog.h.

CString MaterialDialog::mEmissiveTexture

Definition at line 61 of file MaterialDialog.h.

float MaterialDialog::mEmissiveValue

Definition at line 54 of file MaterialDialog.h.

CListBox MaterialDialog::mMaterialList

Definition at line 44 of file MaterialDialog.h.

CString MaterialDialog::mMaterialName

Definition at line 55 of file MaterialDialog.h.

CString MaterialDialog::mMaterialShader

Definition at line 62 of file MaterialDialog.h.

CStatic MaterialDialog::mMaterialThumb

Definition at line 45 of file MaterialDialog.h.

float MaterialDialog::mPowerValue

Definition at line 56 of file MaterialDialog.h.

CComboBox MaterialDialog::mShadowList

Definition at line 42 of file MaterialDialog.h.

CStatic MaterialDialog::mSpecularColor

Definition at line 46 of file MaterialDialog.h.

CString MaterialDialog::mSpecularTexture

Definition at line 58 of file MaterialDialog.h.

float MaterialDialog::mSpecularValue

Definition at line 57 of file MaterialDialog.h.

Solid* MaterialDialog::solid
protected

Definition at line 80 of file MaterialDialog.h.


The documentation for this class was generated from the following files: