FingerListΒΆ

Properties:

Methods:

class Leap::FingerList

The FingerList class represents a list of Finger objects.

Get a FingerList object by calling Frame::fingers().

FingerList allFingers = frame.Fingers;

Since
1.0

Public Functions

FingerList Append(FingerList other)

Appends the members of the specified FingerList to this FingerList.

Since
1.0
Parameters

FingerList Extended()

Returns a new list containing those fingers in the current list that are extended.

FingerList extendedFingerList = hand.Fingers.Extended ();

Return
The list of extended fingers from the current list.
Since
2.0

FingerList()

Constructs an empty list of fingers.

Since
1.0

FingerList FingerType(Finger.FingerType type)

Returns a list containing fingers from the current list of a given finger type by modifying the existing list.

FingerList indexFingerList = hand.Fingers.FingerType (Finger.FingerType.TYPE_INDEX);
Finger indexFinger = indexFingerList [0]; //since there is only one per hand

Return
The list of matching fingers from the current list.
Since
2.0

Property

int Count

Returns the number of fingers in this list.

for (int f = 0; f < hand.Fingers.Count; f++) {
    Console.WriteLine (hand.Fingers [f]);
}

Return
The number of fingers in this list.
Since
1.0

Finger Frontmost

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).

Finger mostForwardFinger = frame.Fingers.Frontmost;

Return
The frontmost finger, or invalid if list is empty.
Since
1.0

bool IsEmpty

Reports whether the list is empty.

if (!frame.Fingers.IsEmpty) {
    //Use the fingers
}

Return
True, if the list has no members.
Since
1.0

Finger Leftmost

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 fingerWithSmallestX = frame.Fingers.Leftmost;

Return
The leftmost finger, or invalid if list is empty.
Since
1.0

Finger Rightmost

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).

Finger fingerWithLargestX = frame.Fingers.Rightmost;

Return
The rightmost finger, or invalid if list is empty.
Since
1.0