Vuo
1.2.4
|
VuoLeap implementation.
Classes | |
class | VuoLeapListener |
Listens for Leap events, and passes them along to the specified trigger port. More... | |
struct | _VuoLeapInternal |
Internal data for listening to a Leap controller. More... | |
Typedefs | |
typedef struct _VuoLeapInternal * | VuoLeapInternal |
Internal data for listening to a Leap controller. | |
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. | |
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. | |
static VuoLeapTouchZone | VuoLeap_vuoLeapTouchZoneFromLeapTouchZone (Leap::Pointable::Zone zone) |
Returns a VuoLeapTouchZone type with a Leap::Pointable::Zone enum. | |
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. | |
static VuoPoint3d | VuoPoint3dWithLeapVector (Leap::Vector vector) |
Creates a VuoPoint3d from a Leap::Vector . | |
VuoLeap | VuoLeap_startListening (VuoOutputTrigger(receivedFrame, VuoLeapFrame)) |
Starts listening for Leap frames. | |
void | VuoLeap_stopListening (VuoLeap l) |
Stops listening for Leap frames. | |
struct _VuoLeapInternal |
Class Members | ||
---|---|---|
Controller * | controller | |
VuoLeapListener * | listener |
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
.
void VuoLeap_stopListening | ( | VuoLeap | l | ) |
Stops listening for Leap frames.
|
static |
Scales the specified millimeters into Vuo Coordinates, using the width of the interaction box as a reference.
|
static |
Returns a VuoLeapTouchZone type with a Leap::Pointable::Zone enum.
|
static |
Transforms the specified position into Vuo Coordinates, using the center and width of the interaction box as a reference.
|
static |
Transforms the specified vector into Vuo Coordinates, using the width of the interaction box as a reference.
|
static |
Creates a VuoPoint3d
from a Leap::Vector
.