5DT Data Glove plugin 1.0
Functions

Scol functions definition

Functions

int _OpenGloveDevice (mmachine m)
 _OpenGloveDevice : This function opens, initializes and calibrates a 5DTData Glove device
int _CloseGloveDevice (mmachine m)
 _CloseGloveDevice : This function closes a 5DTData Glove device
int _GetSerialNumber (mmachine m)
 _GetSerialNumber : This function gets the data glove serial number
int _GetType (mmachine m)
 _GetSerialNumber : This function gets the data glove type (5, 14 or 16 sensors)
int _GetUSBIndex (mmachine m)
 _GetUSBIndex : This function gets the index of the USB port on which the data glove is opened
int _Calibrate (mmachine m)
 _Calibrate : This function starts the calibration for the data glove
int _CBGloveNewDataWithThumb (mmachine m)
 _CBGloveNewDataWithThumb : This function sets the Callback for new data (including thumb) received from data glove
int _CBGloveNewDataWithoutThumb (mmachine m)
 _CBGloveNewDataWithoutThumb : This function sets the Callback for new data (excluding thumb) received from data glove
int _CBGloveHand (mmachine m)
 _CBGloveHand : This function sets the Callback for new hand gesture received from data glove
int _CBCalibrationStart (mmachine m)
 _CBCalibrationStart : This function sets the Callback for a calibration started event
int _CBCalibrationEnd (mmachine m)
 _CBCalibrationEnd : This function sets the Callback for a calibration ended event

Detailed Description

Scol functions definition


Function Documentation

int _Calibrate ( mmachine  m)

_Calibrate : This function starts the calibration for the data glove

Prototype: fun [ObjGlove] I

Parameters:
ObjGlove: the current ObjGlove
Returns:
I : 0 if success, NIL otherwise

Definition at line 372 of file Glove.cpp.

int _CBCalibrationEnd ( mmachine  m)

_CBCalibrationEnd : This function sets the Callback for a calibration ended event

Prototype: fun [ObjGlove fun [ObjGlove u0] u1 u0] ObjGlove

Parameters:
ObjGlove: the current ObjGlove
fun[ObjGlove u0] : SCOL CallBack function to call
u1: user parameter
u0: user parameter
Returns:
I : ObjGlove if success

Definition at line 732 of file Glove.cpp.

int _CBCalibrationStart ( mmachine  m)

_CBCalibrationStart : This function sets the Callback for a calibration started event

Prototype: fun [ObjGlove fun [ObjGlove u0] u1 u0] ObjGlove

Parameters:
ObjGlove: the current ObjGlove
fun[ObjGlove u0] : SCOL CallBack function to call
u1: user parameter
u0: user parameter
Returns:
I : ObjGlove if success

Definition at line 693 of file Glove.cpp.

int _CBGloveHand ( mmachine  m)

_CBGloveHand : This function sets the Callback for new hand gesture received from data glove

Prototype: fun [ObjGlove fun [ObjGlove u0 I] u1 u0] ObjGlove

Parameters:
ObjGlove: the current ObjGlove
fun[ObjGlove u0 I] : SCOL CallBack function to call
u1: user parameter
u0: user parameter
Returns:
I : ObjGlove if success

Definition at line 647 of file Glove.cpp.

int _CBGloveNewDataWithoutThumb ( mmachine  m)

_CBGloveNewDataWithoutThumb : This function sets the Callback for new data (excluding thumb) received from data glove

Prototype: fun [ObjGlove fun [ObjGlove u0 [I I] [I I] [I I] [I I] I] u1 u0] ObjGlove

Parameters:
ObjGlove: the current ObjGlove
fun[ObjGlove u0 [I I] [I I] [I I] [I I] I] : SCOL CallBack function to call
u1: user parameter
u0: user parameter
Returns:
I : ObjGlove if success

Definition at line 543 of file Glove.cpp.

int _CBGloveNewDataWithThumb ( mmachine  m)

_CBGloveNewDataWithThumb : This function sets the Callback for new data (including thumb) received from data glove

Prototype: fun [ObjGlove fun [ObjGlove u0 [I I] [I I] [I I] [I I] [I I] I] u1 u0] ObjGlove

Parameters:
ObjGlove: the current ObjGlove
fun[ObjGlove u0 [I I] [I I] [I I] [I I] [I I] I] : SCOL CallBack function to call
u1: user parameter
u0: user parameter
Returns:
I : ObjGlove if success

Definition at line 420 of file Glove.cpp.

int _CloseGloveDevice ( mmachine  m)

_CloseGloveDevice : This function closes a 5DTData Glove device

Prototype: fun [ObjGlove I]

Parameters:
ObjGlove: the current ObjGlove
Returns:
I : 0 if success, NIL otherwise

Definition at line 196 of file Glove.cpp.

int _GetSerialNumber ( mmachine  m)

_GetSerialNumber : This function gets the data glove serial number

Prototype: fun [ObjGlove] S

Parameters:
ObjGlove: the current ObjGlove
Returns:
S : data glove serial number

Definition at line 234 of file Glove.cpp.

int _GetType ( mmachine  m)

_GetSerialNumber : This function gets the data glove type (5, 14 or 16 sensors)

Prototype: fun [ObjGlove] S

Parameters:
ObjGlove: the current ObjGlove
Returns:
S : data glove type

Definition at line 281 of file Glove.cpp.

int _GetUSBIndex ( mmachine  m)

_GetUSBIndex : This function gets the index of the USB port on which the data glove is opened

Prototype: fun [ObjGlove] I

Parameters:
ObjGlove: the current ObjGlove
Returns:
I : USB port index

Definition at line 328 of file Glove.cpp.

int _OpenGloveDevice ( mmachine  m)

_OpenGloveDevice : This function opens, initializes and calibrates a 5DTData Glove device

Prototype: fun [Chn I] ObjGlove

Parameters:
Chn: the current channel
I: gesture mode (0 to get original data without thumb, 1 to get data including thumb)
Returns:
ObjGlove : The 5DT Data Glove object or NIL if creation fails

Definition at line 115 of file Glove.cpp.