#include <Leap.h>
Public Types | |
typedef ConstListIterator < PointableList, Pointable > | const_iterator |
Public Member Functions | |
def | __getitem__ |
def | __init__ |
def | __iter__ |
def | __len__ |
def | append |
LEAP_EXPORT PointableList & | append (const PointableList &other) |
LEAP_EXPORT PointableList & | append (const FingerList &other) |
LEAP_EXPORT PointableList & | append (const ToolList &other) |
LEAP_EXPORT const_iterator | begin () const |
LEAP_EXPORT int | count () const |
LEAP_EXPORT const_iterator | end () const |
def | extended |
LEAP_EXPORT PointableList | extended () const |
LEAP_EXPORT Pointable | frontmost () const |
LEAP_EXPORT bool | isEmpty () const |
LEAP_EXPORT Pointable | leftmost () const |
LEAP_EXPORT Pointable | operator[] (int index) const |
PointableList (const ListBaseImplementation< Pointable > &) | |
LEAP_EXPORT | PointableList () |
LEAP_EXPORT Pointable | rightmost () const |
Public Attributes | |
this | |
Static Public Attributes | |
tuple | frontmost = _swig_property(LeapPython.PointableList_frontmost_get) |
tuple | is_empty = _swig_property(LeapPython.PointableList_is_empty_get) |
tuple | leftmost = _swig_property(LeapPython.PointableList_leftmost_get) |
tuple | rightmost = _swig_property(LeapPython.PointableList_rightmost_get) |
Static Private Attributes | |
tuple | __getattr__ = lambdaself,name:_swig_getattr(self, PointableList, name) |
__repr__ = _swig_repr | |
tuple | __setattr__ = lambdaself,name,value:_swig_setattr(self, PointableList, name, value) |
__swig_destroy__ = LeapPython.delete_PointableList | |
dictionary | __swig_getmethods__ = {} |
dictionary | __swig_setmethods__ = {} |
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().
Leap::PointableList::PointableList | ( | const ListBaseImplementation< Pointable > & | ) |
Constructs an empty list of pointable entities.
def Leap::PointableList::__init__ | ( | self | ) |
def Leap::PointableList::__getitem__ | ( | self, | |
index | |||
) |
def Leap::PointableList::__iter__ | ( | self | ) |
def Leap::PointableList::__len__ | ( | self | ) |
def Leap::PointableList::append | ( | self, | |
args | |||
) |
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 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 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 int Leap::PointableList::count | ( | ) | const |
Returns the number of pointable entities in this list.
def Leap::PointableList::extended | ( | self | ) |
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.
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).
LEAP_EXPORT bool Leap::PointableList::isEmpty | ( | ) | const |
Reports whether the list is empty.
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).
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. |
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).
tuple Leap::PointableList::__getattr__ = lambdaself,name:_swig_getattr(self, PointableList, name) [static, private] |
Reimplemented from Leap::Interface.
Leap::PointableList::__repr__ = _swig_repr [static, private] |
tuple Leap::PointableList::__setattr__ = lambdaself,name,value:_swig_setattr(self, PointableList, name, value) [static, private] |
Reimplemented from Leap::Interface.
Leap::PointableList::__swig_destroy__ = LeapPython.delete_PointableList [static, private] |
dictionary Leap::PointableList::__swig_getmethods__ = {} [static, private] |
Reimplemented from Leap::Interface.
dictionary Leap::PointableList::__swig_setmethods__ = {} [static, private] |
Reimplemented from Leap::Interface.
tuple Leap::PointableList::frontmost = _swig_property(LeapPython.PointableList_frontmost_get) [static] |
tuple Leap::PointableList::is_empty = _swig_property(LeapPython.PointableList_is_empty_get) [static] |
tuple Leap::PointableList::leftmost = _swig_property(LeapPython.PointableList_leftmost_get) [static] |
tuple Leap::PointableList::rightmost = _swig_property(LeapPython.PointableList_rightmost_get) [static] |