de.voidplus.leapmotion
Class Gesture

java.lang.Object
  extended by de.voidplus.leapmotion.Gesture
Direct Known Subclasses:
CircleGesture, KeyTapGesture, ScreenTapGesture, SwipeGesture

public abstract class Gesture
extends Object


Constructor Summary
Gesture(PApplet parent, LeapMotion leap, com.leapmotion.leap.Gesture gesture)
           
 
Method Summary
 int countHands()
          Get the number of detected hands.
 long getDuration()
          The elapsed duration of the recognized movement up to the frame containing this Gesture object, in microseconds.
 float getDurationInSeconds()
          The elapsed duration in seconds.
 ArrayList<Hand> getHands()
          Get all detected hands.
 int getId()
          Get the unique ID.
 boolean hasHands()
          Check if there is any hand.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gesture

public Gesture(PApplet parent,
               LeapMotion leap,
               com.leapmotion.leap.Gesture gesture)
Method Detail

getId

public int getId()
Get the unique ID.

Returns:

getDuration

public long getDuration()
The elapsed duration of the recognized movement up to the frame containing this Gesture object, in microseconds.

Returns:

getDurationInSeconds

public float getDurationInSeconds()
The elapsed duration in seconds.

Returns:

hasHands

public boolean hasHands()
Check if there is any hand.

Returns:

getHands

public ArrayList<Hand> getHands()
Get all detected hands.

Returns:

countHands

public int countHands()
Get the number of detected hands.

Returns:


Processing library LeapMotionForProcessing by Darius Morawiec. (C) 2013