Project

General

Profile

LeapMotion Scol plugin
Scol functions definition

Functions

int _CRleapMotionDevice (mmachine m)
 _CRleapMotionDevice : This function create a LEAPMOTION object More...
 
int _DSleapMotionDevice (mmachine m)
 _DSleapMotionDevice : Destroy LEAPMOTION object More...
 
int _GetLeapMotionHand (mmachine m)
 _GetLeapMotionHand : Get a LEAPMOTION hand position and orientation More...
 
int _GetLeapMotionHandExt (mmachine m)
 _GetLeapMotionHandExt : Get a LEAPMOTION hand position, orientation, direction and normal More...
 
int _GetLeapMotionTool (mmachine m)
 _GetLeapMotionTool : Get a LEAPMOTION tool position, orientation and velocity More...
 
int _GetLeapMotionHandFingers (mmachine m)
 _GetLeapMotionHandFingers : Get the LEAPMOTION sensor fingers data from a hand More...
 
int _GetLeapMotionHandFingersWithJoints (mmachine m)
 _GetLeapMotionHandFingersWithJoints : Get the LEAPMOTION sensor fingers data from a hand with finger joints positions More...
 
int _CBLeapMotionCircleGesture (mmachine m)
 _CBLeapMotionCircleGesture : Called on a Circle gesture More...
 
int _CBLeapMotionSwipeGesture (mmachine m)
 _CBLeapMotionSwipeGesture : Called on a Swipe gesture More...
 
int _CBLeapMotionKeyTapGesture (mmachine m)
 _CBLeapMotionKeyTapGesture : Called on a KeyTap gesture More...
 
int _CBLeapMotionScreenTapGesture (mmachine m)
 _CBLeapMotionScreenTapGesture : Called on a ScreenTap gesture More...
 
int _GetLeapMotionGrabStrength (mmachine m)
 _GetLeapMotionGrabStrength : Get a LEAPMOTION hand Grab strengh More...
 
int _GetLeapMotionPinchStrength (mmachine m)
 _GetLeapMotionPinchStrength : Get a LEAPMOTION hand Pinch strengh More...
 
int _SetleapMotionHmdOptimization (mmachine m)
 _SetleapMotionHmdOptimization : Set the LEAPMOTION Hmd optimization enable or disable More...
 

Detailed Description

Scol functions definition

Function Documentation

◆ _CBLeapMotionCircleGesture()

int _CBLeapMotionCircleGesture ( mmachine  m)

_CBLeapMotionCircleGesture : Called on a Circle gesture

fun [ObjLeapMotion fun [ObjLeapMotion u0 I I I F F F] u1 u0] ObjLeapMotion

Parameters
ObjLeapMotion: LEAPMOTION Object
fun[ObjLeapMotion u0 I I I F F F] u1 : SCOL CallBack function to call
-I : state, 1 start, 2 progress, 3 end
-I : hand
-I : finger or tool id
-F : direction 1.0 for clockwise, -1.0 for counterclockwise
-F : radius
-F : progress, number of circles
u0: user parameter
Returns
ObjLeapMotion : the same object

Definition at line 808 of file scolplugin.cpp.

◆ _CBLeapMotionKeyTapGesture()

int _CBLeapMotionKeyTapGesture ( mmachine  m)

_CBLeapMotionKeyTapGesture : Called on a KeyTap gesture

fun [ObjLeapMotion fun [ObjLeapMotion u0 I I [F F F] [F F F]] u1 u0] ObjLeapMotion

Parameters
ObjLeapMotion: LEAPMOTION Object
fun[ObjLeapMotion u0 I I [F F F] [F F F]] u1 : SCOL CallBack function to call
-I : hand
-I : finger or tool id
-[F F F] : direction
-[F F F] : position
u0: user parameter
Returns
ObjLeapMotion : the same object

Definition at line 924 of file scolplugin.cpp.

◆ _CBLeapMotionScreenTapGesture()

int _CBLeapMotionScreenTapGesture ( mmachine  m)

_CBLeapMotionScreenTapGesture : Called on a ScreenTap gesture

fun [ObjLeapMotion fun [ObjLeapMotion u0 I I [F F F] [F F F]] u1 u0] ObjLeapMotion

Parameters
ObjLeapMotion: LEAPMOTION Object
fun[ObjLeapMotion u0 I I [F F F] [F F F]] u1 : SCOL CallBack function to call
-I : hand
-I : finger or tool id
-[F F F] : direction
-[F F F] : position
u0: user parameter
Returns
ObjLeapMotion : the same object

Definition at line 993 of file scolplugin.cpp.

◆ _CBLeapMotionSwipeGesture()

int _CBLeapMotionSwipeGesture ( mmachine  m)

_CBLeapMotionSwipeGesture : Called on a Swipe gesture

fun [ObjLeapMotion fun [ObjLeapMotion u0 I I I [F F F] F F] u1 u0] ObjLeapMotion

Parameters
ObjLeapMotion: LEAPMOTION Object
fun[ObjLeapMotion u0 I I I [F F F] F F] u1 : SCOL CallBack function to call
-I : state, 1 start, 2 progress, 3 end
-I : hand
-I : finger or tool id
-[F F F] : direction
-F : speed in millimeter per second
-F : progress, duration in second
u0: user parameter
Returns
ObjLeapMotion : the same object

Definition at line 861 of file scolplugin.cpp.

◆ _CRleapMotionDevice()

int _CRleapMotionDevice ( mmachine  m)

