#include <Leap.h>
The HandList class represents a list of Hand objects.
Get a HandList object by calling Frame::hands().
- Since
- 1.0
Definition at line 3883 of file Leap.h.
A C++ iterator type for this HandList objects.
- Since
- 1.0
Definition at line 3975 of file Leap.h.
Constructs an empty list of hands.
- Since
- 1.0
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 |
|
) |
| |
The C++ iterator set to the beginning of this HandList.
- Since
- 1.0
Returns the number of hands in this list.
- Returns
- The number of hands in this list.
- Since
- 1.0
The C++ iterator set to the end of this HandList.
- Since
- 1.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 hand, 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).
Note: to determine whether a hand is the left hand, use the Hand::isLeft() function.
- Returns
- The leftmost hand, or invalid if list is empty.
- Since
- 1.0
Access a list member by its position in the list.
- Parameters
-
index | The zero-based list position index. |
- Returns
- The Hand 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).
Note: to determine whether a hand is the right hand, use the Hand::isRight() function.
- Returns
- The rightmost hand, or invalid if list is empty.
- Since
- 1.0
Leap.HandList.__getattr__ = lambdaself,name:_swig_getattr(self, HandList, name) |
|
staticprivate |
Leap.HandList.__setattr__ = lambdaself,name,value:_swig_setattr(self, HandList, name, value) |
|
staticprivate |
Leap.HandList.__swig_destroy__ = LeapPython.delete_HandList |
|
staticprivate |
dictionary Leap.HandList.__swig_getmethods__ = {} |
|
staticprivate |
dictionary Leap.HandList.__swig_setmethods__ = {} |
|
staticprivate |
Leap.HandList.frontmost = _swig_property(LeapPython.HandList_frontmost_get) |
|
static |
Leap.HandList.is_empty = _swig_property(LeapPython.HandList_is_empty_get) |
|
static |
Leap.HandList.leftmost = _swig_property(LeapPython.HandList_leftmost_get) |
|
static |
Leap.HandList.rightmost = _swig_property(LeapPython.HandList_rightmost_get) |
|
static |
The documentation for this class was generated from the following files: