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