![]() |
Leap C++ API Reference
0.7.9
|
The PointableList class represents a list of Pointable objects. More...
Inherits Leap::Interface.
Public Types | |
typedef ConstListIterator < PointableList, Pointable > | const_iterator |
A C++ iterator type for PointableList objects. | |
Public Member Functions | |
PointableList & | append (const PointableList &other) |
Appends the members of the specifed PointableList to this PointableList. | |
PointableList & | append (const FingerList &other) |
Appends the members of the specifed FingerList to this PointableList. | |
PointableList & | append (const ToolList &other) |
Appends the members of the specifed ToolList to this PointableList. | |
const_iterator | begin () const |
The C++ iterator set to the beginning of this PointableList. | |
int | count () const |
Returns the number of pointable entities in this list. | |
bool | empty () const |
Deprecated. | |
const_iterator | end () const |
The C++ iterator set to the end of this PointableList. | |
Pointable | 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). | |
bool | isEmpty () const |
Reports whether the list is empty. | |
Pointable | 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). | |
Pointable | operator[] (int index) const |
Access a list member by its position in the list. | |
PointableList () | |
Constructs an empty list of pointable entities. | |
Pointable | 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). | |
The PointableList class represents a list of Pointable objects.
Pointable objects include entities that can be pointed, such as fingers and tools.
Get a PointableList object by calling Frame::pointables().
typedef ConstListIterator<PointableList, Pointable> Leap::PointableList::const_iterator |
A C++ iterator type for PointableList objects.
Leap::PointableList::PointableList | ( | ) |
Constructs an empty list of pointable entities.
PointableList& Leap::PointableList::append | ( | const PointableList & | other | ) |
Appends the members of the specifed PointableList to this PointableList.
other | A PointableList object containing Pointable objects to append to the end of this PointableList. |
PointableList& Leap::PointableList::append | ( | const FingerList & | other | ) |
Appends the members of the specifed FingerList to this PointableList.
other | A FingerList object containing Finger objects to append to the end of this PointableList. |
PointableList& Leap::PointableList::append | ( | const ToolList & | other | ) |
Appends the members of the specifed ToolList to this PointableList.
other | A ToolList object containing Tool objects to append to the end of this PointableList. |
const_iterator Leap::PointableList::begin | ( | ) | const |
The C++ iterator set to the beginning of this PointableList.
int Leap::PointableList::count | ( | ) | const |
Returns the number of pointable entities in this list.
bool Leap::PointableList::empty | ( | ) | const |
const_iterator Leap::PointableList::end | ( | ) | const |
The C++ iterator set to the end of this PointableList.
Pointable Leap::PointableList::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).
bool Leap::PointableList::isEmpty | ( | ) | const |
Reports whether the list is empty.
Pointable Leap::PointableList::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).
Pointable Leap::PointableList::operator[] | ( | int | index | ) | const |
Access a list member by its position in the list.
index | The zero-based list position index. |
Pointable Leap::PointableList::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).