|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.voidplus.leapmotion.Hand
public class Hand
Constructor Summary | |
---|---|
Hand(PApplet parent,
LeapMotion leap,
com.leapmotion.leap.Hand hand)
|
Method Summary | |
---|---|
int |
countFingers()
Get the number of fingers. |
int |
countTools()
Get the number of tools. |
void |
draw()
|
void |
draw(float radius)
Draw the hand with all details. |
PVector |
getDirection()
The direction from the palm position toward the fingers. |
PVector |
getDynamics()
Get the angles of the hand (x=roll, y=pich, z=yaw). |
ArrayList<Finger> |
getFingers()
Get all detected fingers of the hand. |
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). |
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). |
int |
getId()
Get the unique ID. |
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). |
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). |
PVector |
getPalmPosition()
The center position of the palm in millimeters. |
float |
getPitch()
Get the pitch angle (y). |
PVector |
getPosition()
The center position of the palm in millimeters. |
PVector |
getRawDirection()
Raw data of the direction from the palm position toward the fingers. |
PVector |
getRawPosition()
Raw data of the center position. |
PVector |
getRawSpherePosition()
Raw data of the center of a sphere fit to the curvature of this hand. |
PVector |
getRawStabilizedParlmPosition()
Raw data of the stabilized center position. |
PVector |
getRawStabilizedPosition()
Raw data of the stabilized center position. |
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). |
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). |
float |
getRoll()
Get the roll angle (x). |
PVector |
getSpherePosition()
The center of a sphere fit to the curvature of this hand. |
float |
getSphereRadius()
The radius of a sphere fit to the curvature of this hand. |
PVector |
getStabilizedPalmPosition()
The stabilized center position of the palm in millimeters. |
PVector |
getStabilizedPosition()
The stabilized center position of the palm in millimeters. |
float |
getTimeVisible()
The duration of time this Hand has been visible to the Leap Motion Controller. |
ArrayList<Tool> |
getTools()
Get all detected tools of the hand. |
float |
getYaw()
Get the yaw angle (z). |
boolean |
hasFingers()
Check if there is any finger. |
boolean |
hasTools()
Check if there is any tool. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hand(PApplet parent, LeapMotion leap, com.leapmotion.leap.Hand hand)
Method Detail |
---|
public int getId()
public PVector getPosition()
public PVector getRawPosition()
public PVector getPalmPosition()
public PVector getStabilizedPosition()
public PVector getStabilizedPalmPosition()
public PVector getRawStabilizedPosition()
public PVector getRawStabilizedParlmPosition()
public PVector getDirection()
public PVector getRawDirection()
public float getTimeVisible()
public Finger getFrontFinger()
public Finger getLeftFinger()
public Finger getRightFinger()
public Tool getFrontTool()
public Tool getLeftTool()
public Tool getRightTool()
public void draw(float radius)
radius
- The radius of the ellipse (2D) or sphere (3D).public void draw()
public PVector getDynamics()
public float getRoll()
public float getPitch()
public float getYaw()
public PVector getSpherePosition()
public PVector getRawSpherePosition()
public float getSphereRadius()
public ArrayList<Finger> getFingers()
public boolean hasFingers()
public int countFingers()
public ArrayList<Tool> getTools()
public boolean hasTools()
public int countTools()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |