Detailed Description
- See also:
- Structure ParamDef, List of ParamType2
Choices, Class
ReferenceMaker, Structure PB2Value.
- Description:
- Any parameter in a block can have an accessor callback object
that has its Get()
or Set()
method called whenever the parameter is accessed. This may be used
to provide access to dynamically-computed virtual parameters and
sometimes to allow parameter-specific processing by the class as
the parameter in the block is modified (such as keeping object data
members up-to-date).
The Get()
and Set()
methods are called at all times when a parameter is accessed,
including parameters that are animated. The Get()
method is called after the controller is accessed, so the current
controller value is seen and can be optionally overridden in the
Get()
method. Note that the controller is accessed whenever the 3ds Max
time is changed (such as a frame slider move) and so the
Get()
method will be called each frame as this happens.
A pointer to an instance of this class is a data member of the
ParamDef
structure.
#include <iparamb2.h>
List of all
members.
Public Types
|
enum |
tab_changes
{
tab_insert,
tab_append,
tab_delete,
tab_ref_deleted,
tab_setcount,
tab_sort
} |
Public Member Functions
|
virtual
void |
Get
(PB2Value &v,
ReferenceMaker
*owner, ParamID id, int tabIndex, TimeValue t, Interval &valid) |
virtual
void |
Set
(PB2Value &v,
ReferenceMaker
*owner, ParamID id, int tabIndex, TimeValue t) |
virtual
BOOL |
KeyFrameAtTime
(ReferenceMaker
*owner, ParamID id, int tabIndex, TimeValue t) |
virtual
MSTR |
GetLocalName
(ReferenceMaker
*owner, ParamID id, int tabIndex) |
virtual
void |
TabChanged
(tab_changes
changeCode, Tab<
PB2Value > *tab,
ReferenceMaker
*owner, ParamID id, int tabIndex, int count) |
virtual
void |
DeleteThis
() |
Member Enumeration Documentation
- Enumerator:
-
tab_insert |
|
tab_append |
|
tab_delete |
|
tab_ref_deleted |
|
tab_setcount |
|
tab_sort |
|
Member Function Documentation
- Parameters:
- PB2Value& v
The value being accessed.
ReferenceMaker* owner
Points to the owner of the parameter.
ParamID id
The permanent ID of the parameter.
int tabIndex
If the parameter is a Tab<> this is the zero based
index of the parameter in the table.
TimeValue t
The current time the get is taking place.
Interval
&valid
The validity interval for the value.
- Default Implementation:
- {}
Reimplemented in
MSPluginPBAccessor.
virtual void Set |
( |
PB2Value & |
v, |
|
|
ReferenceMaker * |
owner, |
|
|
ParamID |
id, |
|
|
int |
tabIndex, |
|
|
TimeValue |
t |
|
) |
|
[inline, virtual] |
- Parameters:
- PB2Value& v
The value being set.
ReferenceMaker* owner
Points to the owner of the parameter.
ParamID id
The permanent ID of the parameter.
int tabIndex
If the parameter is a Tab<> this is the zero based
index of the parameter in the table.
TimeValue t
The current time the set is taking place.
- Default Implementation:
- {}
Reimplemented in
MSPluginPBAccessor.
virtual BOOL KeyFrameAtTime |
( |
ReferenceMaker * |
owner, |
|
|
ParamID |
id, |
|
|
int |
tabIndex, |
|
|
TimeValue |
t |
|
) |
|
[inline, virtual] |
- Parameters:
- ReferenceMaker* owner
Points to the owner of the parameter.
ParamID id
The permanent ID of the parameter.
int tabIndex
TimeValue t
The current time.
- Default Implementation:
- { return FALSE; }
Reimplemented in
MSPluginPBAccessor.
virtual MSTR GetLocalName |
( |
ReferenceMaker * |
owner, |
|
|
ParamID |
id, |
|
|
int |
tabIndex |
|
) |
|
[inline, virtual] |
- Parameters:
- ReferenceMaker* owner
Points to the owner of the parameter.
ParamID id
The permanent ID of the parameter.
int tabIndex
If the parameter is a Tab<> this is the zero based
index of the parameter in the table.
- Default Implementation:
- { return _M(""); }
- Parameters:
- tab_changes changeCode
Describes the change that has just occurred to the Tab<> parameter. One of
the following enumerations:
enum tab_changes { tab_insert, tab_append, tab_delete,
tab_ref_deleted, tab_setcount, tab_sort };
Tab<PB2Value>* tab
Points to the actual Tab<> in the pblock
parameter.
ReferenceMaker* owner
Points to the owner of the parameter.
ParamID id
The permanent ID of the parameter.
int tabIndex
The start index of the change (for tab_insert, tab_append,
tab_delete, tab_ref_deleted)
int count
The number of elements changed (for tab_insert, tab_append,
tab_delete).
Reimplemented in
MSPluginPBAccessor.
virtual void DeleteThis |
( |
|
) |
[inline, virtual] |
PBAccessor PBAccessor PBAccessor
PBAccessor PBAccessor PBAccessor PBAccessor PBAccessor PBAccessor
PBAccessor
PBAccessor PBAccessor PBAccessor
PBAccessor PBAccessor PBAccessor PBAccessor PBAccessor PBAccessor
PBAccessor