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

MaterialView Interface. More...

#include <MaterialView.h>

Inheritance diagram for MaterialView:
MaterialEditView MaterialPreviewView MaterialPropTreeView MaterialTreeView MEMainFrame StageView

Public Member Functions

 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_OnMaterialSelectionChange (MaterialDoc *pMaterial)
 Called when the selected material has changed. 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 Attributes

MaterialDocManagermaterialDocManager
 

Detailed Description

MaterialView Interface.

Interface to be implemented by classes that want notifications of material changes. Classes that implement this interface must register themself with the MaterialDocManager class with the RegisterView method.

Definition at line 38 of file MaterialView.h.

Constructor & Destructor Documentation

MaterialView::MaterialView ( void  )
inline

Constructor.

Definition at line 43 of file MaterialView.h.

virtual MaterialView::~MaterialView ( void  )
inlinevirtual

Destructor.

Definition at line 47 of file MaterialView.h.

Member Function Documentation

virtual void MaterialView::MV_OnFileReload ( const char *  filename)
inlinevirtual

Called when a file has been reloaded.

Parameters
filenameThe file that was reloaded.

Reimplemented in MaterialTreeView.

Definition at line 143 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialAdd ( MaterialDoc pMaterial)
inlinevirtual

Called when a material is added.

Parameters
pMaterialThe material that was added.

Reimplemented in MaterialTreeView.

Definition at line 93 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialApply ( MaterialDoc pMaterial)
inlinevirtual

Called when the material changes have been applied.

Parameters
pMaterialThe selected material.

Reimplemented in MaterialTreeView.

Definition at line 75 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialAttributeChanged ( MaterialDoc pMaterial,
int  stage,
const char *  attribName 
)
inlinevirtual

Called when an attribute is changed.

Parameters
pMaterialThe material that was deleted.
stageThe stage that contains the change.
attribNameThe attribute that has changed.

Reimplemented in StageView.

Definition at line 129 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialChange ( MaterialDoc pMaterial)
inlinevirtual

Called when the material has changed but not applied.

Parameters
pMaterialThe selected material.

Reimplemented in MaterialTreeView, and MaterialPropTreeView.

Definition at line 69 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialDelete ( MaterialDoc pMaterial)
inlinevirtual

Called when a material is deleted.

Parameters
pMaterialThe material that was deleted.

Reimplemented in MaterialTreeView.

Definition at line 99 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialNameChanged ( MaterialDoc pMaterial,
const char *  oldName 
)
inlinevirtual

Called when the material name has changed.

Parameters
pMaterialThe material that was deleted.
oldNameThe old name of the material.

Reimplemented in MaterialTreeView, and MaterialEditView.

Definition at line 137 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialSaved ( MaterialDoc pMaterial)
inlinevirtual

Called when the material changes have been saved.

Parameters
pMaterialThe saved material.

Reimplemented in StageView, and MaterialTreeView.

Definition at line 81 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialSaveFile ( const char *  filename)
inlinevirtual

Called when a material file has been saved.

Parameters
filenamepath of the file that was saved.

Definition at line 87 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialSelectionChange ( MaterialDoc pMaterial)
inlinevirtual

Called when the selected material has changed.

Parameters
pMaterialThe newly selected material.

Reimplemented in MEMainFrame, MaterialPreviewView, StageView, and MaterialEditView.

Definition at line 63 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialStageAdd ( MaterialDoc pMaterial,
int  stageNum 
)
inlinevirtual

Called when a stage is added.

Parameters
pMaterialThe material that was affected.
stageNumThe index of the stage that was added

Reimplemented in StageView.

Definition at line 106 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialStageDelete ( MaterialDoc pMaterial,
int  stageNum 
)
inlinevirtual

Called when a stage is deleted.

Parameters
pMaterialThe material that was affected.
stageNumThe index of the stage that was deleted

Reimplemented in StageView.

Definition at line 113 of file MaterialView.h.

virtual void MaterialView::MV_OnMaterialStageMove ( MaterialDoc pMaterial,
int  from,
int  to 
)
inlinevirtual

Called when a stage is moved.

Parameters
pMaterialThe material that was deleted.
fromThe from index
toThe to index

Reimplemented in StageView.

Definition at line 121 of file MaterialView.h.

virtual void MaterialView::SetMaterialDocManager ( MaterialDocManager docManager)
inlinevirtual

Sets the material document manager for this view instance.

Parameters
docManagerThe material document manager for this view instance.

Definition at line 57 of file MaterialView.h.

Member Data Documentation

MaterialDocManager* MaterialView::materialDocManager
protected

Definition at line 143 of file MaterialView.h.


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