Detailed Description
- See also:
- Class IParamBlock, Class IParamMap.
- Description:
- This class represents a virtual array of parameters. Parameter
are accessed using an integer index and GetValue()
and SetValue()
methods. Parameter blocks are one such implementation of this
class, but it can also be useful to implement a class that
abstracts non-parameter block variables. The ParamMap class uses
this base class so that a ParamMap can be used to control UI for
not only parameter blocks but also variables stored outside of
parameter blocks. The Advanced Topics section on Parameter Maps discusses how
this is done.
Default implementation of these methods are provided which simply
return FALSE.
#include <iparamb.h>
List of all
members.
Public Member Functions
|
virtual
BOOL |
SetValue
(int i, TimeValue t, float v) |
virtual
BOOL |
SetValue
(int i, TimeValue t, int v) |
virtual
BOOL |
SetValue
(int i, TimeValue t, Point3 &v) |
virtual
BOOL |
GetValue
(int i, TimeValue t, float &v, Interval &ivalid) |
virtual
BOOL |
GetValue
(int i, TimeValue t, int &v, Interval &ivalid) |
virtual
BOOL |
GetValue
(int i, TimeValue t, Point3 &v, Interval &ivalid) |
virtual
IParamBlock
* |
GetParamBlock
() |
virtual
BOOL |
KeyFrameAtTime
(int i, TimeValue t) |
Member Function Documentation
virtual BOOL SetValue |
( |
int |
i, |
|
|
TimeValue |
t, |
|
|
float |
v |
|
) |
|
[inline, virtual] |
- Parameters:
- int i
This is the index into the virtual array of the value to set.
TimeValue t
This is the time at which to set the value.
float v
This is the value to set.
- Returns:
- This is not currently used.
Reimplemented in IParamBlock.
virtual BOOL SetValue |
( |
int |
i, |
|
|
TimeValue |
t, |
|
|
int |
v |
|
) |
|
[inline, virtual] |
virtual BOOL SetValue |
( |
int |
i, |
|
|
TimeValue |
t, |
|
|
Point3 & |
v |
|
) |
|
[inline, virtual] |
virtual BOOL GetValue |
( |
int |
i, |
|
|
TimeValue |
t, |
|
|
float & |
v, |
|
|
Interval & |
ivalid |
|
) |
|
[inline, virtual] |
- Parameters:
- int i
This is the index into the virtual array of the value to
retrieve.
TimeValue t
This is the time at which to retrieve the value. For constants pass
0.
float &v
This is the value to retrieve.
Interval
&ivalid
This is the validity interval to update to reflect the validity of
this parameter.
- Returns:
- If the value was retrieved TRUE is returned; otherwise FALSE is
returned.
Reimplemented in IParamBlock.
virtual BOOL GetValue |
( |
int |
i, |
|
|
TimeValue |
t, |
|
|
int & |
v, |
|
|
Interval & |
ivalid |
|
) |
|
[inline, virtual] |
virtual BOOL GetValue |
( |
int |
i, |
|
|
TimeValue |
t, |
|
|
Point3 & |
v, |
|
|
Interval & |
ivalid |
|
) |
|
[inline, virtual] |
virtual IParamBlock* GetParamBlock |
( |
|
) |
[inline, virtual] |
- Returns:
- Returns a pointer to the parameter block if one is used; NULL
otherwise.
Reimplemented in IParamBlock.
virtual BOOL KeyFrameAtTime |
( |
int |
i, |
|
|
TimeValue |
t |
|
) |
|
[inline, virtual] |
- Parameters:
- int i
Zero based index of the parameter to check.
TimeValue t
The time to check.
- Default Implementation:
- {return FALSE;}
IParamArray IParamArray IParamArray
IParamArray IParamArray IParamArray IParamArray IParamArray
IParamArray IParamArray
IParamArray IParamArray IParamArray
IParamArray IParamArray IParamArray IParamArray IParamArray
IParamArray IParamArray