#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() or Hand::pointables().
- Since
- 1.0
Definition at line 3476 of file Leap.h.
Constructs an empty list of pointable entities.
- Since
- 1.0
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 |
|
) |
| |
The C++ iterator set to the beginning of this PointableList.
- Since
- 1.0
Returns the number of pointable entities in this list.
- Returns
- The number of pointable entities in this list.
- Since
- 1.0
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.
- Returns
- The list of tools and extended 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 pointable, or invalid if list is empty.
- Since
- 1.0
LEAP_EXPORT bool Leap::PointableList::isEmpty |
( |
| ) |
const |
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 pointable, 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 Pointable 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 pointable, or invalid if list is empty.
- Since
- 1.0
Leap.PointableList.__getattr__ = lambdaself,name:_swig_getattr(self, PointableList, name) |
|
staticprivate |
Leap.PointableList.__setattr__ = lambdaself,name,value:_swig_setattr(self, PointableList, name, value) |
|
staticprivate |
Leap.PointableList.__swig_destroy__ = LeapPython.delete_PointableList |
|
staticprivate |
dictionary Leap.PointableList.__swig_getmethods__ = {} |
|
staticprivate |
dictionary Leap.PointableList.__swig_setmethods__ = {} |
|
staticprivate |
Leap.PointableList.frontmost = _swig_property(LeapPython.PointableList_frontmost_get) |
|
static |
Leap.PointableList.is_empty = _swig_property(LeapPython.PointableList_is_empty_get) |
|
static |
Leap.PointableList.leftmost = _swig_property(LeapPython.PointableList_leftmost_get) |
|
static |
Leap.PointableList.rightmost = _swig_property(LeapPython.PointableList_rightmost_get) |
|
static |
The documentation for this class was generated from the following files: