|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.voidplus.leapmotion.LeapMotion
public class LeapMotion
Leap Motion Processing Library
Field Summary | |
---|---|
static String |
SDK_VERSION
|
static String |
VERSION
|
Constructor Summary | |
---|---|
LeapMotion(PApplet parent)
LeapMotion constructor to initialize the controller and listener. |
|
LeapMotion(PApplet parent,
boolean verbose)
LeapMotion constructor to initialize the controller and listener. |
Method Summary | |
---|---|
PVector |
convert(Vector position)
Convert Vector to PVector without modifications |
int |
countFingers()
Get the number of detected fingers. |
int |
countHands()
Get the number of detected hands. |
int |
countTools()
Get the number of detected tools. |
void |
dispose()
|
Controller |
getController()
|
ArrayList<Device> |
getDevices()
|
Finger |
getFinger(Integer id)
Get a specific finger. |
ArrayList<Finger> |
getFingers()
Get all detected fingers. |
int |
getFrameRate()
The instantaneous framerate. |
Finger |
getFrontFinger()
The member of the list that is farthest to the front within the standard Leap Motion frame of reference (i.e has the smallest Z coordinate). |
Hand |
getFrontHand()
The member of the list that is farthest to the front within the standard Leap Motion frame of reference (i.e has the smallest Z coordinate). |
Tool |
getFrontTool()
The member of the list that is farthest to the front within the standard Leap Motion frame of reference (i.e has the smallest Z coordinate). |
Hand |
getHand(Integer id)
Get a specific hand. |
ArrayList<Hand> |
getHands()
Get all detected hands. |
Finger |
getLeftFinger()
The member of the list that is farthest to the left within the standard Leap Motion frame of reference (i.e has the smallest X coordinate). |
Hand |
getLeftHand()
The member of the list that is farthest to the left within the standard Leap Motion frame of reference (i.e has the smallest X coordinate). |
Tool |
getLeftTool()
The member of the list that is farthest to the left within the standard Leap Motion frame of reference (i.e has the smallest X coordinate). |
Finger |
getRightFinger()
The member of the list that is farthest to the right within the standard Leap Motion frame of reference (i.e has the largest X coordinate). |
Hand |
getRightHand()
The member of the list that is farthest to the right within the standard Leap Motion frame of reference (i.e has the largest X coordinate). |
Tool |
getRightTool()
The member of the list that is farthest to the right within the standard Leap Motion frame of reference (i.e has the largest X coordinate). |
Tool |
getTool(Integer id)
Get a specific tool. |
ArrayList<Tool> |
getTools()
Get all detected tools. |
String |
getVersion()
Get the version of the library. |
String |
getVersionSDK()
Get the used version of the SDK. |
boolean |
hasFingers()
Check if there is any finger. |
boolean |
hasHands()
Check if there is any hand. |
boolean |
hasTools()
Check if there is any tool. |
boolean |
isConnected()
Check if the Leap Motion is connected. |
PVector |
map(Vector position)
Convert/map the Vector data to sketch PVector data with world settings. |
void |
pre()
Run the recognizer before the drawing. |
LeapMotion |
setConfig(String keyString,
boolean value)
Set configuration parameters. |
LeapMotion |
setConfig(String keyString,
float value)
Set configuration parameters. |
LeapMotion |
setConfig(String keyString,
int value)
Set configuration parameters. |
LeapMotion |
setConfig(String keyString,
String value)
Set configuration parameters. |
LeapMotion |
setGestureCircleMinArc(float degrees)
Set Gesture.Circle.MinArc (Default: 270 degrees) |
LeapMotion |
setGestureCircleMinRadius(float mm)
Set Gesture.Circle.MinRadius (Default: 5.0 mm) |
LeapMotion |
setGestureKeyTapHistorySeconds(float s)
Set Gesture.KeyTap.HistorySeconds (Default: 0.1 s) |
LeapMotion |
setGestureKeyTapMinDistance(float mm)
Set Gesture.KeyTap.MinDistance (Default: 3.0 mm) |
LeapMotion |
setGestureKeyTapMinDownVelocity(float mms)
Set Gesture.KeyTap.MinDownVelocity (Default: 50 mm/s) |
LeapMotion |
setGestureScreenTapHistorySeconds(float s)
Set Gesture.ScreenTap.HistorySeconds (Default: 0.1 s) |
LeapMotion |
setGestureScreenTapMinDistance(float mm)
Set Gesture.ScreenTap.MinDistance (Default: 5.0 mm) |
LeapMotion |
setGestureScreenTapMinForwardVelocity(float mms)
Set Gesture.ScreenTap.MinForwardVelocity (Default: 50 mm/s) |
LeapMotion |
setGestureSwipeMinLength(float mm)
Set Gesture.Swipe.MinLength (Default: 150 mm) |
LeapMotion |
setGestureSwipeMinVelocity(float mms)
Set Gesture.Swipe.MinVelocity (Default: 1000 mm/s) |
LeapMotion |
setVerbose(boolean verbose)
Print debug information to the console. |
LeapMotion |
setWorld(int width,
int height,
int depth)
Set the world coordinates. |
LeapMotion |
setWorld(PVector world)
Set the world coordinates. |
LeapMotion |
withGestures()
|
LeapMotion |
withGestures(String str)
Activate the gesture recognition. |
LeapMotion |
withoutGestures()
Deactivate the gesture recognition. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION
public static final String SDK_VERSION
Constructor Detail |
---|
public LeapMotion(PApplet parent, boolean verbose)
parent
- Reference (this) of sketch.verbose
- Print debug information to the console.public LeapMotion(PApplet parent)
parent
- Reference (this) of sketch.Method Detail |
---|
public int getFrameRate()
public LeapMotion setWorld(int width, int height, int depth)
width
- World width dimension in millimeters.height
- World height dimension in millimeters.depth
- World depth dimension in millimeters.
public LeapMotion setWorld(PVector world)
world
- World dimensions in millimeters.
public boolean isConnected()
public Controller getController()
public ArrayList<Device> getDevices()
public boolean hasHands()
public Hand getHand(Integer id)
id
-
public ArrayList<Hand> getHands()
public int countHands()
public Hand getFrontHand()
public Hand getLeftHand()
public Hand getRightHand()
public boolean hasFingers()
public Finger getFinger(Integer id)
id
-
public ArrayList<Finger> getFingers()
public int countFingers()
public Finger getFrontFinger()
public Finger getLeftFinger()
public Finger getRightFinger()
public boolean hasTools()
public Tool getTool(Integer id)
id
-
public ArrayList<Tool> getTools()
public int countTools()
public Tool getFrontTool()
public Tool getLeftTool()
public Tool getRightTool()
public LeapMotion withGestures(String str)
str
-
public LeapMotion withGestures()
public LeapMotion withoutGestures()
public void pre()
public LeapMotion setGestureCircleMinRadius(float mm)
mm
-
public LeapMotion setGestureCircleMinArc(float degrees)
degrees
-
public LeapMotion setGestureSwipeMinLength(float mm)
mm
-
public LeapMotion setGestureSwipeMinVelocity(float mms)
mms
-
public LeapMotion setGestureKeyTapMinDownVelocity(float mms)
mms
-
public LeapMotion setGestureKeyTapHistorySeconds(float s)
s
-
public LeapMotion setGestureKeyTapMinDistance(float mm)
mm
-
public LeapMotion setGestureScreenTapMinForwardVelocity(float mms)
mms
-
public LeapMotion setGestureScreenTapHistorySeconds(float s)
s
-
public LeapMotion setGestureScreenTapMinDistance(float mm)
mm
-
public LeapMotion setConfig(String keyString, int value)
keyString
- value
-
public LeapMotion setConfig(String keyString, float value)
keyString
- value
-
public LeapMotion setConfig(String keyString, boolean value)
keyString
- value
-
public LeapMotion setConfig(String keyString, String value)
keyString
- value
-
public PVector map(Vector position)
position
-
public PVector convert(Vector position)
position
-
public LeapMotion setVerbose(boolean verbose)
verbose
-
public String getVersion()
public String getVersionSDK()
public void dispose()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |