Vuo  2.3.2
Classes | Typedefs | Functions
VuoLeap.cc File Reference

Description

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 Documentation

◆ VuoLeapInternal

typedef struct _VuoLeapInternal * VuoLeapInternal

Internal data for listening to a Leap controller.

Function Documentation

◆ VuoLeap_startListening()

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 264 of file VuoLeap.cc.

◆ VuoLeap_stopListening()

void VuoLeap_stopListening ( VuoLeap  l)

Stops listening for Leap frames.

Definition at line 281 of file VuoLeap.cc.

◆ VuoLeap_vuoDistanceFromLeapMillimeters()

static double VuoLeap_vuoDistanceFromLeapMillimeters ( double  millimeters,
Leap::InteractionBox  ibox 
)
static

Scales the specified millimeters into Vuo Coordinates, using the width of the interaction box as a reference.

Definition at line 53 of file VuoLeap.cc.

◆ VuoLeap_vuoLeapTouchZoneFromLeapTouchZone()

static VuoLeapTouchZone VuoLeap_vuoLeapTouchZoneFromLeapTouchZone ( Leap::Pointable::Zone  zone)
static

Returns a VuoLeapTouchZone type with a Leap::Pointable::Zone enum.

Definition at line 74 of file VuoLeap.cc.

◆ VuoLeap_vuoPointFromLeapPosition()

static VuoPoint3d VuoLeap_vuoPointFromLeapPosition ( Leap::Vector  position,
Leap::InteractionBox  ibox 
)
static

Transforms the specified position into Vuo Coordinates, using the center and width of the interaction box as a reference.

Definition at line 93 of file VuoLeap.cc.

◆ VuoLeap_vuoPointFromLeapVector()

static VuoPoint3d VuoLeap_vuoPointFromLeapVector ( Leap::Vector  vector,
Leap::InteractionBox  ibox 
)
static

Transforms the specified vector into Vuo Coordinates, using the width of the interaction box as a reference.

Definition at line 62 of file VuoLeap.cc.

◆ VuoPoint3dWithLeapVector()

static VuoPoint3d VuoPoint3dWithLeapVector ( Leap::Vector  vector)
static

Creates a VuoPoint3d from a Leap::Vector.

Definition at line 101 of file VuoLeap.cc.