#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.
◆ const_iterator
A C++ iterator type for ToolList objects.
- Since
- 1.0
Definition at line 3854 of file Leap.h.
◆ ToolList() [1/2]
◆ ToolList() [2/2]
Constructs an empty list of tools.
- Since
- 1.0
◆ __init__()
def Leap.ToolList.__init__ |
( |
|
self | ) |
|
◆ __getitem__()
def Leap.ToolList.__getitem__ |
( |
|
self, |
|
|
|
index |
|
) |
| |
◆ __iter__()
def Leap.ToolList.__iter__ |
( |
|
self | ) |
|
◆ __len__()
def Leap.ToolList.__len__ |
( |
|
self | ) |
|
◆ append() [1/2]
def Leap.ToolList.append |
( |
|
self, |
|
|
|
other |
|
) |
| |
◆ append() [2/2]
Appends the members of the specified ToolList to this ToolList.
- Parameters
-
- Since
- 1.0
◆ begin()
The C++ iterator set to the beginning of this ToolList.
- Since
- 1.0
◆ count()
Returns the number of tools in this list.
- Returns
- The number of tools in this list.
- Since
- 1.0
◆ end()
The C++ iterator set to the end of this ToolList.
- Since
- 1.0
◆ frontmost()
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
◆ isEmpty()
Reports whether the list is empty.
- Returns
- True, if the list has no members.
- Since
- 1.0
◆ leftmost()
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
◆ operator[]()
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
◆ rightmost()
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
◆ __getattr__
◆ __repr__
◆ __setattr__
◆ __swig_destroy__
Leap.ToolList.__swig_destroy__ = LeapPython.delete_ToolList |
|
staticprivate |
◆ __swig_getmethods__
dictionary Leap.ToolList.__swig_getmethods__ = {} |
|
staticprivate |
◆ __swig_setmethods__
dictionary Leap.ToolList.__swig_setmethods__ = {} |
|
staticprivate |
◆ frontmost
Leap.ToolList.frontmost = _swig_property(LeapPython.ToolList_frontmost_get) |
|
static |
◆ is_empty
Leap.ToolList.is_empty = _swig_property(LeapPython.ToolList_is_empty_get) |
|
static |
◆ leftmost
Leap.ToolList.leftmost = _swig_property(LeapPython.ToolList_leftmost_get) |
|
static |
◆ rightmost
Leap.ToolList.rightmost = _swig_property(LeapPython.ToolList_rightmost_get) |
|
static |
◆ this
The documentation for this class was generated from the following files: