The HandList class represents a list of Hand objects. More...
Inherits Interface.
Public Types | |
typedef ConstListIterator< HandList, Hand > | const_iterator |
A C++ iterator type for this HandList objects. More... | |
Public Member Functions | |
HandList & | append (const HandList &other) |
Appends the members of the specified HandList to this HandList. More... | |
const_iterator | begin () const |
The C++ iterator set to the beginning of this HandList. More... | |
int | count () const |
Returns the number of hands in this list. More... | |
const_iterator | end () const |
The C++ iterator set to the end of this HandList. More... | |
Hand | 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). More... | |
HandList (const ListBaseImplementation< Hand > &) | |
HandList () | |
Constructs an empty list of hands. More... | |
bool | isEmpty () const |
Reports whether the list is empty. More... | |
Hand | 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). More... | |
Hand | operator[] (int index) const |
Access a list member by its position in the list. More... | |
Hand | 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). More... | |
The HandList class represents a list of Hand objects.
Get a HandList object by calling Frame::hands().
typedef ConstListIterator<HandList, Hand> const_iterator |
A C++ iterator type for this HandList objects.
HandList | ( | ) |
Constructs an empty list of hands.
const_iterator begin | ( | ) | const |
The C++ iterator set to the beginning of this HandList.
int count | ( | ) | const |
const_iterator end | ( | ) | const |
The C++ iterator set to the end of this HandList.
Hand 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 |
Hand 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).
Note: to determine whether a hand is the left hand, use the Hand::isLeft() function.
Hand operator[] | ( | int | index | ) | const |
Access a list member by its position in the list.
index | The zero-based list position index. |
Hand 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).
Note: to determine whether a hand is the right hand, use the Hand::isRight() function.