|
Torque2D Reference
|
#include <leapMotionManager.h>
Classes | |
| struct | FingerEvent |
| class | MotionListener |
Public Member Functions | |
| LeapMotionManager () | |
| ~LeapMotionManager () | |
| void | enable (bool enabledState) |
| void | disable () |
| bool | getEnabled () |
| bool | getActive () |
| void | setActive (bool enabledState) |
| void | toggleMouseControl (bool enabledState) |
| bool | getMouseControlToggle () |
| bool | setMinCircleProgress (const F32 value) |
| F32 | getMinCircleProgress () |
| bool | configureLeapGesture (const char *configString, const F32 value) |
| void | process (const Leap::Controller &controller) |
| void | processHand (const Leap::Hand &hand, S32 id) |
| void | processHandPointables (const Leap::PointableList &pointables) |
| void | processGestures (const Leap::GestureList &gestures) |
| void | generateMouseEvent (const Leap::Controller &controller) |
| Vector2 | getPointFromProjection (Point3F position) |
| Vector2 | getPointFromIntersection (S32 pointableID) |
Static Public Member Functions | |
| static void | staticInit () |
Static Public Attributes | |
| static bool | smEnableDevice = true |
| static bool | smGenerateIndividualEvents = true |
| static bool | smKeepHandIndexPersistent = false |
| static bool | smKeepPointableIndexPersistent = false |
| static bool | smGenerateSingleHandRotationAsAxisEvents = false |
| static F32 | smMaximumHandAxisAngle = 25.0f |
| static bool | smGenerateWholeFrameEvents = false |
| static U32 | LM_FRAMEVALIDDATA = 0 |
| static U32 | LM_HAND [LeapMotionConstants::MaxHands] = {0} |
| static U32 | LM_HANDAXISX = 0 |
| static U32 | LM_HANDAXISY = 0 |
| static U32 | LM_HANDPOINTABLE [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand] = {0} |
| static U32 | LM_HANDPOINTABLEROT [LeapMotionConstants::MaxHands][LeapMotionConstants::MaxPointablesPerHand] = {0} |
| static U32 | LM_FRAME = 0 |
Protected Attributes | |
| bool | mEnabled |
| F32 | mMinCircleProgress |
| Leap::Controller * | mController |
| The connection to the Leap Motion. More... | |
| MotionListener * | mListener |
| Our Leap Motion listener class. More... | |
| void * | mActiveMutex |
| Used with the LM listener object. More... | |
| bool | mActive |
| Is the Leap Motion active. More... | |
| bool | mMouseControl |
| Is the Manager acting like a mouse. More... | |
| Leap::Frame | mLastFrame |
| Last stored frame. More... | |
| ~LeapMotionManager | ( | ) |
| bool configureLeapGesture | ( | const char * | configString, |
| const F32 | value | ||
| ) |
| void disable | ( | ) |
| void enable | ( | bool | enabledState | ) |
| void generateMouseEvent | ( | const Leap::Controller & | controller | ) |
| bool getActive | ( | ) |
|
inline |
|
inline |
| bool getMouseControlToggle | ( | ) |
| Vector2 getPointFromIntersection | ( | S32 | pointableID | ) |
| void process | ( | const Leap::Controller & | controller | ) |
| void processGestures | ( | const Leap::GestureList & | gestures | ) |
| void processHand | ( | const Leap::Hand & | hand, |
| S32 | id | ||
| ) |
| void processHandPointables | ( | const Leap::PointableList & | pointables | ) |
| void setActive | ( | bool | enabledState | ) |
| bool setMinCircleProgress | ( | const F32 | value | ) |
|
static |
| void toggleMouseControl | ( | bool | enabledState | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
Is the Leap Motion active.
|
protected |
Used with the LM listener object.
|
protected |
The connection to the Leap Motion.
|
protected |
|
protected |
Last stored frame.
|
protected |
Our Leap Motion listener class.
|
protected |
|
protected |
Is the Manager acting like a mouse.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.10