doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MaterialPreviewView Class Reference

#include <MaterialPreviewView.h>

Inheritance diagram for MaterialPreviewView:
MaterialView

Public Member Functions

virtual void OnDraw (CDC *pDC)
 
void MV_OnMaterialSelectionChange (MaterialDoc *pMaterial)
 Called when the selected material has changed. More...
 
void OnModelChange (int modelId)
 
void OnCustomModelChange (idStr modelName)
 
void OnShowLightsChange (bool showLights)
 
void OnLocalParmChange (int parmNum, float value)
 
void OnGlobalParmChange (int parmNum, float value)
 
void OnLightShaderChange (int lightId, idStr shaderName)
 
void OnLightRadiusChange (int lightId, float radius)
 
void OnLightColorChange (int lightId, idVec3 &color)
 
void OnLightAllowMoveChange (int lightId, bool move)
 
void OnAddLight (void)
 
void OnDeleteLight (int lightId)
 
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
 
afx_msg void OnSize (UINT nType, int cx, int cy)
 
- Public Member Functions inherited from MaterialView
 MaterialView (void)
 Constructor. More...
 
virtual ~MaterialView (void)
 Destructor. More...
 
virtual void SetMaterialDocManager (MaterialDocManager *docManager)
 Sets the material document manager for this view instance. More...
 
virtual void MV_OnMaterialChange (MaterialDoc *pMaterial)
 Called when the material has changed but not applied. More...
 
virtual void MV_OnMaterialApply (MaterialDoc *pMaterial)
 Called when the material changes have been applied. More...
 
virtual void MV_OnMaterialSaved (MaterialDoc *pMaterial)
 Called when the material changes have been saved. More...
 
virtual void MV_OnMaterialSaveFile (const char *filename)
 Called when a material file has been saved. More...
 
virtual void MV_OnMaterialAdd (MaterialDoc *pMaterial)
 Called when a material is added. More...
 
virtual void MV_OnMaterialDelete (MaterialDoc *pMaterial)
 Called when a material is deleted. More...
 
virtual void MV_OnMaterialStageAdd (MaterialDoc *pMaterial, int stageNum)
 Called when a stage is added. More...
 
virtual void MV_OnMaterialStageDelete (MaterialDoc *pMaterial, int stageNum)
 Called when a stage is deleted. More...
 
virtual void MV_OnMaterialStageMove (MaterialDoc *pMaterial, int from, int to)
 Called when a stage is moved. More...
 
virtual void MV_OnMaterialAttributeChanged (MaterialDoc *pMaterial, int stage, const char *attribName)
 Called when an attribute is changed. More...
 
virtual void MV_OnMaterialNameChanged (MaterialDoc *pMaterial, const char *oldName)
 Called when the material name has changed. More...
 
virtual void MV_OnFileReload (const char *filename)
 Called when a file has been reloaded. More...
 

Protected Member Functions

 MaterialPreviewView ()
 
virtual ~MaterialPreviewView ()
 

Protected Attributes

idGLWidget renderWindow
 
idGLDrawableView renderedView
 
idStr currentMaterial
 
- Protected Attributes inherited from MaterialView
MaterialDocManagermaterialDocManager
 

Detailed Description

Definition at line 104 of file MaterialPreviewView.h.

Constructor & Destructor Documentation

MaterialPreviewView::MaterialPreviewView ( )
protected

Definition at line 40 of file MaterialPreviewView.cpp.

MaterialPreviewView::~MaterialPreviewView ( )
protectedvirtual

Definition at line 45 of file MaterialPreviewView.cpp.

Member Function Documentation

void MaterialPreviewView::MV_OnMaterialSelectionChange ( MaterialDoc pMaterial)
virtual

Called when the selected material has changed.

Parameters
pMaterialThe newly selected material.

Reimplemented from MaterialView.

Definition at line 108 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnAddLight ( void  )

Definition at line 150 of file MaterialPreviewView.cpp.

int MaterialPreviewView::OnCreate ( LPCREATESTRUCT  lpCreateStruct)

Definition at line 73 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnCustomModelChange ( idStr  modelName)

Definition at line 165 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnDeleteLight ( int  lightId)

Definition at line 155 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnDraw ( CDC *  pDC)
virtual

Definition at line 56 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnGlobalParmChange ( int  parmNum,
float  value 
)

Definition at line 125 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnLightAllowMoveChange ( int  lightId,
bool  move 
)

Definition at line 145 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnLightColorChange ( int  lightId,
idVec3 color 
)

Definition at line 135 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnLightRadiusChange ( int  lightId,
float  radius 
)

Definition at line 140 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnLightShaderChange ( int  lightId,
idStr  shaderName 
)

Definition at line 130 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnLocalParmChange ( int  parmNum,
float  value 
)

Definition at line 120 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnModelChange ( int  modelId)

Definition at line 160 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnShowLightsChange ( bool  showLights)

Definition at line 170 of file MaterialPreviewView.cpp.

void MaterialPreviewView::OnSize ( UINT  nType,
int  cx,
int  cy 
)

Definition at line 95 of file MaterialPreviewView.cpp.

Member Data Documentation

idStr MaterialPreviewView::currentMaterial
protected

Definition at line 141 of file MaterialPreviewView.h.

idGLDrawableView MaterialPreviewView::renderedView
protected

Definition at line 139 of file MaterialPreviewView.h.

idGLWidget MaterialPreviewView::renderWindow
protected

Definition at line 138 of file MaterialPreviewView.h.


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