IListControl
provides API access to list control functionality.
The interface is returned by calling
GetIListControlInterface.
- See also:
- Class Control,
Class FPMixinInterface
- Description:
- This class is available in release 4.0 and later only.
This class represents the interface to the list controller. You can
obtain a pointer to the list control interface using;
GetIListControlInterface(cd). This macro will return
(IListControl*)(CD)->GetFPInterface(LIST_CONTROLLER_INTERFACE).
The Class ID's of individual controllers are;
FLOATLIST_CONTROL_CLASS_ID, POINT3LIST_CONTROL_CLASS_ID,
POSLIST_CONTROL_CLASS_ID, ROTLIST_CONTROL_CLASS_ID,
SCALELIST_CONTROL_CLASS_ID, DUMMY_CONTROL_CLASS_ID,
MASTERLIST_CONTROL_CLASS_ID.
All methods of this class are Implemented by the System.
Public Types
|
enum |
{
list_getNumItems,
list_setActive,
list_getActive,
list_cutItem,
list_pasteItem,
list_deleteItem,
list_count,
list_setActive_prop,
list_getActive_prop,
list_getName,
list_setName,
list_getSubCtrl,
list_getSubCtrlWeight
} |
Public Member Functions
|
BEGIN_FUNCTION_MAP |
FN_0
(list_getNumItems, TYPE_INT, GetListCount) |
|
VFN_1
(list_setActive, SetActive, TYPE_INDEX) |
|
FN_0
(list_getActive, TYPE_INDEX, GetActive) |
|
VFN_1
(list_deleteItem, DeleteItem, TYPE_INDEX) |
|
VFN_1
(list_cutItem, CutItem, TYPE_INDEX) |
|
VFN_1
(list_pasteItem, PasteItem, TYPE_INDEX) |
|
FN_1
(list_getName, TYPE_TSTR_BV, GetName, TYPE_INDEX) |
|
VFN_2
(list_setName, SetName, TYPE_INDEX, TYPE_STRING) |
|
RO_PROP_FN
(list_count, GetListCount, TYPE_INT) |
|
PROP_FNS
(list_getActive_prop, GetActive, list_setActive_prop, SetActive,
TYPE_INDEX) |
|
FN_1
(list_getSubCtrl, TYPE_CONTROL, GetSubCtrl, TYPE_INDEX) |
|
FNT_1
(list_getSubCtrlWeight, TYPE_FLOAT, GetSubCtrlWeight,
TYPE_INDEX) |
END_FUNCTION_MAP
FPInterfaceDesc * |
GetDesc
() |
virtual
int |
GetListCount
()=0 |
virtual
void |
SetActive
(int index)=0 |
virtual
int |
GetActive
()=0 |
virtual
void |
DeleteItem
(int index)=0 |
virtual
void |
CutItem
(int index)=0 |
virtual
void |
PasteItem
(int index)=0 |
virtual
void |
SetName
(int index, MSTR
name)=0 |
virtual
MSTR |
GetName
(int index)=0 |
virtual
Control * |
GetSubCtrl
(int in_index) const =0 |
|
Get a subcontroller from its index.
|
virtual
float |
GetSubCtrlWeight
(int in_index, TimeValue in_time) const =0 |
|
Get the weight of a subcontroller at a given
time.
|