Detailed Description
- See also:
- Class IParamBlock2, Class ParamBlockDesc2, Class
ParamMap2UserDlgProc.
- Description:
- This class provides methods to work with parameter map2s.
Methods are provided for things like invalidating the parameter map
so it gets redrawn, working with the parameter blocks associated
with the parameter map, and establishing an optional dialog proc to
handle controls not directly handled by the parameter map. This
section also documents several functions that are available for
creating and destroying parameter maps but are not part of this
class.
Note: The use of this class requires the explicit inclusion the
IPARAMM2.H header file.
#include <iparamm2.h>
List of all
members.
Public Member Functions
|
virtual
void |
Invalidate
()=0 |
virtual
void |
Validate
()=0 |
virtual
void |
Invalidate
(ParamID id, int tabIndex=0)=0 |
virtual
void |
UpdateUI
(TimeValue t)=0 |
virtual
void |
RedrawViews
(TimeValue t, DWORD flag=REDRAW_NORMAL)=0 |
virtual
Interval
& |
Validity
()=0 |
virtual
void |
SetParamBlock
(IParamBlock2
*pb)=0 |
virtual
MapID |
GetMapID
()=0 |
virtual
void |
SetUserDlgProc
(ParamMap2UserDlgProc
*proc=NULL)=0 |
virtual
ParamMap2UserDlgProc
* |
GetUserDlgProc
()=0 |
virtual
void |
ReplaceParam
(ParamID curParam, ParamID newParam) |
virtual
HWND |
GetHWnd
()=0 |
virtual
IRollupWindow
* |
GetIRollup
() |
virtual
IParamBlock2
* |
GetParamBlock
()=0 |
virtual
BOOL |
DlgActive
()=0 |
virtual
ParamBlockDesc2 * |
GetDesc
()=0 |
virtual
void |
ActivateDlg
(BOOL onOff)=0 |
virtual
int |
FindSubTexFromHWND
(HWND hw)=0 |
virtual
int |
FindSubMtlFromHWND
(HWND hw)=0 |
virtual
void |
Enable
(ParamID id, BOOL onOff, int tabIndex=0)=0 |
virtual
void |
SetText
(ParamID id, MCHAR *txt, int tabIndex=0)=0 |
virtual
void |
SetTooltip
(ParamID id, bool bEnable, const MCHAR *txt, int tabIndex=0)=0 |
|
Set tooltip of param UI control.
|
virtual
void |
SetRange
(ParamID id, float low, float high, int tabIndex=0)=0 |
virtual
void |
Show
(ParamID id, BOOL showHide, int tabIndex=0)=0 |
virtual
void |
SetThing
(ReferenceTarget *m)=0 |
Member Function Documentation
virtual void Invalidate |
( |
|
) |
[pure virtual] |
virtual void Validate |
( |
|
) |
[pure virtual] |
virtual void Invalidate |
( |
ParamID |
id, |
|
|
int |
tabIndex = 0 |
|
) |
|
[pure virtual] |
- Parameters:
-
id |
The permanent ID of the control requiring an update. |
tabIndex |
If the control is a Tab<> then this is the zero
based index into the table of the value to be invalidated. |
virtual void UpdateUI |
( |
TimeValue |
t |
) |
[pure virtual] |
- Parameters:
-
t |
The time to check for the update. |
virtual void RedrawViews |
( |
TimeValue |
t, |
|
|
DWORD |
flag =
REDRAW_NORMAL |
|
) |
|
[pure virtual] |
- Parameters:
-
t |
The time at which to redraw the viewports. |
flag |
You may specify one of the following:
REDRAW_BEGIN
Call this before you redraw.
REDRAW_INTERACTIVE
This allows the view quality to degrade to maintain
interactively.
REDRAW_END
If during interactive redraw the state degraded, this will redraw
the views in the undegraded state.
REDRAW_NORMAL
This redraws the views in the undegraded state. |
virtual Interval& Validity |
( |
|
) |
[pure virtual] |
virtual void SetParamBlock |
( |
IParamBlock2 * |
pb |
) |
[pure virtual] |
- Parameters:
-
pb |
Points to the new parameter block2 to use. |
virtual MapID GetMapID |
( |
|
) |
[pure virtual] |
- Parameters:
-
proc |
Points to the user dialog proc object to process the
controls. |
virtual void ReplaceParam |
( |
ParamID |
curParam, |
|
|
ParamID |
newParam |
|
) |
|
[inline, virtual] |
- Parameters:
-
curParam |
The parameter ID of the item to change. |
newParam |
The new parameter ID. |
{ UNUSED_PARAM(curParam); UNUSED_PARAM(newParam); }
virtual HWND GetHWnd |
( |
|
) |
[pure virtual] |
virtual BOOL DlgActive |
( |
|
) |
[pure virtual] |
virtual void ActivateDlg |
( |
BOOL |
onOff |
) |
[pure virtual] |
- Parameters:
-
onOff |
TRUE if becoming active; FALSE for inactive. |
virtual int FindSubTexFromHWND |
( |
HWND |
hw |
) |
[pure virtual] |
- Parameters:
-
hw |
The window handle of the control. |
virtual int FindSubMtlFromHWND |
( |
HWND |
hw |
) |
[pure virtual] |
virtual void Enable |
( |
ParamID |
id, |
|
|
BOOL |
onOff, |
|
|
int |
tabIndex = 0 |
|
) |
|
[pure virtual] |
- Parameters:
-
id |
The parameter ID of the control to enable/disable. |
onOff |
TRUE to enable; FALSE to disable. |
tabIndex |
If the control is a Tab<> then this is the zero
based index in the table of the item to enable/disable. |
virtual void SetText |
( |
ParamID |
id, |
|
|
MCHAR * |
txt, |
|
|
int |
tabIndex = 0 |
|
) |
|
[pure virtual] |
- Parameters:
-
id |
The ID of the parameter whose user interface text to
change. |
txt |
The new string to display. |
tabIndex |
If the parmeter is a Tab<> this is the zero based
index of the parameter in the table. |
virtual void SetTooltip |
( |
ParamID |
id, |
|
|
bool |
bEnable, |
|
|
const MCHAR * |
txt, |
|
|
int |
tabIndex = 0 |
|
) |
|
[pure virtual] |
Set tooltip of param UI control.
This method allows for turning on or off the tooltip for a
parameter user interface control.
- Parameters:
-
id |
- The ID of the parameter whose user interface tooltip to
set. |
bEnable |
- if true, the tooltip is enabled, otherwise disabled. When
disabled, the tooltip won't be displayed when the the mouse hovers
on top of the control. Enabling the tooltip repeatedly will have
the same effect as enabling it once. |
text |
- pointer to a string representing the text to be displayed in
the tooltip window. This parameter is ignored when the tooltip is
being disabled. |
tabIndex |
If the parameter is a Tab<> this is the zero
based index of the parameter in the table. |
virtual void SetRange |
( |
ParamID |
id, |
|
|
float |
low, |
|
|
float |
high, |
|
|
int |
tabIndex = 0 |
|
) |
|
[pure virtual] |
- Parameters:
-
id |
The ID of the parameter. |
low |
The low range for the spinner / slider. |
high |
The high range for the spinner / slider. |
tabIndex |
If the parmeter is a Tab<> this is the zero based
index of the parameter in the table. |
virtual void Show |
( |
ParamID |
id, |
|
|
BOOL |
showHide, |
|
|
int |
tabIndex = 0 |
|
) |
|
[pure virtual] |
- Parameters:
-
id |
The ID of the parameter. |
showHide |
TRUE to show; FALSE to hide. |
tabIndex |
If the parmeter is a Tab<> this is the zero based index
of the parameter in the table. |
- Parameters:
-
m |
The item which was set. |
IParamMap2 IParamMap2 IParamMap2
IParamMap2 IParamMap2 IParamMap2 IParamMap2 IParamMap2 IParamMap2
IParamMap2
IParamMap2 IParamMap2 IParamMap2
IParamMap2 IParamMap2 IParamMap2 IParamMap2 IParamMap2 IParamMap2
IParamMap2