The FingerList class represents a list of Finger objects.
More...
Inherits Interface.
The FingerList class represents a list of Finger objects.
Get a FingerList object by calling Frame::fingers().
- Since
- 1.0
A C++ iterator type for FingerList objects.
std::cout << *fl << std::endl;
- Since
- 1.0
Constructs an empty list of fingers.
- Since
- 1.0
The C++ iterator set to the beginning of this FingerList.
std::cout << "Finger ID: " << (*fl).id() << std::endl;
- Since
- 1.0
Returns the number of fingers in this list.
std::cout << frame.
fingers()[f] << std::endl;
}
- Returns
- The number of fingers in this list.
- Since
- 1.0
The C++ iterator set to the end of this FingerList.
std::cout << *fl << std::endl;
- Since
- 1.0
Returns a new list containing those fingers in the current list that are extended.
- Returns
- The list of extended fingers from the current list.
- Since
- 2.0
Returns a list containing fingers from the current list of a given finger type by modifying the existing list.
- Returns
- The list of matching fingers from the current list.
- Since
- 2.0
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 finger, or invalid if list is empty.
- Since
- 1.0
Reports whether the list is empty.
- Returns
- True, if the list has no members.
- Since
- 1.0
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 finger, or invalid if list is empty.
- Since
- 1.0
Finger operator[] |
( |
int |
index | ) |
const |
Access a list member by its position in the list.
- Parameters
-
index | The zero-based list position index. |
- Returns
- The Finger object at the specified index.
- Since
- 1.0
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 finger, or invalid if list is empty.
- Since
- 1.0