#include <Leap.h>
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().
Public Member Functions | |
PointableList (const ListBaseImplementation< Pointable > &) | |
LEAP_EXPORT | PointableList () |
LEAP_EXPORT int | count () const |
LEAP_EXPORT bool | isEmpty () const |
LEAP_EXPORT bool | empty () const |
LEAP_EXPORT Pointable | operator[] (int index) const |
LEAP_EXPORT PointableList & | append (const PointableList &other) |
LEAP_EXPORT PointableList & | append (const FingerList &other) |
LEAP_EXPORT PointableList & | append (const ToolList &other) |
LEAP_EXPORT Pointable | leftmost () const |
LEAP_EXPORT Pointable | rightmost () const |
LEAP_EXPORT Pointable | frontmost () const |
LEAP_EXPORT const_iterator | begin () const |
LEAP_EXPORT const_iterator | end () const |
Additional Inherited Members | |
![]() | |
class SharedObject * | m_object |
![]() | |
LEAP_EXPORT | Interface (void *owner) |
LEAP_EXPORT | Interface (Implementation *reference, void *owner) |
LEAP_EXPORT | Interface (const Interface &rhs) |
LEAP_EXPORT Interface & | operator= (const Interface &rhs) |
virtual LEAP_EXPORT | ~Interface () |
template<typename T > | |
T * | get () const |
Leap::PointableList::PointableList | ( | const ListBaseImplementation< Pointable > & | ) |
LEAP_EXPORT Leap::PointableList::PointableList | ( | ) |
Constructs an empty list of pointable entities.
LEAP_EXPORT PointableList& Leap::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. |
LEAP_EXPORT PointableList& Leap::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. |
LEAP_EXPORT PointableList& Leap::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. |
LEAP_EXPORT const_iterator Leap::PointableList::begin | ( | ) | const |
The C++ iterator set to the beginning of this PointableList.
LEAP_EXPORT int Leap::PointableList::count | ( | ) | const |
Returns the number of pointable entities in this list.
LEAP_EXPORT bool Leap::PointableList::empty | ( | ) | const |
Deprecated. Use PointableList::isEmpty() instead.
LEAP_EXPORT const_iterator Leap::PointableList::end | ( | ) | const |
The C++ iterator set to the end of this PointableList.
LEAP_EXPORT 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).
LEAP_EXPORT bool Leap::PointableList::isEmpty | ( | ) | const |
Reports whether the list is empty.
LEAP_EXPORT 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).
LEAP_EXPORT Pointable Leap::PointableList::operator[] | ( | int | index | ) | const |
Access a list member by its position in the list.
index | The zero-based list position index. |