#include <Leap.h>
The ToolList class represents a list of Tool objects.
Get a ToolList object by calling Frame::tools().
- Since
- 1.0
Definition at line 3764 of file Leap.h.
A C++ iterator type for ToolList objects.
- Since
- 1.0
Definition at line 3854 of file Leap.h.
Constructs an empty list of tools.
- Since
- 1.0
def Leap.ToolList.__init__ |
( |
|
self | ) |
|
def Leap.ToolList.__getitem__ |
( |
|
self, |
|
|
|
index |
|
) |
| |
def Leap.ToolList.__iter__ |
( |
|
self | ) |
|
def Leap.ToolList.__len__ |
( |
|
self | ) |
|
def Leap.ToolList.append |
( |
|
self, |
|
|
|
other |
|
) |
| |
Appends the members of the specified ToolList to this ToolList.
- Parameters
-
- Since
- 1.0
The C++ iterator set to the beginning of this ToolList.
- Since
- 1.0
Returns the number of tools in this list.
- Returns
- The number of tools in this list.
- Since
- 1.0
The C++ iterator set to the end of this ToolList.
- 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 tool, 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).
- Returns
- The leftmost tool, 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 Tool 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 tool, or invalid if list is empty.
- Since
- 1.0
Leap.ToolList.__getattr__ = lambdaself,name:_swig_getattr(self, ToolList, name) |
|
staticprivate |
Leap.ToolList.__setattr__ = lambdaself,name,value:_swig_setattr(self, ToolList, name, value) |
|
staticprivate |
Leap.ToolList.__swig_destroy__ = LeapPython.delete_ToolList |
|
staticprivate |
dictionary Leap.ToolList.__swig_getmethods__ = {} |
|
staticprivate |
dictionary Leap.ToolList.__swig_setmethods__ = {} |
|
staticprivate |
Leap.ToolList.frontmost = _swig_property(LeapPython.ToolList_frontmost_get) |
|
static |
Leap.ToolList.is_empty = _swig_property(LeapPython.ToolList_is_empty_get) |
|
static |
Leap.ToolList.leftmost = _swig_property(LeapPython.ToolList_leftmost_get) |
|
static |
Leap.ToolList.rightmost = _swig_property(LeapPython.ToolList_rightmost_get) |
|
static |
The documentation for this class was generated from the following files: