The PointableList class represents a list of Pointable objects. More...
Inherits Interface.
Public Types | |
typedef ConstListIterator< PointableList, Pointable > | const_iterator |
A C++ iterator type for PointableList objects. More... | |
Public Member Functions | |
PointableList & | append (const PointableList &other) |
Appends the members of the specified PointableList to this PointableList. More... | |
PointableList & | append (const FingerList &other) |
Appends the members of the specified FingerList to this PointableList. More... | |
PointableList & | append (const ToolList &other) |
Appends the members of the specified ToolList to this PointableList. More... | |
const_iterator | begin () const |
The C++ iterator set to the beginning of this PointableList. More... | |
int | count () const |
Returns the number of pointable entities in this list. More... | |
const_iterator | end () const |
The C++ iterator set to the end of this PointableList. More... | |
PointableList | extended () const |
Returns a new list containing those members of the current list that are extended. More... | |
Pointable | 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... | |
bool | isEmpty () const |
Reports whether the list is empty. More... | |
Pointable | 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... | |
Pointable | operator[] (int index) const |
Access a list member by its position in the list. More... | |
PointableList (const ListBaseImplementation< Pointable > &) | |
PointableList () | |
Constructs an empty list of pointable entities. More... | |
Pointable | 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 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() or Hand::pointables().
typedef ConstListIterator<PointableList, Pointable> const_iterator |
A C++ iterator type for PointableList objects.
PointableList | ( | const ListBaseImplementation< Pointable > & | ) |
PointableList | ( | ) |
Constructs an empty list of pointable entities.
PointableList& append | ( | const PointableList & | other | ) |
Appends the members of the specified PointableList to this PointableList.
other | A PointableList object containing Pointable objects to append to the end of this PointableList. |
PointableList& append | ( | const FingerList & | other | ) |
Appends the members of the specified FingerList to this PointableList.
other | A FingerList object containing Finger objects to append to the end of this PointableList. |
PointableList& append | ( | const ToolList & | other | ) |
Appends the members of the specified ToolList to this PointableList.
other | A ToolList object containing Tool objects to append to the end of 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.
const_iterator end | ( | ) | const |
The C++ iterator set to the end of this PointableList.
PointableList extended | ( | ) | const |
Returns a new list containing those members of the current list that are extended.
This includes all tools and any fingers whose isExtended() function is true.
Pointable 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.
Pointable 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).
Pointable operator[] | ( | int | index | ) | const |
Access a list member by its position in the list.
index | The zero-based list position index. |