![]() |
Leap Motion C++ API Reference
0.8.0
|
The FingerList class represents a list of Finger objects. More...
Inherits Leap::Interface.
Public Types | |
typedef ConstListIterator < FingerList, Finger > | const_iterator |
A C++ iterator type for FingerList objects. | |
Public Member Functions | |
FingerList & | append (const FingerList &other) |
Appends the members of the specifed FingerList to this FingerList. | |
const_iterator | begin () const |
The C++ iterator set to the beginning of this FingerList. | |
int | count () const |
Returns the number of fingers in this list. | |
bool | empty () const |
Deprecated. | |
const_iterator | end () const |
The C++ iterator set to the end of this FingerList. | |
FingerList () | |
Constructs an empty list of fingers. | |
Finger | frontmost () const |
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). | |
bool | isEmpty () const |
Reports whether the list is empty. | |
Finger | leftmost () const |
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 | operator[] (int index) const |
Access a list member by its position in the list. | |
Finger | rightmost () const |
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). | |
The FingerList class represents a list of Finger objects.
Get a FingerList object by calling Frame::fingers().
typedef ConstListIterator<FingerList, Finger> Leap::FingerList::const_iterator |
A C++ iterator type for FingerList objects.
Leap::FingerList::FingerList | ( | ) |
Constructs an empty list of fingers.
FingerList& Leap::FingerList::append | ( | const FingerList & | other | ) |
Appends the members of the specifed FingerList to this FingerList.
other | A FingerList object containing Finger objects to append to the end of this FingerList. |
const_iterator Leap::FingerList::begin | ( | ) | const |
The C++ iterator set to the beginning of this FingerList.
int Leap::FingerList::count | ( | ) | const |
Returns the number of fingers in this list.
bool Leap::FingerList::empty | ( | ) | const |
const_iterator Leap::FingerList::end | ( | ) | const |
The C++ iterator set to the end of this FingerList.
Finger Leap::FingerList::frontmost | ( | ) | const |
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).
bool Leap::FingerList::isEmpty | ( | ) | const |
Reports whether the list is empty.
Finger Leap::FingerList::leftmost | ( | ) | const |
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 Leap::FingerList::operator[] | ( | int | index | ) | const |
Access a list member by its position in the list.
index | The zero-based list position index. |
Finger Leap::FingerList::rightmost | ( | ) | const |
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).