#include <Leap.h>
Public Types | |
typedef ConstListIterator < HandList, Hand > | const_iterator |
Public Member Functions | |
def | __getitem__ |
def | __init__ |
def | __iter__ |
def | __len__ |
def | append |
LEAP_EXPORT HandList & | append (const HandList &other) |
LEAP_EXPORT const_iterator | begin () const |
LEAP_EXPORT int | count () const |
LEAP_EXPORT const_iterator | end () const |
LEAP_EXPORT Hand | frontmost () const |
HandList (const ListBaseImplementation< Hand > &) | |
LEAP_EXPORT | HandList () |
LEAP_EXPORT bool | isEmpty () const |
LEAP_EXPORT Hand | leftmost () const |
LEAP_EXPORT Hand | operator[] (int index) const |
LEAP_EXPORT Hand | rightmost () const |
Public Attributes | |
this | |
Static Public Attributes | |
tuple | frontmost = _swig_property(LeapPython.HandList_frontmost_get) |
tuple | is_empty = _swig_property(LeapPython.HandList_is_empty_get) |
tuple | leftmost = _swig_property(LeapPython.HandList_leftmost_get) |
tuple | rightmost = _swig_property(LeapPython.HandList_rightmost_get) |
Static Private Attributes | |
tuple | __getattr__ = lambdaself,name:_swig_getattr(self, HandList, name) |
__repr__ = _swig_repr | |
tuple | __setattr__ = lambdaself,name,value:_swig_setattr(self, HandList, name, value) |
__swig_destroy__ = LeapPython.delete_HandList | |
dictionary | __swig_getmethods__ = {} |
dictionary | __swig_setmethods__ = {} |
The HandList class represents a list of Hand objects.
Get a HandList object by calling Frame::hands().
Leap::HandList::HandList | ( | const ListBaseImplementation< Hand > & | ) |
Constructs an empty list of hands.
def Leap::HandList::__init__ | ( | self | ) |
def Leap::HandList::__getitem__ | ( | self, | |
index | |||
) |
def Leap::HandList::__iter__ | ( | self | ) |
def Leap::HandList::__len__ | ( | self | ) |
def Leap::HandList::append | ( | self, | |
other | |||
) |
LEAP_EXPORT HandList& Leap::HandList::append | ( | const HandList & | other | ) |
LEAP_EXPORT const_iterator Leap::HandList::begin | ( | ) | const |
LEAP_EXPORT int Leap::HandList::count | ( | ) | const |
Returns the number of hands in this list.
LEAP_EXPORT const_iterator Leap::HandList::end | ( | ) | const |
LEAP_EXPORT Hand Leap::HandList::frontmost | ( | ) | const |
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::HandList::isEmpty | ( | ) | const |
Reports whether the list is empty.
LEAP_EXPORT Hand Leap::HandList::leftmost | ( | ) | const |
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).
Note: to determine whether a hand is the left hand, use the Hand::isLeft() function.
LEAP_EXPORT Hand Leap::HandList::operator[] | ( | int | index | ) | const |
Access a list member by its position in the list.
index | The zero-based list position index. |
LEAP_EXPORT Hand Leap::HandList::rightmost | ( | ) | const |
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).
Note: to determine whether a hand is the right hand, use the Hand::isRight() function.
tuple Leap::HandList::__getattr__ = lambdaself,name:_swig_getattr(self, HandList, name) [static, private] |
Reimplemented from Leap::Interface.
Leap::HandList::__repr__ = _swig_repr [static, private] |
tuple Leap::HandList::__setattr__ = lambdaself,name,value:_swig_setattr(self, HandList, name, value) [static, private] |
Reimplemented from Leap::Interface.
Leap::HandList::__swig_destroy__ = LeapPython.delete_HandList [static, private] |
dictionary Leap::HandList::__swig_getmethods__ = {} [static, private] |
Reimplemented from Leap::Interface.
dictionary Leap::HandList::__swig_setmethods__ = {} [static, private] |
Reimplemented from Leap::Interface.
tuple Leap::HandList::frontmost = _swig_property(LeapPython.HandList_frontmost_get) [static] |
tuple Leap::HandList::is_empty = _swig_property(LeapPython.HandList_is_empty_get) [static] |
tuple Leap::HandList::leftmost = _swig_property(LeapPython.HandList_leftmost_get) [static] |
tuple Leap::HandList::rightmost = _swig_property(LeapPython.HandList_rightmost_get) [static] |