Vuo  0.5.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Functions
VuoLeap.cc File Reference

Description

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 _VuoLeapInternalVuoLeapInternal
 Internal data for listening to a Leap controller.
 

Functions

double VuoLeap_vuoDistanceFromLeapMillimeters (double millimeters, Leap::InteractionBox ibox)
 Scales the specified milimeters into Vuo Coordinates, using the width of the interaction box as a reference.
 
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.
 
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.
 
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.
 

Class Documentation

struct _VuoLeapInternal
Class Members
Controller * controller
VuoLeapListener * listener

Typedef Documentation

Internal data for listening to a Leap controller.

Function Documentation

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.

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

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

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.

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.

VuoPoint3d VuoPoint3dWithLeapVector ( Leap::Vector  vector)

Creates a VuoPoint3d from a Leap::Vector.