The PointableList class represents a list of Pointable objects. More...
Inherits Interface, and Iterable< Pointable >.
Public Member Functions | |
PointableList | append (PointableList other) |
Appends the members of the specified PointableList to this PointableList. More... | |
PointableList | append (FingerList other) |
Appends the members of the specified FingerList to this PointableList. More... | |
PointableList | append (ToolList other) |
Appends the members of the specified ToolList to this PointableList. More... | |
int | count () |
Returns the number of pointable entities in this list. More... | |
PointableList | extended () |
Returns a new list containing those members of the current list that are extended. More... | |
Pointable | frontmost () |
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... | |
Pointable | get (int index) |
Access a list member by its position in the list. More... | |
boolean | isEmpty () |
Reports whether the list is empty. More... | |
Pointable | leftmost () |
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... | |
PointableList () | |
Constructs an empty list of pointable entities. More... | |
Pointable | rightmost () |
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().
PointableList | ( | ) |
Constructs an empty list of pointable entities.
PointableList append | ( | 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 | ( | 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 | ( | 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. |
int count | ( | ) |
Returns the number of pointable entities in this list.
PointableList extended | ( | ) |
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 | ( | ) |
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).
Pointable get | ( | int | index | ) |
Access a list member by its position in the list.
index | The zero-based list position index. |
boolean isEmpty | ( | ) |
Reports whether the list is empty.
Pointable leftmost | ( | ) |
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 rightmost | ( | ) |
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).