doom3-gpl
Doom 3 GPL source release
|
MaterialView Interface. More...
#include <MaterialView.h>
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 | |
MaterialDocManager * | materialDocManager |
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.
|
inline |
Constructor.
Definition at line 43 of file MaterialView.h.
|
inlinevirtual |
Destructor.
Definition at line 47 of file MaterialView.h.
Called when a file has been reloaded.
filename | The file that was reloaded. |
Reimplemented in MaterialTreeView.
Definition at line 143 of file MaterialView.h.
|
inlinevirtual |
Called when a material is added.
pMaterial | The material that was added. |
Reimplemented in MaterialTreeView.
Definition at line 93 of file MaterialView.h.
|
inlinevirtual |
Called when the material changes have been applied.
pMaterial | The selected material. |
Reimplemented in MaterialTreeView.
Definition at line 75 of file MaterialView.h.
|
inlinevirtual |
Called when an attribute is changed.
pMaterial | The material that was deleted. |
stage | The stage that contains the change. |
attribName | The attribute that has changed. |
Reimplemented in StageView.
Definition at line 129 of file MaterialView.h.
|
inlinevirtual |
Called when the material has changed but not applied.
pMaterial | The selected material. |
Reimplemented in MaterialTreeView, and MaterialPropTreeView.
Definition at line 69 of file MaterialView.h.
|
inlinevirtual |
Called when a material is deleted.
pMaterial | The material that was deleted. |
Reimplemented in MaterialTreeView.
Definition at line 99 of file MaterialView.h.
|
inlinevirtual |
Called when the material name has changed.
pMaterial | The material that was deleted. |
oldName | The old name of the material. |
Reimplemented in MaterialTreeView, and MaterialEditView.
Definition at line 137 of file MaterialView.h.
|
inlinevirtual |
Called when the material changes have been saved.
pMaterial | The saved material. |
Reimplemented in StageView, and MaterialTreeView.
Definition at line 81 of file MaterialView.h.
Called when a material file has been saved.
filename | path of the file that was saved. |
Definition at line 87 of file MaterialView.h.
|
inlinevirtual |
Called when the selected material has changed.
pMaterial | The newly selected material. |
Reimplemented in MEMainFrame, MaterialPreviewView, StageView, and MaterialEditView.
Definition at line 63 of file MaterialView.h.
|
inlinevirtual |
Called when a stage is added.
pMaterial | The material that was affected. |
stageNum | The index of the stage that was added |
Reimplemented in StageView.
Definition at line 106 of file MaterialView.h.
|
inlinevirtual |
Called when a stage is deleted.
pMaterial | The material that was affected. |
stageNum | The index of the stage that was deleted |
Reimplemented in StageView.
Definition at line 113 of file MaterialView.h.
|
inlinevirtual |
Called when a stage is moved.
pMaterial | The material that was deleted. |
from | The from index |
to | The to index |
Reimplemented in StageView.
Definition at line 121 of file MaterialView.h.
|
inlinevirtual |
Sets the material document manager for this view instance.
docManager | The material document manager for this view instance. |
Definition at line 57 of file MaterialView.h.
|
protected |
Definition at line 143 of file MaterialView.h.