VuoLeap implementation.
Definition in file VuoLeap.cc.
Go to the source code of this file.
Classes | |
class | VuoLeapListener |
Listens for Leap events, and passes them along to the specified trigger port. More... | |
Typedefs | |
typedef struct _VuoLeapInternal * | VuoLeapInternal |
Internal data for listening to a Leap controller. More... | |
Functions | |
static double | VuoLeap_vuoDistanceFromLeapMillimeters (double millimeters, Leap::InteractionBox ibox) |
Scales the specified millimeters into Vuo Coordinates, using the width of the interaction box as a reference. More... | |
static VuoPoint3d | VuoLeap_vuoPointFromLeapVector (Leap::Vector vector, Leap::InteractionBox ibox) |
Transforms the specified vector into Vuo Coordinates, using the width of the interaction box as a reference. More... | |
static VuoLeapTouchZone | VuoLeap_vuoLeapTouchZoneFromLeapTouchZone (Leap::Pointable::Zone zone) |
Returns a VuoLeapTouchZone type with a Leap::Pointable::Zone enum. More... | |
static VuoPoint3d | VuoLeap_vuoPointFromLeapPosition (Leap::Vector position, Leap::InteractionBox ibox) |
Transforms the specified position into Vuo Coordinates, using the center and width of the interaction box as a reference. More... | |
static VuoPoint3d | VuoPoint3dWithLeapVector (Leap::Vector vector) |
Creates a VuoPoint3d from a Leap::Vector . More... | |
VuoLeap | VuoLeap_startListening (VuoOutputTrigger(receivedFrame, VuoLeapFrame)) |
Starts listening for Leap frames. More... | |
void | VuoLeap_stopListening (VuoLeap l) |
Stops listening for Leap frames. More... | |
typedef struct _VuoLeapInternal * VuoLeapInternal |
Internal data for listening to a Leap controller.
VuoLeap VuoLeap_startListening | ( | VuoOutputTrigger(receivedFrame, VuoLeapFrame) | ) |
Starts listening for Leap frames.
When a frame is received, the specified trigger function is called.
Returns an object that can be used to stop listening.
May be called multiple times per process, since the Leap SDK kindly allows multiple instances of Leap::Controller
.
Definition at line 257 of file VuoLeap.cc.
void VuoLeap_stopListening | ( | VuoLeap | l | ) |
Stops listening for Leap frames.
Definition at line 274 of file VuoLeap.cc.
|
static |
Scales the specified millimeters into Vuo Coordinates, using the width of the interaction box as a reference.
Definition at line 46 of file VuoLeap.cc.
|
static |
Returns a VuoLeapTouchZone type with a Leap::Pointable::Zone enum.
Definition at line 67 of file VuoLeap.cc.
|
static |
Transforms the specified position into Vuo Coordinates, using the center and width of the interaction box as a reference.
Definition at line 86 of file VuoLeap.cc.
|
static |
Transforms the specified vector into Vuo Coordinates, using the width of the interaction box as a reference.
Definition at line 55 of file VuoLeap.cc.
|
static |
Creates a VuoPoint3d
from a Leap::Vector
.
Definition at line 94 of file VuoLeap.cc.