_CRleapMotionDevice : This function create a LEAPMOTION object

Prototype: fun [Chn fun [ObjLeapMotion u0] u1 u0 fun [ObjLeapMotion u2] u3 u2] ObjLeapMotion

Parameters
Chn: channel
fun[ObjLeapMotion u0] u1 : callback on connected
u0: connected callback parameter
fun[ObjLeapMotion u2] u3 : callback on disconnected
u2: disconnected callback parameter
Returns
ObjLeapMotion : the LEAPMOTION object if success, NIL otherwise

Definition at line 111 of file scolplugin.cpp.

◆ _DSleapMotionDevice()

int _DSleapMotionDevice ( mmachine  m)

_DSleapMotionDevice : Destroy LEAPMOTION object

fun [ObjLeapMotion] I

Parameters
ObjLeapMotion: LEAPMOTION Object to destroy
Returns
I : 0 if success, NIL otherwise

Definition at line 177 of file scolplugin.cpp.

◆ _GetLeapMotionGrabStrength()

int _GetLeapMotionGrabStrength ( mmachine  m)

_GetLeapMotionGrabStrength : Get a LEAPMOTION hand Grab strengh

fun [ObjLeapMotion I] F

Parameters
ObjLeapMotion: LEAPMOTION Object
I: hand index
Returns
F: the grab strengh between 0.0 to 1.0 if success, NIL otherwise

Definition at line 1057 of file scolplugin.cpp.

◆ _GetLeapMotionHand()

int _GetLeapMotionHand ( mmachine  m)

_GetLeapMotionHand : Get a LEAPMOTION hand position and orientation

fun [ObjLeapMotion I I] [[F F F] [F F F] [F F F]]

Parameters
ObjLeapMotion: LEAPMOTION Object
I: hand index
I: 1 for optimized position
Returns
[[F F F] [F F F] [F F F]] : the position, orientation (pitch yaw roll) and velocity if success, NIL otherwise

Definition at line 208 of file scolplugin.cpp.

◆ _GetLeapMotionHandExt()

int _GetLeapMotionHandExt ( mmachine  m)

_GetLeapMotionHandExt : Get a LEAPMOTION hand position, orientation, direction and normal

fun [ObjLeapMotion I I] [[F F F] [F F F] [F F F] [F F F] [F F F] F]

Parameters
ObjLeapMotion: LEAPMOTION Object
I: hand index
I: 1 for optimized position
Returns
[[F F F] [F F F] [F F F] [F F F] [F F F] F] : the position, orientation (pitch yaw roll), velocity, direction, normal and confidence if success, NIL otherwise

Definition at line 311 of file scolplugin.cpp.

◆ _GetLeapMotionHandFingers()

int _GetLeapMotionHandFingers ( mmachine  m)

_GetLeapMotionHandFingers : Get the LEAPMOTION sensor fingers data from a hand

fun [ObjLeapMotion I I] [[[F F F] [F F F] [F F] I] r1]

Parameters
ObjLeapMotion: LEAPMOTION Object
I: hand index
I: 1 for optimized position
Returns
[[[F F F] [F F F] [F F] I] r1] : list of fingers position, orientation, screen pos and id if success, NIL otherwise

Definition at line 544 of file scolplugin.cpp.

◆ _GetLeapMotionHandFingersWithJoints()

int _GetLeapMotionHandFingersWithJoints ( mmachine  m)

_GetLeapMotionHandFingersWithJoints : Get the LEAPMOTION sensor fingers data from a hand with finger joints positions

fun [ObjLeapMotion I I] [[[F F F] [F F F] [F F] [[F F F] r1] I] r1]

Parameters
ObjLeapMotion: LEAPMOTION Object
I: hand index
I: 1 for optimized position
Returns
[[[F F F] [F F F] [F F] [[F F F] r1] I] r1] : list of fingers position, orientation, screen pos, joints positions list and id if success, NIL otherwise

Definition at line 657 of file scolplugin.cpp.

◆ _GetLeapMotionPinchStrength()

int _GetLeapMotionPinchStrength ( mmachine  m)

_GetLeapMotionPinchStrength : Get a LEAPMOTION hand Pinch strengh

fun [ObjLeapMotion I] F

Parameters
ObjLeapMotion: LEAPMOTION Object
I: hand index
Returns
F: the pinch strengh between 0.0 to 1.0 if success, NIL otherwise

Definition at line 1106 of file scolplugin.cpp.

◆ _GetLeapMotionTool()

int _GetLeapMotionTool ( mmachine  m)

_GetLeapMotionTool : Get a LEAPMOTION tool position, orientation and velocity

fun [ObjLeapMotion I I] [[F F F] [F F F] [F F F]]

Parameters
ObjLeapMotion: LEAPMOTION Object
I: tool index
I: 1 for optimized position
Returns
[[F F F] [F F F] [F F F]] : the position, orientation (pitch yaw roll) and velocity if success, NIL otherwise

Definition at line 442 of file scolplugin.cpp.

◆ _SetleapMotionHmdOptimization()

int _SetleapMotionHmdOptimization ( mmachine  m)

_SetleapMotionHmdOptimization : Set the LEAPMOTION Hmd optimization enable or disable

fun [ObjLeapMotion I] I

Parameters
ObjLeapMotion: LEAPMOTION Object
I: enable state 0 or 1
Returns
0: 0 if success, NIL otherwise

Definition at line 1156 of file scolplugin.cpp.