Public Member Functions

IAutoMParamDlg Class Reference

Search for all occurrences

Detailed Description

See also:
Class ParamDlg, Class IParamMap2, Class IMtlParams, Class ParamMap2UserDlgProc.

Description:
This is the Auto ParamDlg class for Material Editor auto-UI, instanced by ClassDesc2::CreateParamDlg(). It maintains a table of secondary ParamDlgs for master ParamDlgs (eg, the one returned from CreateParamDlg()) and will broadcast appropriate method calls to them as the master receives them.

#include <iparamm2.h>

Inheritance diagram for IAutoMParamDlg:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void  InvalidateUI ()=0
virtual void  MtlChanged ()=0
virtual int  NumDlgs ()=0
virtual void  AddDlg (ParamDlg *dlg)=0
virtual ParamDlg GetDlg (int i)=0
virtual void  SetDlg (int i, ParamDlg *dlg)=0
virtual void  DeleteDlg (ParamDlg *dlg)=0
virtual IParamMap2 GetMap ()=0

Member Function Documentation

virtual void InvalidateUI ( ) [pure virtual]
Remarks:
This method causes the user interface controls to be re-drawn.

Implemented in MSAutoMParamDlg.

virtual void MtlChanged ( ) [pure virtual]
Remarks:
This method may be called to causes the viewports to be redrawn. It should be called when any parameter that affects the look of the material in the viewport has been altered. If the material is not on a visible node in a shaded view, nothing will happen. This method should not be called as a spinner is being dragged, but only upon release of the mouse button.

Implemented in MSAutoMParamDlg.

virtual int NumDlgs ( ) [pure virtual]
Remarks:
Returns the number of secondary dialogs.

Implemented in MSAutoMParamDlg.

virtual void AddDlg ( ParamDlg dlg ) [pure virtual]
Remarks:
Adds the specified dialog as another secondary dialog.
Parameters:
ParamDlg* dlg

Points to the parameter dialog to add.

Implemented in MSAutoMParamDlg.

virtual ParamDlg* GetDlg ( int  i ) [pure virtual]
Remarks:
Returns a pointer to the 'i-th' secondary dialog.
Parameters:
int i

The zero based index of the dialog to return.

Implemented in MSAutoMParamDlg.

virtual void SetDlg ( int  i,
ParamDlg dlg 
) [pure virtual]
Remarks:
Sets the 'i-th' dialog to the one passed.
Parameters:
int i

The zero based index of the dialog to set.

ParamDlg* dlg

Points to the parameter dialog to set.

Implemented in MSAutoMParamDlg.

virtual void DeleteDlg ( ParamDlg dlg ) [pure virtual]
Remarks:
This method is used for deleting secondary dialogs from a master IAutoMParamDlg. Use this along with AddDlg() if you are dynamically changing the set of rollups for the plugin, so that the P_AUTO_UI system can correctly manage all current secondary rollups.
Parameters:
ParamDlg* dlg

Points to the ParamDlg to delete.

Implemented in MSAutoMParamDlg.

virtual IParamMap2* GetMap ( ) [pure virtual]
Remarks:
Returns a pointer to the parameter map2 of this primary (master) dialog.

Implemented in MSAutoMParamDlg.


IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg
IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg IAutoMParamDlg