public class DTrackHand
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
DTrackHand(int id)
Constructor for not tracked hand.
|
protected |
DTrackHand(int id,
int lr,
double quality,
double[] loc,
double[][] rot,
DTrackFinger[] finger)
Constructor for tracked hand.
|
Modifier and Type | Method and Description |
---|---|
DTrackFinger[] |
getFinger()
Returns all finger data.
|
DTrackFinger |
getFinger(int index)
Returns a finger data at a specific index.
|
int |
getId()
Returns ID number.
|
double[] |
getLoc()
Returns location of back of the hand.
|
int |
getLr()
Returns handedness.
|
int |
getNumFinger()
Returns number of fingers.
|
double |
getQuality()
Returns quality.
|
double[][] |
getRot()
Returns orientation of back of the hand.
|
boolean |
isTracked()
Returns if hand is currently tracked.
|
protected void |
setNotTracked()
Set to 'not tracked'.
|
protected DTrackHand(int id)
id
- ID number (starting with 0)protected DTrackHand(int id, int lr, double quality, double[] loc, double[][] rot, DTrackFinger[] finger)
id
- ID number (starting with 0)lr
- Left (0) or right (1) handquality
- Quality (0 ≤ qu ≤ 1)loc
- Location of back of the hand (in [mm])rot
- Rotation matrix of back of the hand (3x3-dimensional)finger
- Finger data (order: thumb, index finger, middle finger, ...)public int getId()
public boolean isTracked()
public double getQuality()
public int getLr()
public int getNumFinger()
public double[] getLoc()
public double[][] getRot()
public DTrackFinger[] getFinger()
DTrackFinger
public DTrackFinger getFinger(int index)
index
- Index of the fingerDTrackFinger
protected void setNotTracked()