#include <Leap.h>
The FingerList class represents a list of Finger objects.
Get a FingerList object by calling Frame::fingers().
◆ FingerList() [1/2]
◆ FingerList() [2/2]
LEAP_EXPORT Leap::FingerList::FingerList |
( |
| ) |
|
Constructs an empty list of fingers.
◆ append()
◆ begin()
The C++ iterator set to the beginning of this FingerList.
◆ count()
LEAP_EXPORT int Leap::FingerList::count |
( |
| ) |
const |
Returns the number of fingers in this list.
- Returns
- The number of fingers in this list.
◆ empty()
LEAP_EXPORT bool Leap::FingerList::empty |
( |
| ) |
const |
◆ end()
The C++ iterator set to the end of this FingerList.
◆ frontmost()
LEAP_EXPORT Finger Leap::FingerList::frontmost |
( |
| ) |
const |
The member of the list that is farthest to the front within the standard Leap frame of reference (i.e has the smallest Z coordinate).
- Returns
- The frontmost finger, or invalid if list is empty.
◆ isEmpty()
LEAP_EXPORT bool Leap::FingerList::isEmpty |
( |
| ) |
const |
Reports whether the list is empty.
- Returns
- True, if the list has no members.
◆ leftmost()
LEAP_EXPORT Finger Leap::FingerList::leftmost |
( |
| ) |
const |
The member of the list that is farthest to the left within the standard Leap frame of reference (i.e has the smallest X coordinate).
- Returns
- The leftmost finger, or invalid if list is empty.
◆ operator[]()
LEAP_EXPORT Finger Leap::FingerList::operator[] |
( |
int |
index | ) |
const |
Access a list member by its position in the list.
- Parameters
-
index | The zero-based list position index. |
- Returns
- The Finger object at the specified index.
◆ rightmost()
LEAP_EXPORT Finger Leap::FingerList::rightmost |
( |
| ) |
const |
The member of the list that is farthest to the right within the standard Leap frame of reference (i.e has the largest X coordinate).
- Returns
- The rightmost finger, or invalid if list is empty.