The PointableList class represents a list of Pointable objects.
More...
Inherits com.leapmotion.leap.Interface, and Iterable< Pointable >.
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().
com.leapmotion.leap.PointableList.PointableList |
( |
| ) |
|
Constructs an empty list of pointable entities.
int com.leapmotion.leap.PointableList.count |
( |
| ) |
|
Returns the number of pointable entities in this list.
- Returns
- The number of pointable entities in this list.
boolean com.leapmotion.leap.PointableList.empty |
( |
| ) |
|
Pointable com.leapmotion.leap.PointableList.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).
- Returns
- The frontmost pointable, or invalid if list is empty.
Pointable com.leapmotion.leap.PointableList.get |
( |
int |
index | ) |
|
Access a list member by its position in the list.
- Parameters
-
index | The zero-based list position index. |
- Returns
- The Pointable object at the specified index.
boolean com.leapmotion.leap.PointableList.isEmpty |
( |
| ) |
|
Reports whether the list is empty.
- Returns
- True, if the list has no members.
Pointable com.leapmotion.leap.PointableList.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).
- Returns
- The leftmost pointable, or invalid if list is empty.
Pointable com.leapmotion.leap.PointableList.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).
- Returns
- The rightmost pointable, or invalid if list is empty.